Commit Graph

106 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
9007e9a305 Bug 1453789: Remove Element.createShadowRoot. r=smaug
MozReview-Commit-ID: Hgxbp1Icgvh
2018-04-13 20:51:55 +02:00
Boris Zbarsky
868eaca19e Bug 1449019. Actually propagate out exceptions from the innerHTML getter. r=smaug
I moved the IgnoreErrors decl so it would come after the OOMReporter decl and I
could add the new conversion operator.

MozReview-Commit-ID: B1S6DXmZfvE
2018-03-26 16:41:43 -04:00
Boris Zbarsky
df75c1fa27 Backed out changeset 1023e033bfa6 (bug 1132934) because it hasn't been reviewed yet.
MozReview-Commit-ID: LXefIp2OG6Q
2018-03-26 16:47:31 -04:00
Boris Zbarsky
29302e62f2 Bug 1132934 part 1. Actually propagate out exceptions from the innerHTML getter. r=smaug
MozReview-Commit-ID: KEqsx836qQn
2018-03-26 16:41:43 -04:00
Olli Pettay
1d50e101f6 Bug 1421568 - Add a ChromeOnly method to access also closed shadow roots, r=mrbkap 2018-02-03 12:15:25 +02:00
Kris Maglione
9e04067677 Bug 1432966: Sanitize HTML fragments created for chrome-privileged documents. r=bz f=gijs
This is a short-term solution to our inability to apply CSP to
chrome-privileged documents.

Ideally, we should be preventing all inline script execution in
chrome-privileged documents, since the reprecussions of XSS in chrome
documents are much worse than in content documents. Unfortunately, that's not
possible in the near term because a) we don't support CSP in system principal
documents at all, and b) we rely heavily on inline JS in our static XUL.

This stop-gap solution at least prevents some of the most common vectors of
XSS attack, by automatically sanitizing any HTML fragment created for a
chrome-privileged document.

MozReview-Commit-ID: 5w17celRFr
2018-01-24 14:56:48 -08:00
Jessica Jong
1b8802d510 Bug 1428685 - Use dom.webcomponents.shadowdom.enabled pref for Shadow DOM. r=smaug
Most of the Shadow DOM related code are behind "dom.webcomponents.enabled" and
this pref is only used by Shadow DOM right now, so we should rename it to
"dom.webcomponents.shadowdom.enabled"

MozReview-Commit-ID: er1c7AsSSW
2018-01-16 17:16:30 +01:00
Nika Layzell
e5cd184550 Bug 1383876 - Part 1: Remove GroupedSHistory and Prerendering logic from C++ code, r=freesamael, r=smaug
MozReview-Commit-ID: 2aHA6NcQPGk
2018-01-12 17:52:52 -05:00
Boris Zbarsky
ca91e3b7b4 Bug 1424474 part 3. Make sure that we only pass non-system subject principals to setters/methods that later use that principal for loading security checks. r=kmag
MozReview-Commit-ID: IjUEG5xwn5
2017-12-20 17:43:18 -05:00
Emilio Cobos Álvarez
c12e56f25f Bug 1426503: Remove DestInsertionPoints stuff. r=smaug
MozReview-Commit-ID: KtaEqZn9GH3
2017-12-20 22:08:15 +01:00
Jessica Jong
35cba086d7 Bug 1422931 - Part 2: Make webcomponents preference per-doc. r=smaug
This is to fix the case where preference is restore to false when a testcase
ends, but nsDocument::DeleteShell is called afterwards. So, we make the
preference per-doc and set it when the document is created. The value does not
change for the lifetime of the document.
2017-12-09 11:25:14 +08:00
Brad Werth
68bb1a00c3 Bug 1409083 Part 2: Stub webidl definitions to support flex container/item properties. r=smaug
MozReview-Commit-ID: KwNykBkJfPi
2017-11-15 13:20:35 -08:00
Phil Ringnalda
6cc9f12122 Backed out 5 changesets (bug 1409083) for eslint failures
Backed out changeset 9de539be3665 (bug 1409083)
Backed out changeset 660e79af5c93 (bug 1409083)
Backed out changeset 574cd09aad41 (bug 1409083)
Backed out changeset b21b06a24705 (bug 1409083)
Backed out changeset b21e6a795493 (bug 1409083)
2017-12-07 19:47:09 -08:00
Brad Werth
c34f82f532 Bug 1409083 Part 2: Stub webidl definitions to support flex container/item properties. r=smaug
MozReview-Commit-ID: KwNykBkJfPi
2017-11-15 13:20:35 -08:00
Boris Zbarsky
0e5baea61e Bug 1419270 part 2. Use getter or setter specific NeedsSubjectPrincipal annotations more. r=qdot
MozReview-Commit-ID: KBwjFh3TMUg
2017-12-05 16:03:18 -05:00
Kris Maglione
4be3ae647c Bug 1415352: Part 4a - Capture subject principal in innerHTML setters. r=bz
This is necessary in order to capture the correct triggering principal for
inline <style> nodes.

