Commit Graph

136 Commits

Author SHA1 Message Date
Kris Maglione
0c3a1b9b7e Bug 1379148: Part 1 - Allow blocking only non-script-created parsers. r=hsivonen
MozReview-Commit-ID: 8cGxywiUzWj

--HG--
extra : rebase_source : b684a4a7d00c141a3def4f1cde9d7463c12baa4b
2017-09-20 16:12:27 -07:00
Aryeh Gregor
2340265246 Bug 718711 - getSelection() should exist for XML documents; r=smaug
The spec puts it on the Document interface, not HTMLDocument, so it
should apply to XML documents as well.  In general we want APIs to be
available for all types of documents unless there's a specific reason
not to.

Tests submitted upstream:
https://github.com/w3c/web-platform-tests/pull/6804

MozReview-Commit-ID: A0QDxpONNCE

--HG--
extra : rebase_source : 0c84863b455c3e9748aedcfb562920f8679e358c
2017-08-10 16:53:42 +03:00
kevin
47b2c10f66 Bug 1333912. Implement onvisibilitychange attribute on Document. r=bzbarsky 2017-07-26 16:22:42 -04:00
Boris Zbarsky
1b5d0a8ea1 Bug 1370550. Move the onwheel attribute to GlobalEventHandlers, to follow the spec. r=smaug 2017-07-11 17:49:25 -04:00
johndai1984
d6f71ee02d Bug 1340027 - Part 2: Add HTML CEReactions annotation. r=smaug 2017-06-29 10:26:00 -04:00
johndai1984
2344353ad0 Bug 1340027 - Part 1: Add DOM CEReactions annotation. r=smaug 2017-06-29 10:25:00 -04:00
Aryeh Gregor
af57d2df0f Bug 1251198 - Remove various obsolete events from document.createEvent r=smaug
Other browsers do not support any of these (IIRC), telemetry reports
essentially zero usage, and supporting them is contrary to the DOM spec.

Notes on specific events:

CommandEvent and SimpleGestureEvent: These are not supposed to be
web-exposed APIs, so I hid the interfaces from web content too
(necessary to avoid test_all_synthetic_events.html failures).

DataContainerEvent: This was a non-standard substitute for CustomEvent
that seemed to have only one user, so I removed it entirely and switched
the user (MozillaFileLogger.js) to CustomEvent.

ScrollAreaEvent: This is entirely non-standard, but we apparently expose
it deliberately to web content, so I didn't see any reason to remove it
from createEvent.

SimpleGestureEvent and XULCommandEvent: Can still be created from
createEvent(), but not by content.

TimeEvent: This is still in because it has no constructor, so there's no
other way to create it.  Ideally we'd update the SMIL spec to add a
constructor.  I did remove TimeEvents.

MozReview-Commit-ID: 7Yi2oCl9SM2

--HG--
extra : rebase_source : 199ab921acfc531b8b85e77f90fcd799b03c887b
2017-04-20 15:45:37 +03:00
Cameron McCormack
fb18ceba5d Bug 1330843 - Allow JS to create NAC pseudo-elements. r=bholley
MozReview-Commit-ID: 2aBPoCOsT6R

--HG--
extra : rebase_source : bc32cd9e4bd5c73af094718c795691da84abe5ba
2017-03-17 15:30:34 +08:00
Kris Maglione
8d2a5ab915 Bug 1333990: Part 2d - Add a utility to block HTML parsing until sandbox scripts are ready. r=hsivonen,billm
In order to asynchronously load content scripts that need to run very early in
the page load cycle, before any ordinary page scripts, we need to be able to
block parsing from the document-element-inserted listener. Since the script
loader operates by returning promises, blocking on promise resolution is the
simplest way to achieve this.

MozReview-Commit-ID: CTWlyrP6dqG

--HG--
extra : rebase_source : 28ce713a6450c223f9b2089e6c6e8c78284ef8af
2017-03-16 16:47:35 -07:00
John Dai
e80c2fec57 Bug 1338889 - Part 2: Support DOMString as Argument 3 of Document.createElementNS. r=bz 2017-02-15 00:07:00 +08:00
Kirk Steuber
c1a68c2b4c Bug 1338287 - Make nsIDocument::DocumentFlashClassification accessible from privileged JS r=bz
MozReview-Commit-ID: 1II2puZMub5

