Dave Townsend
2626e1c261
Bug 1421070: Always enable custom elements in chrome. r=smaug
...
This allows custom elements to work in any document in the parent process that
allows XUL and XBL. The test takes the easy option of moving the existing XUL
custom element test to a run with the custom element pref disabled.
MozReview-Commit-ID: CMiLzmp60jA
--HG--
extra : rebase_source : b9632de82cf79c1df15be09fadf1d25817c8a894
extra : amend_source : 235a76453d1d6782903d5051ee8e234b965dcc36
2017-10-20 11:02:33 -07:00
Emilio Cobos Álvarez
de099db7bd
Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug
...
Summary: It uses two node bits that can be better suited for something else.
Reviewers: xidorn, smaug
Bug #: 1444905
Differential Revision: https://phabricator.services.mozilla.com/D709
MozReview-Commit-ID: HIPDtHm6xpM
2018-03-13 10:26:13 +01:00
Emilio Cobos Álvarez
17f8b43bb3
Bug 1444908: Devirtualize nsIDocument::Get/SetXMLDeclaration. r=smaug
...
Summary: I missed these two.
Reviewers: smaug
Bug #: 1444908
Differential Revision: https://phabricator.services.mozilla.com/D710
MozReview-Commit-ID: 8JYhlQ9CiDz
2018-03-13 09:03:11 +01:00
Boris Zbarsky
fd6e65d19e
Bug 1415588 part 4. Move the .anchors getter from HTMLDocument to Document. r=mystor
...
MozReview-Commit-ID: 2uqt9cdz6y7
2018-03-12 21:44:57 -04:00
Boris Zbarsky
f6f85bb529
Bug 1415588 part 3. Move the .links getter from HTMLDocument to Document. r=mystor
...
The null-checks in MatchLinks were working around code in nsDocument::Destroy
that was removed a while back in bug 341730.
MozReview-Commit-ID: 2SMmGr83GCB
2018-03-12 21:44:56 -04:00
Boris Zbarsky
d5f5a95c81
Bug 1415588 part 2. Move the .images, .embeds, .plugins, .forms, .scripts, .applets getters from HTMLDocument to Document. r=mystor
...
MozReview-Commit-ID: Db7iazZUz8g
2018-03-12 21:44:56 -04:00
Boris Zbarsky
f3daf97dc7
Bug 1415588 part 1. Move the .head getter from HTMLDocument to Document. r=mystor
...
MozReview-Commit-ID: 5SW47hfE9dl
2018-03-12 21:44:56 -04:00
Emilio Cobos Álvarez
4224552ed9
Bug 1444580: Move mExpandoAndGeneration back to nsDocument for now. r=smaug
...
MozReview-Commit-ID: EArKdxEoXaJ
2018-03-12 12:27:06 +01:00
Emilio Cobos Álvarez
a21c8d80eb
Bug 1444580: Devirtualize CanSavePresentation. r=smaug
...
MozReview-Commit-ID: LjBA4gM71ir
2018-03-12 12:27:05 +01:00
Emilio Cobos Álvarez
5c17dca08f
Bug 1444580: Devirtualize Sanitize. r=smaug
...
MozReview-Commit-ID: 4UMjAlqnRqu
2018-03-12 12:27:04 +01:00
Emilio Cobos Álvarez
c5d1876218
Bug 1444580: Devirtualize GetLayoutHistoryState. r=smaug
...
MozReview-Commit-ID: AsPFJdDGeUE
2018-03-12 12:27:02 +01:00
Emilio Cobos Álvarez
094ff568ce
Bug 1444580: Devirtualize WillDispatchMutationEvent / MutationEventDispatched. r=smaug
...
MozReview-Commit-ID: 4k2dEEah1FR
2018-03-12 12:27:00 +01:00
Emilio Cobos Álvarez
3888b4d73c
Bug 1444580: Devirtualize UnblockDOMContentLoaded. r=smaug
...
MozReview-Commit-ID: I7t9glmVE7q
2018-03-12 12:26:57 +01:00
Emilio Cobos Álvarez
b9d38b736d
Bug 1444580: Devirtualize frame loader stuff. r=smaug
...
MozReview-Commit-ID: As1MOpvoaI6
2018-03-12 12:26:55 +01:00
Emilio Cobos Álvarez
c8428d3e7e
Bug 1444580: Devirtualize FlushSkinBindings. r=smaug
...
MozReview-Commit-ID: 556Wpm4QZeM
2018-03-12 12:26:53 +01:00
Emilio Cobos Álvarez
6f4ed12e9c
Bug 1444580: Devirtualize NodesFromRectHelper. r=smaug
...
MozReview-Commit-ID: CbVY8ysExfi
2018-03-12 12:26:51 +01:00
Emilio Cobos Álvarez
e00ebeda6a
Bug 1444580: Move OnPageShow / OnPageHide to nsIDocument, devirtualize OnPageHide. r=smaug
...
MozReview-Commit-ID: HlOpJ8Rg9IG
2018-03-12 12:26:50 +01:00
Emilio Cobos Álvarez
b6a3264fba
Bug 1444580: Devirtualize CreateShell / DeleteShell. r=smaug
...
MozReview-Commit-ID: 9eC2IyQ4bEf
2018-03-12 12:26:48 +01:00
Emilio Cobos Álvarez
6fe64ed9a5
Bug 1444580: Devirtualize pointer lock and screen orientation stuff. r=smaug
...
MozReview-Commit-ID: HzJcrHFCsOK
2018-03-12 12:26:46 +01:00
Emilio Cobos Álvarez
b7609d9cce
Bug 1444580: Devirtualize the external resource stuff. r=smaug
...
This one was non-trivial, required me to move around the definition of
ExternalResourceLoad and such.
Modulo that, and that I had to redefine nsSubDocEnumCb, the rest is just moving
code around.
MozReview-Commit-ID: E96XX8vo2D8
2018-03-12 12:26:43 +01:00
Emilio Cobos Álvarez
e8288c7a9e
Bug 1444580: Devirtualize GetTemplateContentsOwner. r=smaug
...
MozReview-Commit-ID: 9I9BCcSUSfJ
2018-03-12 12:26:41 +01:00
Emilio Cobos Álvarez
2e71f7e670
Bug 1444580: Devirtualize event handling suppression stuff. r=smaug
...
MozReview-Commit-ID: 3tHJkzTc4gU
2018-03-12 12:26:40 +01:00
Emilio Cobos Álvarez
54f085ea7b
Bug 1444580: Devirtualize more animation stuff. r=smaug
...
MozReview-Commit-ID: 4U6oIg81Pdw
2018-03-12 12:26:39 +01:00
Emilio Cobos Álvarez
64c7ec5de6
Bug 1444580: Devirtualize GetAnonymousElementByAttribute. r=smaug
...
MozReview-Commit-ID: JrfJV0CZbtO
2018-03-12 12:26:38 +01:00
Emilio Cobos Álvarez
8722f6ee6a
Bug 1444580: Devirtualize GetBoxObjectFor / ClearBoxObjectFor. r=smaug
...
MozReview-Commit-ID: KQJfJ43R0FI
2018-03-12 12:26:37 +01:00
Emilio Cobos Álvarez
c88524fad4
Bug 1444580: Devirtualize the preload / preconnect stuff. r=smaug
...
MozReview-Commit-ID: 1aUlsZVOrEu
2018-03-12 12:26:34 +01:00
Emilio Cobos Álvarez
7e3e8b7ca3
Bug 1444580: Devirtualize GetCurrentContentSink. r=smaug
...
Another easy one.
MozReview-Commit-ID: DJnTRYTiHwH
2018-03-12 12:26:32 +01:00
Emilio Cobos Álvarez
50b16abb7e
Bug 1444580: Devirtualize the scroll to ref stuff. r=smaug
...
MozReview-Commit-ID: AhtY8Y684A9
2018-03-12 12:26:30 +01:00
Emilio Cobos Álvarez
5c084a2cca
Bug 1444580: Devirtualize ScriptLoader. r=smaug
...
MozReview-Commit-ID: JleR4vgjtgN
2018-03-12 12:26:28 +01:00
Emilio Cobos Álvarez
ce0c1fef02
Bug 1444580: Devirtualize Web Animations stuff. r=smaug
...
MozReview-Commit-ID: F96vf9GyElA
2018-03-12 12:26:26 +01:00
Emilio Cobos Álvarez
a6d9ec45e1
Bug 1444580: Devirtualize plugins stuff. r=smaug
...
MozReview-Commit-ID: HsB8ZlEFD54
2018-03-12 12:26:24 +01:00
Emilio Cobos Álvarez
288a10bc0b
Bug 1444580: Devirtualize GetRootElementInternal, and move nsINode overrides to nsIDocument. r=smaug
...
MozReview-Commit-ID: IlgHXhETOIa
2018-03-12 12:26:23 +01:00
Emilio Cobos Álvarez
f73bf76b95
Bug 1444580: Devirtualize subdocument stuff. r=smaug
...
MozReview-Commit-ID: Hbh3j85JPKm
2018-03-12 12:26:21 +01:00
Emilio Cobos Álvarez
48d7f1f02e
Bug 1444580: Devirtualize NotifyLayerManagerRecreated. r=smaug
...
MozReview-Commit-ID: 9KQ5mzD11Dr
2018-03-12 12:26:18 +01:00
Emilio Cobos Álvarez
8b439d19e0
Bug 1444580: Devirtualize GetStateObject. r=smaug
...
MozReview-Commit-ID: 3e55Tfky6N3
2018-03-12 12:26:17 +01:00
Emilio Cobos Álvarez
87f132ff06
Bug 1444580: Devirtualize the responsive content stuff. r=smaug
...
MozReview-Commit-ID: LCz01o31RoC
2018-03-12 12:26:16 +01:00
Emilio Cobos Álvarez
cde280f7f4
Bug 1444580: Devirtualize FindImageMap. r=smaug
...
MozReview-Commit-ID: 4J6Yc3vW1Vf
2018-03-12 12:26:15 +01:00
Emilio Cobos Álvarez
837af28813
Bug 1444580: Devirtualize nsIDocument::CreateElement / CreateElementNS. r=smaug
...
MozReview-Commit-ID: KSd1xNIT7te
2018-03-12 12:26:13 +01:00
Emilio Cobos Álvarez
32156dc752
Bug 1444580: Devirtualize the IdentifierMap stuff. r=smaug
...
MozReview-Commit-ID: 5IIp95VEtvk
2018-03-12 12:26:11 +01:00
Emilio Cobos Álvarez
5ffef03826
Bug 1444580: Devirtualize GetImplementation. r=smaug
...
MozReview-Commit-ID: 2nsR595RotH
2018-03-12 12:26:10 +01:00
Emilio Cobos Álvarez
6100eb8087
Bug 1444580: Devirtualize the fullscreen stuff. r=smaug
...
MozReview-Commit-ID: CgPENqExkQh
2018-03-12 12:26:09 +01:00
Emilio Cobos Álvarez
0f6e1aec50
Bug 1444580: Devirtualize the visibility state stuff. r=smaug
...
Also rename GetVisibilityState to ComputeVisibilityState, since that's what it
does, the getter is VisibilityState.
MozReview-Commit-ID: 9qfKvUmO0dW
2018-03-12 12:26:07 +01:00
Emilio Cobos Álvarez
ee333aaf7e
Bug 1444580: Devirtualize the IntersectionObserver bits. r=smaug
...
MozReview-Commit-ID: 65WtMQPu7f4
2018-03-12 12:26:03 +01:00
Emilio Cobos Álvarez
842e5cdf17
Bug 1444580: Devirtualize a few other things. r=smaug
...
SetScriptHandlingObject / GetScopeObject / GetWindowInternal /
GetScriptHandlingObjectInternal / GetScriptHandlingObject
MozReview-Commit-ID: Bx7cCo7wc0Y
2018-03-12 12:26:00 +01:00
Emilio Cobos Álvarez
0591ec07c1
Bug 1444580: Devirtualize IsScriptEnabled. r=smaug
...
MozReview-Commit-ID: FEhddLUXnO4
2018-03-12 12:25:58 +01:00
Emilio Cobos Álvarez
c72085c513
Bug 1444580: Devirtualize PaymentRequest stuff. r=smaug
...
This one was easy, the bit was already in the right place :)
MozReview-Commit-ID: 79KJNsIXIyb
2018-03-12 12:25:56 +01:00
Emilio Cobos Álvarez
07907b44d5
Bug 1444580: Devirtualize autofocus and navigation timing stuff. r=smaug
...
MozReview-Commit-ID: K5Y9lxSJgOG
2018-03-12 12:25:54 +01:00
Emilio Cobos Álvarez
92ca1ace1b
Bug 1444580: Devirtualize more nsIDocument bits. r=smaug
...
MozReview-Commit-ID: 5y1FgNb2NMB
2018-03-12 12:25:52 +01:00
Christoph Kerschbaumer
d5a80a58d9
Bug 1443110: Add NullCheck for loadinfo within InitCSP. r=smaug
...
--HG--
extra : rebase_source : b2094c7185a76ada87cf4b3f9efd3359a1866438
2018-03-09 15:54:02 +01:00
Hiroyuki Ikezoe
78ac3dcdb4
Bug 1442817 - Add another variant of nsDocument::FlushPendingNotifications which are able to skip to flushing throttled animations. r=birtles,emilio
...
MozReview-Commit-ID: BZ9yAoAmWBB
--HG--
extra : rebase_source : 4f240b042992b3f13f296ce932c0d9795407932f
2018-03-09 06:41:30 +09:00
Emilio Cobos Álvarez
ff7e6d9b24
Bug 1443756: Devirtualize style-related nsIDocument methods. r=smaug
...
Summary: They have no particular reason to be virtual.
Reviewers: smaug
Bug #: 1443756
Differential Revision: https://phabricator.services.mozilla.com/D691
MozReview-Commit-ID: JN8MtfXvw3D
2018-03-07 23:57:04 +01:00
Emilio Cobos Álvarez
57591e34dd
Bug 1443553: Devirtualize BeginUpdate, FlushPendingNotifications, CreatorParserOrNull. r=smaug
...
MozReview-Commit-ID: FzPcHcyzJ02
2018-03-07 11:22:51 +01:00
Emilio Cobos Álvarez
44c8fa419b
Bug 1443553: Devirtualize ContentStateChanged / DocumentStatesChanged / StyleRule*. r=smaug
...
MozReview-Commit-ID: RE6rrBQMMU
2018-03-07 11:21:51 +01:00
Emilio Cobos Álvarez
cd0b749f03
Bug 1443553: Devirtualize nsIDocument::AddObserver / RemoveObserver. r=smaug
...
MozReview-Commit-ID: 8JeFLusnIQd
2018-03-07 11:20:43 +01:00
Emilio Cobos Álvarez
41e05df804
Bug 1443483: FlushTarget doesn't really make sense. r=xidorn
...
Summary:
FlushTarget wants to decide whether we should flush the parent document or all
of them. However, the only point of flushing parent documents is that media
query changes could affect the document we really want to flush.
That's completely pointless if we actually don't flush the subdocument, so just
skip doing that. This case is already checked (see the DocumentNeedsRestyle
stuff, which is also somewhat poorly named, which walks up the document chain).
Reviewers: xidorn
Bug #: 1443483
Differential Revision: https://phabricator.services.mozilla.com/D682
MozReview-Commit-ID: LiI7IrUBeqq
2018-03-07 01:09:46 +01:00
Christoph Kerschbaumer
d0bbab23a2
Bug 1430751 - Apply unified behavior model for about: pages to about:privatebrowsing. r=gijs,mrbkap
2018-03-05 09:20:34 +01:00
Blake Kaplan
eadd91cbee
Bug 1404297 - Change the way we iterate over our links to update. r=smaug
...
MozReview-Commit-ID: BTADrB9itjh
--HG--
extra : rebase_source : 4884a91ec9fc64107c3406d3199fe05857210997
2018-03-01 11:26:54 -08:00
Bogdan Tara
52316bbce3
Backed out changeset b235338be4d9 (bug 1404297) for build bustages on /builds/worker/workspace/build/src/dom/base/nsDocument.cpp a=backout CLOSED TREE
2018-02-28 01:42:50 +02:00
Blake Kaplan
4eb24aab7b
Bug 1404297 - Change the way we iterate over our links to update. r=smaug
...
MozReview-Commit-ID: BTADrB9itjh
--HG--
extra : rebase_source : 858f50bdbe2c35541b6a1975b0814e560db254c8
2018-02-27 17:54:00 -05:00
Emilio Cobos Álvarez
0459204d7c
Bug 1425759: Make Shadow DOM Stylo-only. r=smaug
...
I don't plan to fix this stuff up on the old style system.
MozReview-Commit-ID: E7Ayatwsw4E
2018-02-27 12:39:25 +01:00
Emilio Cobos Álvarez
c03ffd9c62
Bug 1425759: Simplify the style backend type setup. r=bholley
...
Now that what we use to decide whether a document is styled by Servo are only
prefs and the doc principal, we don't need to inherit the style backend type,
since unless the pref has changed, the result will be the same.
MozReview-Commit-ID: KBmeBn1cRne
2018-02-27 12:39:20 +01:00
Valentin Gosu
7bd0336d01
Bug 1433958 - Change code that sets nsIURI.pathQueryRef to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: HVyZ3E1XuLN
--HG--
extra : rebase_source : fd122b3122e0f3eb371d429bd86ad35d09dcfbf6
2018-02-26 20:43:45 +01:00
Adrian Wielgosik
35f8ed790f
Bug 1440741 - Remove all members from nsIDOMHTMLFormElement. r=qdot
...
MozReview-Commit-ID: 2UcUy4MkVsM
--HG--
extra : rebase_source : ddc6c18c5015ebc5569defa09b32c40e83939886
2018-02-23 19:28:08 +01:00
Boris Zbarsky
3d785e53b2
Bug 1437921 part 1. Add an attribute on document that is a Promise that resolves when the document has fired DOMContentLoaded _and_ maybe started layout. r=mystor
...
MozReview-Commit-ID: LpPFPKlHTXe
2018-02-22 16:55:40 -05:00
Adrian Wielgosik
2d4df58ad8
Bug 1439751 - Remove all members from nsIDOMHTMLInputElement. r=qdot
...
MozReview-Commit-ID: JVagEzvSONN
--HG--
extra : rebase_source : a7e1cf2e5ccc1925f3a11c7d935438ef6307c70c
2018-02-20 23:10:44 +01:00
J. Ryan Stinnett
bbd75cba2e
Bug 1438697 - Add inFrameSwap property on page transition. r=mrbkap
...
During a frame swap (using the `swapFrameLoaders` API on a frame loader owner),
we dispatch `pagehide` events before swapping and `pageshow` events after
swapping.
For some consumers that watch these events (such as DevTools), it would be
helpful to filter out the ones that sent because of frame swapping. This change
adds a chrome-only `inFrameSwap` property to such events so that we can tell
them apart.
MozReview-Commit-ID: QzIDuaF2zC
--HG--
extra : rebase_source : 3ac15e34c18b648c4cb060e69587e39e4ebaab60
2018-02-16 13:05:06 -06:00
Hiroyuki Ikezoe
1b0cba9367
Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
...
It would be convenient to get nsPresContext from nsIDocument.
MozReview-Commit-ID: Ei6V3UE8XGr
--HG--
extra : rebase_source : 8d2a917eb62cf341e4e1810451fd01c01dbc3bad
2018-02-21 07:00:10 +09:00
Emilio Cobos Álvarez
e14354de1a
Bug 1439016: followup: Reuse AssertNoStaleServoDataIn in CreateShell too. r=me
...
MozReview-Commit-ID: JfJyxuAlf5Z
2018-02-20 14:04:42 +01:00
Emilio Cobos Álvarez
1e890af15e
Bug 1439016: Assert that there's no stale servo data in shadow roots either. r=bholley
...
Just expanding the assertion to cover shadow trees.
MozReview-Commit-ID: FLE0noGzaIF
--HG--
extra : rebase_source : fa68f04b8095bd48eab598415e1700620ecce092
2018-02-19 15:00:37 +01:00
Xidorn Quan
a23cb7d912
Bug 1438497 - Add bindings into memory report. r=bholley,njn
...
MozReview-Commit-ID: FrFEUlrqcs8
--HG--
extra : rebase_source : 4ead07cb6854ef816a1d6b31aa9028220a14ec89
2018-02-16 23:02:28 +11:00
Christoph Kerschbaumer
494f074b53
Bug 1432358: Allow certain top-level pages to be agnostic to CSP. r=smaug
...
--HG--
extra : source : 27527f95cccca4927d4fee56b0dab9af11c5733f
extra : intermediate-source : 2fa11c525da3d0c7ca58a593241c1902f2849528
2018-02-01 14:07:01 +01:00
Chris Peterson
0129d900f3
Bug 1436263 - Part 2: Replace override final virtual function specifiers with just final. r=froydnj
...
MozReview-Commit-ID: 70gt5SUu4Dv
--HG--
extra : rebase_source : 71912c6bde22aaed01e70615a4ee794a36e70d0e
extra : source : 1c22d4c65d70b797ee3e963ec426c90e1f89b5e3
2018-02-05 22:50:00 -08:00
Chris Peterson
d09123f248
Bug 1436263 - Part 1: Replace final override virtual function specifiers with just final. r=froydnj
...
MozReview-Commit-ID: DE5HkIhsZ6D
--HG--
extra : rebase_source : 94831c1e13a840dd2ea0600f64bcf70c2bf938d9
extra : source : cf9283bf1b0bca3a6311c98e227329d451f80ecb
2018-02-05 22:46:57 -08:00
Boris Zbarsky
6bd0320c4c
Bug 619092 indentation fix followup.
...
MozReview-Commit-ID: ACcpu8bVeiS
2018-02-17 11:22:21 -05:00
Dorel Luca
07d2af4219
Merge mozilla-inbound to mozilla-central. a=merge
2018-02-17 11:55:38 +02:00
Yaroslav Taben
9e616d15ed
Bug 619092 - Truncate wyciwyg URLs on Reload to prevent exposing them; r=bz
...
This change prevents URLs with wyciwyg schemes to be set as mDocumentURI.
Otherwise, in JS, document.URL returns a wyciwyg://* URL and a subsequent
call to document.write makes wycywyg URL visible in the address bar.
MozReview-Commit-ID: BaKpDkkIYbM
--HG--
extra : rebase_source : cc14c247e4aaa43645481cbc520040eacbba6e21
2018-02-16 16:55:35 -05:00
Olli Pettay
1dfbc7a331
Bug 1430301 - Implement ShadowRoot.elementFromPoint/elementsFromPoint, r=emilio
...
--HG--
extra : rebase_source : 570f17a7a63ea602533910192c04b4e12f082aa8
2018-02-16 20:42:58 +02:00
Kyle Machulis
b8e88868d6
Bug 1407040 - Change HTMLMediaElement QIs to FromContent calls; r=bz
...
MozReview-Commit-ID: JoHA0LbJnu9
--HG--
extra : rebase_source : c33c0d456ec5aeb7fec9867f5a55a401ec5ddf1e
2018-02-14 21:17:45 -08:00
Noemi Erli
656ee92d98
Merge inbound to mozilla-central. a=merge
2018-02-15 21:29:11 +02:00
Andreea Pavel
a403fc3f13
Merge mozilla-central to mozilla-inbound. on a CLOSED TREE
2018-02-15 12:37:30 +02:00
Olli Pettay
a3eb8e6045
Bug 1438357 - MozDOMPointerLock:Exited is dispatched when DOM is at unstable state, r=baku
2018-02-15 12:07:16 +02:00
decltype
0c31aff36b
Bug 712130 - Simplify focus stealing prevention for autofocus. r=bz
...
Remove redundant check already implied by earlier condition: If the focus
manager's focused content is in our document, all parent windows including the
root window must have their focused node set to non-null.
MozReview-Commit-ID: CryGb6mfczK
--HG--
extra : rebase_source : ed5c452f68b76a656512026b5d162d8782083c2c
2018-01-12 00:17:58 +01:00
decltype
dd080e9eba
Bug 712130 - Defer autofocus until after frame construction. r=bz
...
The autofocus attribute on form elements forces layout in CheckIfFocusable.
To avoid unpleasant FOUCs, defer autofocus processing until frames are
constructed in PresShell::Initialize.
Resolve the race between nsAutoFocusEvent running and page load by checking the
readystate at time of event posting. Skip autofocus if the element moved to a
different window in the meantime.
MozReview-Commit-ID: 90jiJYJWmRg
--HG--
extra : rebase_source : f94b479075df3e37ec1a658d71596c03930bab92
2018-01-08 22:35:00 +01:00
Dorel Luca
dabf7b41ee
Merge mozilla-central to autoland. CLOSED TREE
...
--HG--
extra : amend_source : 021950f3661e3b1d96e768155c5754b7af039f84
2018-02-15 00:35:45 +02:00
Olli Pettay
1a35b521d0
Bug 1430305 - Implement ShadowRoot.fullscreenElement , r=mrbkap
...
--HG--
extra : rebase_source : 363143c1767cc9ad33fcd9dd7afd74848f709956
2018-02-13 18:57:32 +02:00
Adrian Wielgosik
598264eaff
Bug 830221 - Remove nsIDOMDOMImplementation. r=bz
...
MozReview-Commit-ID: 3SCN1mHiMMn
--HG--
extra : rebase_source : 68494c099873ed487fc71800006afd93d0edf4e7
2018-02-12 21:49:07 +01:00
Adrian Wielgosik
6c854a7275
Bug 1438270 - Remove nsIDOMDocumentXBL. r=bz
...
MozReview-Commit-ID: 4TsjUaEdDP2
--HG--
extra : rebase_source : ab61d1832113a8c7b126b8856de59056fcf5ec5e
2018-02-14 20:10:45 +01:00
Brad Werth
9805f317cb
Bug 1418930 Part 1: Define and use a method nsContentUtils::CORSModeToLoadImageFlags to standardize conversion of CORS modes to load image flags. r=bz
...
MozReview-Commit-ID: AqsEUhFYxH6
--HG--
extra : rebase_source : 94ab4f3b1e5729cce8a2572c949b174fc74fd878
2018-01-31 11:10:01 -05:00
Dorel Luca
890eb016d9
Merge mozilla-central to autoland. r=merge
...
--HG--
extra : rebase_source : f28e015c1411d7185cd69a272fea28620af062d9
2018-02-07 12:18:35 +02:00
Chris Pearce
595dccd4e7
Bug 1431674 - Backed out changeset 9d197f1860e6. r=backout
...
MozReview-Commit-ID: wP0aucXgzA
--HG--
extra : rebase_source : ad67234e7dff431c875bce5aac5b88e3c497dc78
2018-02-07 15:28:48 +13:00
Cameron McCormack
73774a4b98
Bug 1435666 - Part 4: Remove nsIDOMXPathEvaluator. r=bz
...
MozReview-Commit-ID: 2nZmbJ9mdwI
--HG--
extra : rebase_source : 3acc54ac7726de2ff00a9b7ddadfcb7e28f573eb
2018-02-05 13:05:45 +08:00
Olli Pettay
de32ea78a2
Bug 1430303 - Implement ShadowRoot.pointerLockElement, r=mrbkap
...
--HG--
rename : dom/tests/mochitest/pointerlock/file_pointerlock-api.html => dom/tests/mochitest/pointerlock/file_pointerlock-api-with-shadow.html
2018-02-03 22:08:30 +02:00
Boris Zbarsky
0e718778d9
Bug 1434819 part 9. Remove nsIDOMNodeFilter. r=qdot
...
MozReview-Commit-ID: JsxGp9HQ2ak
2018-02-01 14:26:13 -05:00
Boris Zbarsky
59795295d1
Bug 1434819 part 6. Get rid of NodeFilterHolder. r=qdot
...
Now that TreeWalker and NodeIterator only use webidl APIs, they always have a
NodeFilter, not nsIDOMNodeFilter.
MozReview-Commit-ID: 5pzn9V3Kxzy
2018-02-01 14:26:12 -05:00
Emilio Cobos Álvarez
9a18395a1d
Bug 1434474: There's no need to rebuild font / counter styles / font feature values off a runnable. r=bholley
...
Everything that needs them up-to-date will call flush appropriately, there
should be no need to do it manually.
This way we coalesce all the stylist updates until the next style flush in the
best case, or until one of the consumers actually needs them.
MozReview-Commit-ID: BVsxXxhtcKL
--HG--
extra : rebase_source : a41c14689fdcdb30935e16bdb0e757e7140e88e7
2018-01-31 11:12:36 +01:00
Cameron McCormack
d02e54b79b
Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
...
MozReview-Commit-ID: CIHyPdF7Exl
--HG--
extra : source : 78a2fc781eead47af3923efcde58569c5d882ab1
2018-02-01 15:04:04 +11:00
Cameron McCormack
cc7db5c40c
Bug 1430014 - Part 4: #ifdef out unnecessary code when the old style system is not built. r=xidorn
...
MozReview-Commit-ID: 1FZ9VzjcPzN
--HG--
extra : source : de22d220635f8c059834b76f769d5215ab1a8b5b
2018-02-01 15:04:04 +11:00
Boris Zbarsky
65bf16222e
Bug 1434399 part 19. Remove nsIXULDocument. r=mystor
...
MozReview-Commit-ID: 9jQu4sjOhb2
2018-01-31 14:49:29 -05:00
Cosmin Sabou
94617f91cf
Backed out 19 changesets (bug 1434399) for build bustages on nsXULPopupManager.cpp on a CLOSED TREE
...
Backed out changeset 499f6dffd9cb (bug 1434399)
Backed out changeset 018290612415 (bug 1434399)
Backed out changeset f4c3179f8e59 (bug 1434399)
Backed out changeset f3ce2826b857 (bug 1434399)
Backed out changeset 6d2391af01dd (bug 1434399)
Backed out changeset dc98ed8c609a (bug 1434399)
Backed out changeset 8eaa395d6200 (bug 1434399)
Backed out changeset 19b18f4a53be (bug 1434399)
Backed out changeset 8ff378a6e96a (bug 1434399)
Backed out changeset 60fe73be1a26 (bug 1434399)
Backed out changeset faefb2751fdc (bug 1434399)
Backed out changeset 55cdf8b3a959 (bug 1434399)
Backed out changeset b578cc8efb92 (bug 1434399)
Backed out changeset 54cc4cb2fca1 (bug 1434399)
Backed out changeset f5343ef34d6c (bug 1434399)
Backed out changeset 8fb30e066cbd (bug 1434399)
Backed out changeset 21341b656b0f (bug 1434399)
Backed out changeset fab1f8b087a2 (bug 1434399)
Backed out changeset 55250a54852a (bug 1434399)
2018-01-31 22:45:26 +02:00
Boris Zbarsky
fe2cefd901
Bug 1434318 part 14. Remove various unused nsIDOMDocument bits. r=mystor
...
MozReview-Commit-ID: CCYEpeZTMLG
2018-01-31 15:18:11 -05:00
Boris Zbarsky
928d0d4fa7
Bug 1434318 part 13. Remove nsIDOMDocument::CreateEvent. r=mystor
...
MozReview-Commit-ID: EaUjTLeaQ0n
2018-01-31 15:18:11 -05:00
Boris Zbarsky
0935ca9973
Bug 1434318 part 12. Remove nsIDOMDocument's contentType attribute. r=mystor
...
MozReview-Commit-ID: DAXrxIxiac4
2018-01-31 15:18:11 -05:00
Boris Zbarsky
d8503e650d
Bug 1434318 part 11. Remove nsIDOMDocument's stylesheet set APIs. r=mystor
...
MozReview-Commit-ID: 9ABdbYKZI6k
2018-01-31 15:18:11 -05:00
Boris Zbarsky
f0d195b828
Bug 1434318 part 10. Remove nsIDOMDocument's title attribute. r=mystor
...
MozReview-Commit-ID: IBToVxx4bSs
2018-01-31 15:18:10 -05:00
Boris Zbarsky
d42eaf220e
Bug 1434318 part 9. Remove nsIDOMDocument::CreateTreeWalker. r=mystor
...
MozReview-Commit-ID: 53JPEy7AQtp
2018-01-31 15:18:10 -05:00
Boris Zbarsky
ede65cfa38
Bug 1434318 part 8. Remove nsIDOMDocument::GetElementById. r=mystor
...
MozReview-Commit-ID: IzjmFqySBpB
2018-01-31 15:18:10 -05:00
Boris Zbarsky
a514705917
Bug 1434318 part 7. Remove nsIDOMDocument::GetElementsBy* methods. r=mystor
...
MozReview-Commit-ID: CnfelWtz0mT
2018-01-31 15:18:10 -05:00
Boris Zbarsky
e4b987a4d3
Bug 1434318 part 6. Remove nsIDOMDocument::CreateDocumentFragment. r=mystor
...
MozReview-Commit-ID: A4Me0H1MzL6
2018-01-31 15:18:10 -05:00
Boris Zbarsky
8a4e877b15
Bug 1434318 part 5. Remove some unused nsIDOMDocument node-creation APIs. r=mystor
...
MozReview-Commit-ID: A0GRXYLsupg
2018-01-31 15:18:10 -05:00
Boris Zbarsky
29c18cd07f
Bug 1434318 part 4. Remove nsIDOMDocument's documentElement attribute. r=mystor
...
MozReview-Commit-ID: 2FUstFDF2lF
2018-01-31 15:18:10 -05:00
Boris Zbarsky
22839b2f74
Bug 1434318 part 3. Remove nsIDOMDocument's doctype attribute. r=mystor
...
MozReview-Commit-ID: GsTN3kZATz7
2018-01-31 15:18:09 -05:00
Boris Zbarsky
95e268e32f
Bug 1434399 part 19. Remove nsIXULDocument. r=mystor
...
MozReview-Commit-ID: 9jQu4sjOhb2
2018-01-31 14:49:29 -05:00
Cameron McCormack
4805d2cde9
Bug 1406274 - Re-enable stylo in about:reader. r=xidorn
...
Remove the about:reader check for <style scoped>, too, since that is no
longer needed.
MozReview-Commit-ID: Zomjn1WDvp
--HG--
extra : rebase_source : f5c82ef6c35b72079b37c35adc9137ad9f610946
2018-01-17 14:10:45 +08:00
Boris Zbarsky
9da3878bc9
Bug 1418076 part 11. Eliminate the nsIDOMHTMLDocument interface. r=mystor
...
MozReview-Commit-ID: 4lEcUeenbg3
2018-01-26 01:03:25 -05:00
Boris Zbarsky
e8182afa14
Bug 1276438 part 3. Align the .body setter with the spec a bit better. r=mystor
...
There are two changes here:
1) We allow setting .body even if the root element is not an <html:html>. This
is what the spec says to do, and what we used to do before the changes in bug
366200. No tests for this yet, pending
https://github.com/whatwg/html/issues/3403 getting resolved.
2) We use GetBody(), not GetBodyElement(), to look for an existing thing to
replace. This matters if there are <frameset>s involved.
MozReview-Commit-ID: JCaQGHKgzE7
2018-01-26 00:52:40 -05:00
Boris Zbarsky
8d8cae1597
Bug 1276438 part 2. Move the implementation of the .body setter from nsHTMLDocument to nsIDocument. r=mystor
...
MozReview-Commit-ID: EJAZfrXC0QJ
2018-01-26 00:36:57 -05:00
Boris Zbarsky
672340ede6
Bug 1276438 part 1. Move the implementation of the .body getter from nsHTMLDocument to nsIDocument. r=mystor
...
MozReview-Commit-ID: BhQuGS1NdmQ
2018-01-25 06:55:47 -05:00
Boris Zbarsky
f60fd673d6
Bug 1432186 part 19. Remove the nsIDOMNode::*_NODE constants. r=mccr8
...
MozReview-Commit-ID: KvKjeKIOB9K
2018-01-29 23:10:53 -05:00
Boris Zbarsky
baca310fed
Bug 1432186 part 9. Remove nsIDOMNode::CloneNode. r=mccr8
...
MozReview-Commit-ID: 3x3wJ9H38Wx
2018-01-29 23:10:51 -05:00
Brindusan Cristian
674c27a54e
Merge inbound to mozilla-central. a=merge
2018-01-27 13:04:15 +02:00
Ehsan Akhgari
de3684029d
Bug 1433563 - Remove nsIDOMCDATASection; r=qdot
2018-01-26 17:52:44 -05:00
Ben Kelly
e71d8db226
Bug 1430139 P3 Remove workers namespace from service worker code. r=asuth
2018-01-26 13:08:59 -08:00
Hiroyuki Ikezoe
911b60cb08
Bug 1433336 - Add nsIDocument::CollectDescendantDocument(). r=smaug
...
In contrast to nsIDocument::EnumerateSubDocuments(), this new function is
supposed to work with the callback function which does not mutate any state
in the document, and also this function checks all descendant documents even
if there is a descendant that the callback function returns false.
MozReview-Commit-ID: 4f6zD29qQD2
--HG--
extra : rebase_source : 221269fb08bb73d938a6019e1274b2236ee34264
2018-01-26 20:11:09 +09:00
Hiroyuki Ikezoe
47baed1a64
Bug 1433336 - Drop unused SubDocEnumArgs in nsDocument.cpp. r=smaug
...
MozReview-Commit-ID: HuVOdxGZIuN
--HG--
extra : rebase_source : c5709c71a7ac6d2d4e174b4806294d0928c99197
2018-01-26 20:10:07 +09:00
Kris Maglione
b3cac601f6
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
--HG--
extra : rebase_source : 1c0a1448a06d5b65e548d9f5362d06cc6d865dbe
extra : amend_source : 7184593019f238b86fd1e261941d8e8286fa4006
2018-01-24 14:56:48 -08:00
Andrea Marchesini
54a9ba4253
Bug 1431000 - Replace the use of nsINode::InsertChildAt_Deprecated with nsINode::InsertChildBefore in nsDocument, r=catalinb
2018-01-25 15:59:47 +01:00
Andrea Marchesini
35c2c8122a
Bug 1431000 - Introduce nsINode::InsertChildBefore, r=catalinb
2018-01-25 15:59:42 +01:00
Andrea Marchesini
c6da271117
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
...
* * *
Bug 1425458 - Resource timing entries Workers - part 10 - Correct parameters in NS_NewChannel in nsDataObj.cpp, r=me
2018-01-24 17:17:31 +01:00
Brindusan Cristian
368c3d5b6b
Backed out 12 changesets (bug 1425458) for mochitest failures on WorkerPrivate.cpp on a CLOSED TREE
...
Backed out changeset 11997de13778 (bug 1425458)
Backed out changeset 100b9d4f36bc (bug 1425458)
Backed out changeset a29e9dbb8c42 (bug 1425458)
Backed out changeset b96d58fd945c (bug 1425458)
Backed out changeset f140da44ba68 (bug 1425458)
Backed out changeset af56400233d9 (bug 1425458)
Backed out changeset 7034af4332e4 (bug 1425458)
Backed out changeset f70500179140 (bug 1425458)
Backed out changeset 793bbfc23257 (bug 1425458)
Backed out changeset 2efb375a8ffc (bug 1425458)
Backed out changeset 07e781e37451 (bug 1425458)
Backed out changeset e875f3702a5f (bug 1425458)
2018-01-24 20:47:48 +02:00
Andrea Marchesini
6480b95ba3
Bug 1425458 - Resource timing entries Workers - part 0 - NS_NewChannel, r=smaug
2018-01-24 17:17:31 +01:00
Andrea Marchesini
85b163bc38
Bug 1430998 - Rename nsINode::InsertChildAt to InsertChildAt_Deprecated, r=catalinb
2018-01-23 14:30:18 +01:00
Andrea Marchesini
b8bb98af8c
Bug 1430997 - Rename nsINode::IndexOf to nsINode::ComputeIndexOf, r=catalinb
2018-01-23 14:30:18 +01:00
Rob Wu
7e5117562b
Bug 1459588 - Remove unused allowDocumentToBeAgnosticToCSP r=ckerschb
...
This cleanup basically reverts the remaining bits of 93dcf59ff87
MozReview-Commit-ID: 9zimpjAkZyj
--HG--
extra : rebase_source : 7c2d573a0cd067f529f096472c1d543d8d598635
2018-05-07 15:12:51 +02:00
Boris Zbarsky
a34bb913ee
Bug 1431964 part 2. Remove the XPCOM versions of createAttribute(NS). r=mccr8
...
MozReview-Commit-ID: G4HfD7ni9hd
2018-01-20 18:15:59 -05:00
Emilio Cobos Álvarez
c068982e2b
Bug 1431401: Initialise mIsSVGGlyphsDocument on the constructor. r=jmaher
...
Off-hand I wouldn't have suspected of any of my patches, but I just realized of
something... I hate C++, and it's wild that this got into the tree unnoticed,
and without any failure or warning.
I suspect the incoming patch will fix this, if not I'll happily investigate
more.
FWIW the code that this bit replaced was equally uninitialized... I guess it was
wallpapered in any other way.
MozReview-Commit-ID: A03fQluNcKN
--HG--
extra : rebase_source : cead8d8bcde74b7b6bb6ed106ee1f29cc62f72b8
2018-01-19 19:47:48 +01:00
Emilio Cobos Álvarez
ae38d1cb24
Bug 1428491: Make the style set know about a document, not a pres context. r=heycam
...
MozReview-Commit-ID: I7T41NiHuJv
2018-01-17 19:12:40 +01:00
Margareta Eliza Balazs
757c55dc4f
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-01-16 23:49:24 +02:00
Andrea Marchesini
a9af4d0df8
Bug 1425440 - Replace RemoveChildAt_Deprecated with RemoveChildNode in FragmentOrElement and nsIDocument, r=catalinb
2018-01-16 14:17:11 +01:00
Andrea Marchesini
41d4da5cef
Bug 1425440 - Introduce nsINode::RemoveChildNode, r=catalinb
2018-01-15 17:18:38 +01:00
Gurzau Raul
e0cb05876d
Merge inbound to mozilla-central. a=merge
2018-01-15 11:57:47 +02:00
Jessica Jong
bf1d5c0073
Bug 1429656 - Implement ShadowRoot.activeElement. r=smaug
2018-01-15 14:42:47 +08:00
Jessica Jong
20d2281c59
Bug 1429982 - cloneNode on ShadowRoot interface should throw NotSupportedError. r=smaug
...
The spec changed in order to align with the error thrown by importNode.
--HG--
rename : dom/tests/mochitest/webcomponents/test_bug1176757.html => dom/tests/mochitest/webcomponents/test_shadowroot_clonenode.html
2018-01-15 14:42:43 +08:00
Alastor Wu
cb52b8db63
Bug 1428722 - part2 : move all user-activation implementation details to nsDocument. r=smaug
...
In order to write tests, I would like to create an method that allows chorome js can directly set the user-activation flag.
Therefore, I need to move all these details into nsDocument, then we could easily simulate the user activation.
MozReview-Commit-ID: 5JrCoQc0vF7
--HG--
extra : rebase_source : 256ff2993ef754dc51409e7e444b868a3302bd65
2018-01-11 17:26:30 +08:00
Alastor Wu
acecd71925
Bug 1428722 - part1 : always activate the top level frame. r=smaug
...
For top level frame, it should also be activated when user activate its child frame.
eg. A (youtube.com) -> B (ad.com), when user activate B frame, the A frame would also be activated.
MozReview-Commit-ID: BP7eGKiqYJe
--HG--
extra : rebase_source : 8a07e2a46d70957989168a9ee677e5241fee61fe
2018-01-08 16:44:28 +08:00
Jessica Jong
4bee56a645
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
Andreea Pavel
c98c2f7291
Backed out 2 changesets (bug 1428491) for failing browser chrome mochitest at /builds/worker/workspace/build/src/layout/style/ServoStyleSet.cpp:941 on a CLOSED TREE
...
Backed out changeset 308e79e6c98f (bug 1428491)
Backed out changeset dbfd798e491b (bug 1428491)
2018-01-16 14:26:41 +02:00
Emilio Cobos Álvarez
bde9657140
Bug 1428491: Make the style set know about a document, not a pres context. r=heycam
...
MozReview-Commit-ID: I7T41NiHuJv
--HG--
extra : rebase_source : 4642cf6f511f5c4e5ba285e2e865574a44459081
2018-01-05 13:51:08 +01:00
Chris Peterson
37efe4d0e6
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Nika Layzell
a0d1f16079
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
Ben Kelly
ca1c57878e
Bug 1425965 P4 Remove mControlledDocument, mRegisteringDocuments, and mNavigationIntercepts from ServiceWorkerManager. r=asuth
2018-01-12 12:16:05 -05:00
Ciure Andrei
93d5417e33
Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE
2018-01-11 12:08:47 +02:00
Cameron McCormack
e3549b2d1c
Bug 1427512 - Part 22: Remove nsIDOMStyleSheet. r=xidorn,bz
...
MozReview-Commit-ID: KO2mWX4P8lI
2018-01-11 16:17:57 +08:00
Cameron McCormack
0ae07fab78
Bug 1427512 - Part 21: Remove nsIDOMStyleSheetList. r=xidorn,jryans,bz
...
MozReview-Commit-ID: 8ZSTMoWkeRw
2018-01-11 16:17:56 +08:00
Cameron McCormack
242feb15c7
Bug 1427512 - Part 15: Remove nsIDOMCSSStyleRule. r=xidorn,jryans
...
MozReview-Commit-ID: 7riPO9da5KL
2018-01-11 16:17:56 +08:00
Blake Kaplan
586e13b2b7
Bug 1404297 - Temporarily assert that we don't re-enter this function. r=bzbarsky
...
MozReview-Commit-ID: FoQGVDWtwN1
--HG--
extra : rebase_source : c22cc3a022dc01923696940fc0b0aae708232db0
2018-01-10 18:48:26 -05:00
Alphan Chen
87bb85b91b
Bug 1421214 - Try GoToAnchor() with unescaped string before using document's charset. r=smaug
2018-01-05 15:12:16 +08:00
Jon Coppeard
bc9a97d964
Bug 1361369 - Allow async attribute on inline module scripts r=smaug
2018-01-08 15:17:34 +00:00
Boris Zbarsky
77660697fc
Bug 1426525 part 2. Remove the now-nearly-unused XULDocument::GetElementsForID method. r=smaug
...
MozReview-Commit-ID: Gv23I8gLhem
2018-01-05 13:48:39 -05:00
Coroiu Cristina
cf8d0654b4
Backed out 5 changesets (bug 1426525) for bustage at build/src/layout/xul/tree/nsTreeContentView.cpp r=backout on a CLOSED TREE
...
Backed out changeset 96efa1b6f4d5 (bug 1426525)
Backed out changeset 37fdd4a04f4e (bug 1426525)
Backed out changeset cee585723368 (bug 1426525)
Backed out changeset 85e218bf000c (bug 1426525)
Backed out changeset 501c70abf837 (bug 1426525)
2018-01-05 21:40:44 +02:00
Boris Zbarsky
8ae71997ff
Bug 1426525 part 2. Remove the now-nearly-unused XULDocument::GetElementsForID method. r=smaug
...
MozReview-Commit-ID: Gv23I8gLhem
2018-01-05 13:48:39 -05:00
Ben Kelly
3bd4435759
Bug 1425975 P9 Refactor MaybeCheckNavigationUpdate() to take a ClientInfo instead of a document. r=asuth
2018-01-05 12:10:21 -05:00
Andrea Marchesini
6ee7f4e6f3
Bug 1425321 - Renaming nsINode::RemoveChildAt to RemoveChildAt_Deprecated, r=catalinb
2018-01-03 14:01:03 +01:00
Andrea Marchesini
00e79ef07b
Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=catalinb
...
We want to deprecate nsINode::GetChildAt as the first step of removing DOM node
child array storage. See bug 651120.
2018-01-03 13:59:54 +01:00
Emilio Cobos Álvarez
1cda1ad876
Bug 1427511: Make GetFlattenedTreeParent more straight-forward. r=smaug
...
Now that accessing nsIContent slots is not a blob of virtual function calls, we
should be able to unify logic here, and speed up the not-so-rare case for
chrome, while keeping the usual case fast.
MozReview-Commit-ID: 87iY5Cbhx4T
2018-01-02 18:00:25 +01:00
Emilio Cobos Álvarez
fd120385c7
Bug 1427001: Move SetXBLBinding and SetShadowRoot to Element. r=smaug
...
MozReview-Commit-ID: 6FL1HR2Isa
2017-12-31 13:45:58 +01:00
Emilio Cobos Álvarez
c8eb630ebe
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez
ffdf5d2cb5
Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me
2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez
c0959b2955
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01:00
Csoregi Natalia
0bf10c4d4e
Backed out 14 changesets (bug 1425975) for M(5) permafails mochitest/test_ext_webrequest_filter.html. r=backout a=backout
...
Backed out changeset e6f4a2d1df9a (bug 1425975)
Backed out changeset 1e657fa97b71 (bug 1425975)
Backed out changeset 9e1544ec814d (bug 1425975)
Backed out changeset 0e50d9d1d069 (bug 1425975)
Backed out changeset fb89dbd922ba (bug 1425975)
Backed out changeset f2b451ce55d4 (bug 1425975)
Backed out changeset 4ce186c6d8f5 (bug 1425975)
Backed out changeset 6f520ab76d6a (bug 1425975)
Backed out changeset f091f5e182c4 (bug 1425975)
Backed out changeset 82d39ed8c831 (bug 1425975)
Backed out changeset df13eba47970 (bug 1425975)
Backed out changeset 553628a56e6a (bug 1425975)
Backed out changeset acf4d61babab (bug 1425975)
Backed out changeset b7ae11b5bce8 (bug 1425975)
2017-12-24 00:23:57 +02:00
Ben Kelly
ae22e882e6
Bug 1425975 P9 Refactor MaybeCheckNavigationUpdate() to take a ClientInfo instead of a document. r=asuth
2017-12-22 21:09:19 -05:00
Emilio Cobos Álvarez
9db998a70b
Bug 1426494: s/StyleScope/DocumentOrShadowRoot. r=smaug
...
MozReview-Commit-ID: DsFPlQMGAyv
2017-12-22 01:56:36 +01:00
Emilio Cobos Álvarez
d5196e4079
Bug 1426494: Share more code among Document / ShadowRoot. r=smaug
...
MozReview-Commit-ID: C4cJrSFPnIb
2017-12-22 01:56:17 +01:00
Emilio Cobos Álvarez
041202a4fc
Bug 1426494: Devirtualize StyleScope::AsNode. r=smaug
...
MozReview-Commit-ID: 2nDEI5aIu46
2017-12-22 01:56:16 +01:00
Cosmin Sabou
4620ebda6e
Backed out 3 changesets (bug 1426494) for build bustages on dom/base/FuzzingFunctions.h:25:44 r=backout on a CLOSED TREE
...
Backed out changeset 8d07cb1ef232 (bug 1426494)
Backed out changeset 74a8ebb0f5d3 (bug 1426494)
Backed out changeset 07c4aa18a0b6 (bug 1426494)
2017-12-21 03:09:22 +02:00
Emilio Cobos Álvarez
d58883c70b
Bug 1426494: s/StyleScope/DocumentOrShadowRoot. r=smaug
...
MozReview-Commit-ID: DsFPlQMGAyv
2017-12-21 00:24:28 +01:00
Emilio Cobos Álvarez
7e7dee971b
Bug 1426494: Share more code among Document / ShadowRoot. r=smaug
...
MozReview-Commit-ID: C4cJrSFPnIb
2017-12-21 00:24:27 +01:00
Emilio Cobos Álvarez
85d3328fea
Bug 1426494: Devirtualize StyleScope::AsNode. r=smaug
...
MozReview-Commit-ID: 2nDEI5aIu46
2017-12-21 00:24:26 +01:00
Ben Kelly
0240c2751f
Bug 1426253 P3 Use the window/document GetController() method. r=asuth
2017-12-20 10:53:18 -05:00
Ben Kelly
aa417857ba
Bug 1426253 P1 Expose nsIDocument GetClientInfo(), GetClientState(), and GetController(). r=asuth
2017-12-20 10:53:18 -05:00
Dorel Luca
bb38f32f41
Merge mozilla-central to autoland r=merge
...
--HG--
extra : rebase_source : 0c0bfd3276af0539685b4c20bbe62fe3bf084693
2017-12-19 12:11:30 +02:00
Emilio Cobos Álvarez
aff5090202
Bug 1425769: Base class for ShadowRoot and Document to manage style state. r=smaug
...
This also removes some confusing comments around nsIDocument regarding some kind
of "special" stylesheets, which don't seem to exist anymore, and consolidates
StyleSheetList so that we only have one implementation.
I think that fixes a potential leak on the shadow root code (even though the API
is v0 only), given the pointer from the ShadowRootStyleSheetList to the
ShadowRoot wasn't being CCd.
Also, more stuff could be renamed, methods removed, etc, feel free to suggest
more cleanup, I've done mostly the minimal.
Next steps are moving the stylesets there and stop using the proto binding sheet
list / resources.
MozReview-Commit-ID: D9hnDgPQAS5
2017-12-19 11:09:59 +01:00
Dorel Luca
e968e809aa
Backed out changeset 13faabcf8e96 (bug 1425769) for Linux bustage on build/src/dom/base/nsLineBreaker.h
2017-12-19 11:07:44 +02:00
Emilio Cobos Álvarez
5ae586e759
Bug 1425769: Base class for ShadowRoot and Document to manage style state. r=smaug
...
This also removes some confusing comments around nsIDocument regarding some kind
of "special" stylesheets, which don't seem to exist anymore, and consolidates
StyleSheetList so that we only have one implementation.
I think that fixes a potential leak on the shadow root code (even though the API
is v0 only), given the pointer from the ShadowRootStyleSheetList to the
ShadowRoot wasn't being CCd.
Also, more stuff could be renamed, methods removed, etc, feel free to suggest
more cleanup, I've done mostly the minimal.
Next steps are moving the stylesets there and stop using the proto binding sheet
list / resources.
MozReview-Commit-ID: D9hnDgPQAS5
--HG--
extra : rebase_source : 0597917521894288c6b749e5d3ac6ac3b7db44a0
2017-12-17 22:29:10 +01:00
Honza Bambas
9264c9f395
Bug 1425296 - Don't let RequestContext's load state be reset to 'before-DOMContentLoaded' by any sub-requested document within the load group to prevent long delays of tailed (tracking) requests. r=bz
2017-12-18 20:08:58 -05:00
Olli Pettay
d78d3295c5
Bug 1412775 - Implement Event.composedPath, r=stone
...
--HG--
extra : rebase_source : a970c4a0daac4a7a02cec34733131734eb93b151
2017-12-18 18:07:36 +02:00
Emilio Cobos Álvarez
b864765f92
Bug 1424816: Remove the document state cache. r=smaug
...
See bug 1422633, there are assertions missing, and servo doesn't assert at all
anymore.
I don't think it's worth optimizing / lazily resolving it, each time the
document state changes.
We usually just restyle the world anyway (which requires recomputing it), and
the changes that it's optimizing (nsWindow::SetActive() and XUL root element
localedir attribute changes) aren't common enough to warrant the complexity I'd
say.
This doesn't handle invalidating the cache in the case the root element goes
away, I haven't bothered because it was already broken, and GetRootElement() is
already gone in RemoveSubtreeFromDocument.
MozReview-Commit-ID: 9RuQhmmy7Kr
2017-12-14 16:07:36 +01:00
Ben Kelly
890e126aaa
Bug 1293277 P6 Use the ClientInfo.Id() value for FetchEvent.clientId. r=baku
2017-12-12 15:44:48 -05:00
Magnus Melin
8800105314
Bug 1411745 - crash for svg linking to mailbox URI. r=smaug
2017-12-09 16:43:16 +02:00
Jessica Jong
7fe15d1a52
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
Narcis Beleuzu
f0d93dda2c
Backed out 2 changesets (bug 1422931) for crashtest failures on dom/base/crashtests/1419799.html r=backout on a CLOSED TREE
...
Backed out changeset 60d9744e3fc4 (bug 1422931 )
Backed out changeset cf554d5d70cc (bug 1422931 )
2017-12-08 18:27:56 +02:00
Jessica Jong
00fc818c22
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
testcas ends, but nsDocument::DeleteShell is called afterwards. So, we
make the preference per-doc and once it is enabled for a document, it
stays enabled.
2017-12-08 22:17:40 +08:00
Emilio Cobos Álvarez
74b31155f7
Bug 1423167: Move most attribute-related methods from nsIContent to Element. r=bz
...
MozReview-Commit-ID: 6WXqNiODttD
2017-12-06 16:05:59 +01:00
Jonathan Watt
eabc47f6c9
Bug 1415068 - Include SVG text elements in elementsFromPoint. r=heycam
...
MozReview-Commit-ID: FvMzOF6JJM1
2017-12-06 14:09:01 +00:00
Emilio Cobos Álvarez
1138344d9a
Bug 1422633: Inline nsIDocument::ThreadSafeGetDocumentState(). r=smaug
...
It's silly to pay a function call for that, and it shows up in stylo-chrome
profiles.
MozReview-Commit-ID: 8m7ZHG1KX15
2017-12-05 14:20:07 +01:00
Emilio Cobos Álvarez
5604b99826
Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
...
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.
Far from the final, ideal state, but hey, progress.
MozReview-Commit-ID: 7TrifME9VZ
2017-12-01 08:46:39 +01:00
Brindusan Cristian
6f5b49da3e
Backed out 2 changesets (bug 1420762) for merge conflicts r=merge a=merge
...
Backed out changeset ba350c82d823 (bug 1420762)
Backed out changeset 00287b88254b (bug 1420762)
2017-12-01 00:20:10 +02:00
Emilio Cobos Álvarez
f28656c543
Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
...
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.
Far from the final, ideal state, but hey, progress.
MozReview-Commit-ID: 7TrifME9VZ
2017-11-30 15:42:45 +01:00
Bogdan Tara
df97c78dbf
Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE
2017-11-30 01:10:06 +02:00
Edgar Chen
9f4324f41e
Bug 1416999 - Remove document.registerElement; r=smaug
...
MozReview-Commit-ID: HiX07Vbljhk
--HG--
rename : dom/base/test/chrome/registerElement_ep.js => dom/base/test/chrome/custom_element_ep.js
rename : dom/base/test/chrome/frame_registerElement_content.html => dom/base/test/chrome/frame_custom_element_content.html
rename : dom/base/test/chrome/test_registerElement_content.xul => dom/base/test/chrome/test_custom_element_content.xul
rename : dom/base/test/chrome/test_registerElement_ep.xul => dom/base/test/chrome/test_custom_element_ep.xul
rename : dom/base/test/test_document_register.html => dom/base/test/test_custom_element.html
rename : dom/tests/mochitest/webcomponents/test_document_register.html => dom/tests/mochitest/webcomponents/test_custom_element_define.html
rename : dom/tests/mochitest/webcomponents/test_document_register_parser.html => dom/tests/mochitest/webcomponents/test_custom_element_define_parser.html
rename : dom/tests/mochitest/webcomponents/test_template_custom_elements.html => dom/tests/mochitest/webcomponents/test_custom_element_template.html
extra : rebase_source : cd2ebf166e8bd9c49910387c9136d7b83b51598d
2017-11-16 12:23:15 +08:00
Boris Zbarsky
14eb0311b4
Bug 1417405 - Make sure to hold a strong ref on the stack to arguments passed to IsPotentiallyScrollable. r=smaug
...
--HG--
extra : rebase_source : abbd4b46d6c813b14aa767b1aab7b20567792a6b
2017-11-17 01:10:01 -05:00