MozReview-Commit-ID: 9EaD40vRNkH
2017-11-07 13:48:58 -08:00
Brad Werth
f61f1dc571 Bug 1414920 Part 1: Add chrome-only API getElementsWithGrid(), for devtools. r=dholbert,smaug
MozReview-Commit-ID: L44Q95wEqDA
2017-10-31 12:05:02 -07:00
btian
78a18fdfb5 Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / TextNode.assignedSlot on closed shadow root r=mrbkap
MozReview-Commit-ID: DSiGN7h5ErY
2017-11-02 16:53:44 +08:00
Ben Tian
342131c9a6 Bug 1404842 - P1: Implement Element.attachShadow and Element.slot, r=smaug
MozReview-Commit-ID: KWy8mDqEw4o
2017-10-19 14:44:35 +08:00
Jessica Jong
b5c9aff6d6 Bug 1408341 - Implement assignedSlot on Element and Text. r=smaug 2017-10-19 14:31:36 +08:00
Emilio Cobos Álvarez
cb02b21a74 Bug 1409079: Simplify WebComponents enabled checks. r=smaug
MozReview-Commit-ID: F8WAYvregRu
2017-10-17 11:37:07 +02:00
Kris Maglione
5f00cf0c65 Bug 1406278: Part 1 - Pass subject principal to SetAttribute and friends. r=bz
In order to tailor certain security checks to the caller that is attempting to
load a particular piece of content, we need to be able to attach an
appropriate triggering principal to the corresponding requests. Since most
HTML content is loaded based on attribute values, that means capturing the
subject principal of the caller who sets those attributes, which means making
it available to AfterSetAttr hooks.

MozReview-Commit-ID: BMDL2Uepg0X
2017-10-09 14:33:38 -07:00
Thomas Wisniewski
dbadff6ef6 Bug 1389274 - Correct the behavior of Element.scrollIntoView to match the draft spec and pass web platform tests; r=annevk,bkelly
MozReview-Commit-ID: 3is36wstsdb
2017-09-28 16:57:24 -04:00
Sebastian Hengst
cb194e85c7 Backed out changeset 8a970e561fe1 (bug 1389274) for unexpected passes of web-platform-test /cssom-view/scrollIntoView-shadow.html. r=backout 2017-09-28 19:46:03 +02:00
Thomas Wisniewski
23b9697aca Bug 1389274 - Correct the behavior of Element.scrollIntoView to match the draft spec and pass web platform tests; r=annevk,bkelly
MozReview-Commit-ID: 3is36wstsdb
2017-09-27 12:23:33 -04:00
Boris Zbarsky
7e30f6bee2 Bug 1370550. Move the onwheel attribute to GlobalEventHandlers, to follow the spec. r=smaug 2017-07-11 17:49:25 -04:00
johndai1984
40f99955ed Bug 1340027 - Part 4: Add DOM parsing CEReactions annotation. r=smaug 2017-06-29 10:27:00 -04:00
johndai1984
9f6116618d Bug 1340027 - Part 1: Add DOM CEReactions annotation. r=smaug 2017-06-29 10:25:00 -04:00
Brad Werth
9b0738b4c3 Bug 1355675 Part 3: Add some Chrome-only getTransformTo... methods to Element. r=mattwoodrow,smaug
MozReview-Commit-ID: 5H2DXKJzE8H
2017-05-30 09:42:25 -07:00
Xidorn Quan
7f7fd0d414 Bug 1289642 - Remove prefixed PointerLock API. r=smaug
MozReview-Commit-ID: BUSEojZNIgb
2016-12-19 12:40:02 +11:00
Boris Zbarsky
310bfc49e5 Bug 1318117. Stop using IsCallerChrome in pointerlock API, fullscreen API, and documentURI getter. r=ehsan 2016-11-17 13:49:27 -05:00
Neil Deakin
088b77a707 Bug 1311279, add a chrome-only setCapture method that can ignore the allowed state, r=smaug 2016-11-17 09:56:43 -05:00
Carsten "Tomcat" Book
224b3b1610 Backed out changeset 1ba0d3288318 (bug 1311279) 2016-11-17 15:42:41 +01:00
Neil Deakin
46faa72b85 Bug 1311279, add a chrome-only setCapture method that can ignore the allowed state, r=smaug 2016-11-17 09:28:27 -05:00
Ehsan Akhgari
4a54efddd1 Bug 1310385 - Remove support for UndoManager; r=smaug
There hasn't been any traction on this feature, and we keep
paying the maintenance and code size and memory usage penalty
of having this implementation.