--HG--
extra : rebase_source : 2b806b4f1d4e51b72799d79126c402113d5b072e
2017-02-13 13:39:40 -08:00
Xidorn Quan
6a9f5ff102 Bug 1289642 - Remove prefixed PointerLock API. r=smaug
MozReview-Commit-ID: BUSEojZNIgb

--HG--
extra : rebase_source : bfdf71d5244d3b0877712a63cb07cf119c2e6992
2016-12-19 12:40:02 +11:00
Boris Zbarsky
bba6751af3 Bug 1330457. Introduce DocumentAndElementEventHandlers to more closely align with the HTML spec. r=bkelly 2017-01-13 10:41:20 -05:00
Boris Zbarsky
c892e11e49 Bug 1318117. Stop using IsCallerChrome in pointerlock API, fullscreen API, and documentURI getter. r=ehsan 2016-11-17 13:49:27 -05:00
Frederik Braun
61b919525e Bug 1312272 - Marquee event handlers to adhere CSP. r=smaug
MozReview-Commit-ID: 6MxGnFAIhMP

--HG--
extra : histedit_source : 592bae3f50983d107169811411ab444d5efa3f22
2016-11-04 22:54:59 -04:00
Ehsan Akhgari
1978fee9f2 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
John Dai
48b937b61e Bug 1309140 - Rename CustomElementsRegistry to CustomElementRegistry. r=wchen, r=smaug
MozReview-Commit-ID: 3gYTaRVcV0y