We can revive this from VCS history in the future if we decide
to start working on it again.  In the mean time, it's better
to remove it.
2016-10-17 10:06:11 -04:00
Stone Shih
a8b11ea6ed Bug 1293175 - [Pointer Event] Add Element.hasPointerCapture API. r=smaug 2016-08-10 15:31:43 +08:00
Kearwood (Kip) Gilbert
63dd60be74 Bug 1250244 - Part 1: Remove FullScreenOptions parameter from Element.RequestFullScreen,r=bz
MozReview-Commit-ID: 8wmexZT5SB4
2016-04-18 12:12:38 -07:00
Xidorn Quan
a0d5210d47 Bug 991899 part 3 - Disable prefixed PointerLock API by default. r=smaug
Given that Blink has removed prefixed PointerLock API for quite a while
without receiving compatibility issue, I'd suggest we try dropping the
prefixed version directly.

We will either pref the prefixed API on if we see enough compatibility
issue, or remove the whole bunch of prefixed PointerLock API after the
unprefixed API reaches release channel without issues.

MozReview-Commit-ID: ACC69nqSBiH
2016-07-28 17:15:21 +10:00
Xidorn Quan
fc4359c93c Bug 991899 part 1 - Add unprefixed API for PointerLock. r=smaug
MozReview-Commit-ID: 3af2D9IWI1Q
2016-07-28 17:15:21 +10:00
Brad Werth
adc62526b9 Bug 1241932 - Expose decoded CSS grid track properties in a Chrome API. r=heycam, r=khuey 2016-07-06 11:45:18 -07:00
Carsten "Tomcat" Book
9a37bd4379 Backed out changeset 3de5b79d7373 (bug 1241932) for bustage 2016-07-06 06:00:03 +02:00
Brad Werth
0c294da58f Bug 1241932 - Expose decoded CSS grid track properties in a Chrome API. r=heycam, r=khuey 2016-06-24 12:20:05 -07:00
Masatoshi Kimura
7697593a43 Bug 1280545 - Remove [Deprecated="PrefixedFullscreenAPI"] annotations until we are ready to unprefix fullscreen API. r=smaug,xidorn
MozReview-Commit-ID: KXDujiWaYz9
2016-06-30 20:12:14 +09:00
Carsten "Tomcat" Book
975790f3d1 Backed out changeset bedd6091246e (bug 1280545) run into hg hook warning for webidl and backout for making autoland to m-c merge possible 2016-07-01 11:06:18 +02:00
Masatoshi Kimura
06a0d5f9ae Bug 1280545 - Remove [Deprecated="PrefixedFullscreenAPI"] annotations until we are ready to unprefix fullscreen API. r=xidorn
MozReview-Commit-ID: KXDujiWaYz9
2016-06-30 20:12:14 +09:00
Xidorn Quan
6fff082aa9 Bug 1268749 part 4 - Hide unprefixed Fullscreen API from content when disabled. r=smaug
MozReview-Commit-ID: KpjNFYYyCWh
2016-05-02 14:26:04 +10:00
Aryeh Gregor
cfa14bbee9 Bug 1055776 - Move namespaceURI, prefix, localName from Node to Element; r=bz 2016-04-13 15:21:12 +03:00
Jocelyn Liu
3ac1885ee7 Bug 811259 - Patch1: Implement Element.insertAdjacentText and Element.insertAdjacentElement. r=smaug
MozReview-Commit-ID: g54gUOBop7
2016-03-28 16:42:57 +08:00
Xidorn Quan
8cad72a020 Bug 743198 part 2 - Add unprefixed Fullscreen API to Document and Element. r=smaug 2016-02-17 08:47:11 +08:00
Deepthi Venkitaramanan
b00793a3d8 Bug 1244328 - Merge the functionality of DOMSettableTokenList into DOMTokenList and make everything that used to refer to DOMSettableTokenList refer to DOMTokenList instead. r=bzbarsky 2016-02-11 17:50:42 -05:00