--HG--
rename : dom/base/CustomElementsRegistry.cpp => dom/base/CustomElementRegistry.cpp
rename : dom/base/CustomElementsRegistry.h => dom/base/CustomElementRegistry.h
rename : dom/webidl/CustomElementsRegistry.webidl => dom/webidl/CustomElementRegistry.webidl
2016-10-12 15:26:02 +08:00
Andrea Marchesini
0d3521f59a Bug 1306241 - Use NeedsSubjectPrincipal in dom/html/* - part 1, r=ehsan 2016-10-03 10:34:14 +02:00
Cameron McCormack
75460a4e5e Bug 1293786 - Part 2: Move rootElement from the now-removed SVGDocument to Document. r=longsonr,smaug
MozReview-Commit-ID: 4y82o5MP6TU
2016-09-29 09:32:43 +08:00
Phil Ringnalda
40fd25db11 Backed out 3 changesets (bug 1293786) for wpt unexpected passes and fails
Backed out changeset f8911c81ee9a (bug 1293786)
Backed out changeset 8cba8a0a730c (bug 1293786)
Backed out changeset 5c60775f445e (bug 1293786)
2016-09-28 20:39:16 -07:00
Cameron McCormack
21163fba88 Bug 1293786 - Part 2: Move rootElement from the now-removed SVGDocument to Document. r=longsonr,smaug
MozReview-Commit-ID: 4y82o5MP6TU
2016-09-29 09:32:43 +08:00
Thomas Wisniewski
e6afa43d92 Bug 812701 - Drop the prefixed version of the Visibility API. r=bz
--HG--
extra : rebase_source : 2d989414b2ccbb9c712e711c8373bdca6f87fc4b
2016-09-13 09:56:14 -04:00
Nicholas Nethercote
e4eb76b618 Bug 1297300 - Add missing checks to GetSpec() calls in dom/base/. r=bz.
--HG--
extra : rebase_source : 55e83aad222825b2dd1399fa42eee6b6c894d0ee
2016-09-08 14:17:58 +10:00
John Dai
3315b2b7eb Bug 1294100 - Part 4: Support DOMString as Argument 2 of Document.createElement. r=bz 2016-09-01 18:06:33 +08:00
Towkir Ahmed
63867da04a Bug 1284887 - Replaced references to mxr.mozilla.org in the codebase with dxr.mozilla.org r=dolske
a=release to get around a hook that's catching these comment-only idl changes

--HG--
extra : rebase_source : a7353680777fd2eeea24c9993f9937bbbcfb9e4f
2016-08-15 17:28:05 -07:00
Xidorn Quan
132b526f3a 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

--HG--
extra : source : 22791c53b6a94c3de4eb7f38823afce89b0419e4
2016-07-28 17:15:21 +10:00
Xidorn Quan
b83b9e7406 Bug 991899 part 1 - Add unprefixed API for PointerLock. r=smaug
MozReview-Commit-ID: 3af2D9IWI1Q

--HG--
extra : source : 527777bea747fb8ab363960e41b0a1ddb26d7749
2016-07-28 17:15:21 +10:00
John Dai
7f2bb4c2c9 Bug 1275833 - Add window.customElements and CustomElementsRegistry interface for custom element v1. r=smaug, wchen
--HG--
extra : rebase_source : 5bed500eee0d4902703e4e2159e291779ff69ab5
2016-07-24 23:38:00 +02:00
Jocelyn Liu
9420e6fa26 Bug 1276579: Add 'options' argument into |document.createElement[NS]()| methods and remove overloaded |createElement[NS]()| methods. r=smaug,wchen
MozReview-Commit-ID: FWd6g33SSiR

--HG--
extra : rebase_source : 1b62a987d66952ea420e10e8350399cd26b5511d
2016-06-06 18:43:39 +08:00
Masatoshi Kimura
861cce408f Bug 1280545 - Remove [Deprecated="PrefixedFullscreenAPI"] annotations until we are ready to unprefix fullscreen API. r=smaug,xidorn
MozReview-Commit-ID: KXDujiWaYz9

--HG--
extra : rebase_source : 1950d6e3015ba6c0a04d4f0a61905303895d32b0
2016-06-30 20:12:14 +09:00
Carsten "Tomcat" Book
971c3b23c4 Backed out changeset bedd6091246e (bug 1280545) run into hg hook warning for webidl and backout for making autoland to m-c merge possible
--HG--
extra : rebase_source : b20dfb9614a316039f9443433db6f8c14a09d3af
2016-07-01 11:06:18 +02:00
Masatoshi Kimura
a89cca4051 Bug 1280545 - Remove [Deprecated="PrefixedFullscreenAPI"] annotations until we are ready to unprefix fullscreen API. r=xidorn
MozReview-Commit-ID: KXDujiWaYz9

--HG--
extra : rebase_source : 974322b4384b8d12959ea4af9ed87fa3256429cd
2016-06-30 20:12:14 +09:00
Carsten "Tomcat" Book
3a42c363cc merge mozilla-inbound to mozilla-central a=merge 2016-06-30 12:33:41 +02:00
Jocelyn Liu
36d3b49b3a Bug 1276240 - Ignore typeExtension argument if the value is null or undefined. r=smaug
MozReview-Commit-ID: 4ZeySrIpgFr

--HG--
extra : rebase_source : 36d230e041b01622110027e00c7b0eb1188454ed
2016-06-28 17:07:32 +08:00
Paul Roberts
6707fd2982 Bug 671389 - Export document sandbox flags to chrome JS. r=smaug
--HG--
extra : rebase_source : 91463b43748b72283644d25b56242c244cc2a6bf
2016-06-19 12:34:08 -07:00
Bob Owen
7c3321c672 Bug 1277475 Part 1: Add a chrome and XBL accessor for the sandboxed scripts flag to Document WEBIDL. r=bz
This also incldues changes to use the new function instead of getting and checking the sandbox flags in most places.

MozReview-Commit-ID: Cv0vJCdLH4D
2016-06-09 11:22:22 +01:00
Ralph Giles
d685437e7b Bug 1275778 - Fix comment typo. r=smaug DONTBUILD
MozReview-Commit-ID: D3TLV2HWXEt

--HG--
extra : rebase_source : 5d17316374fb66b4689ab5e6a5ced78001bf1f1e
2016-05-19 13:14:34 -07:00
Samael Wang
698e3512dd Bug 1069772 - Part 1: Update document to support prerender visibility state. r=smaug 2016-05-25 16:52:24 +08:00
Xidorn Quan
26c3d73bf6 Bug 1270386 - Move unprefixed fullscreen event handlers from GlobalEventHandlers to Document. r=smaug
MozReview-Commit-ID: FfQhDoD5Wf3

--HG--
extra : source : db4cd63a10f577e68b238509b7a13897ff028064
2016-05-24 13:21:22 +10:00
Phil Ringnalda
db3e2c7d7f Back out 8 changesets (bug 931445, bug 1274104, bug 1270386) for frequent e10s APZ mochitest failures starting with test_group_mouseevents.html
CLOSED TREE

Backed out changeset 6db35dcc6885 (bug 1274104)
Backed out changeset 0c2fc088a46d (bug 1274104)
Backed out changeset 17786141f3ac (bug 1274104)
Backed out changeset f7c6b58dddc1 (bug 1274104)
Backed out changeset 67407d1829a3 (bug 1270386)
Backed out changeset 82d2c5404d84 (bug 931445)
Backed out changeset 0921152b9f08 (bug 931445)
Backed out changeset f73352ab6f99 (bug 931445)
2016-05-23 18:42:32 -07:00
Xidorn Quan
600a374e5d Bug 1270386 - Move unprefixed fullscreen event handlers from GlobalEventHandlers to Document. r=smaug
MozReview-Commit-ID: FfQhDoD5Wf3

--HG--
extra : source : db4cd63a10f577e68b238509b7a13897ff028064
2016-05-23 09:03:32 +10:00
Boris Zbarsky
2b85094faf Bug 909633. Remove the HTML Microdata API, since no one else ended up implementing it and now it's been removed from the spec. r=bkelly,jgraham 2016-05-20 23:13:17 -04:00
Xidorn Quan
efc89967ed Bug 1269157 - Add Document.fullscreen attribute. r=smaug
MozReview-Commit-ID: 7mMjGoc7cvA

--HG--
extra : source : 0a5755272461d84a6a8082ca706d10b1ece84bc6
2016-05-12 10:28:56 +10:00
Xidorn Quan
adac331402 Bug 1268798 part 4 - Mark Document.fullscreenElement and fullscreenEnabled with LenientSetter. r=smaug
MozReview-Commit-ID: B2F2sCLm0G8

--HG--
extra : source : be1844a64bb5207f84692a9a2ed73c2dacb45aa9
2016-05-12 10:28:56 +10:00
Xidorn Quan
eb882bc07f Bug 1268749 part 4 - Hide unprefixed Fullscreen API from content when disabled. r=smaug
MozReview-Commit-ID: KpjNFYYyCWh

--HG--
extra : rebase_source : 43eebf0398c3accbe2f901d482f9d4399bdf03e6
2016-05-02 14:26:04 +10:00
Olli Pettay
556d99331e Bug 1265032 - Enable Document.scrollingElement in release builds, r=bz 2016-04-18 02:31:57 +03:00
Gijs Kruitbosch
8e0830e21c Bug 1220160 - part 1: add chromeonly getter for documenturi that returns the original document when on an error page, r=bz
MozReview-Commit-ID: KaOc0WBxcIS

--HG--
extra : rebase_source : 4e37d4244e39b012e8c1eab989bf1c5d2ceef994
2016-02-15 23:46:49 +00:00
Xidorn Quan
61f1684757 Bug 743198 part 2 - Add unprefixed Fullscreen API to Document and Element. r=smaug
--HG--
extra : source : aaf4d12b511ba25ba93e6135cb849a3264435f7c
2016-02-17 08:47:11 +08:00
Xidorn Quan
49647faf41 Bug 743198 part 1 - Drop [Throws] of document.mozFullScreenElement. r=smaug
This method actually never throws. IsFullScreenDoc() simply checks
whether GetFullScreenElement() returns nullptr, which means if that
method returns true, the "!el" check would never fail.

--HG--
extra : source : f32a1aeb6835fd4b4c47ef3abe6b9d7366ae4f07
2016-02-17 08:47:11 +08:00
Kyle Machulis
739327e165 Bug 1164427 - Implement elementsFromPoint; r=roc r=khuey 2016-02-01 14:33:51 -08:00