arthur.iakab
2f2f2ffdbf
Merge mozilla-central to inbound
2018-05-08 15:44:33 +03:00
Emilio Cobos Álvarez
9509853a38
Bug 1459498: Rename nsIStyleSheetLinkingElement::StyleSheetInfo to SheetInfo. r=heycam
...
MozReview-Commit-ID: FeOmISAxWBk
2018-05-08 10:07:46 +02:00
Emilio Cobos Álvarez
91b6cb40dc
Bug 1459498: Use StyleSheetInfo more. r=heycam
...
Not as much as I'd like, because we have all the internal loads and child
sheets, but...
MozReview-Commit-ID: 7402w8vxCel
2018-05-08 10:07:43 +02:00
Emilio Cobos Álvarez
96600d2b9a
Bug 1459498: Use a different enum to differentiate IsAlternate from HasAlternateRel. r=heycam
...
MozReview-Commit-ID: 6pwR8t6fzSD
2018-05-08 10:07:42 +02:00
Emilio Cobos Álvarez
5b6f2bdee0
Bug 1459498: Refactor nsStyleLinkElement so that all the stylesheet information comes from one place. r=heycam
...
I've kept the nsAutoStrings in the StyleSheetInfo class on the hopes that the
compiler does RVO, but if it doesn't I can remove I guess.
MozReview-Commit-ID: 2vN6BSEhYcw
2018-05-08 10:07:41 +02:00
Chris Peterson
71422dcaa9
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Chris Peterson
d4cad70c37
Bug 1457813 - Part 1: Replace asserting NS_PRECONDITIONs with NS_ASSERTIONs. r=froydnj
...
MozReview-Commit-ID: JMNmdne85lg
--HG--
extra : source : 4f90ac55e5c9a565765f742a4872c130205019b9
extra : intermediate-source : 41061cadcc2a75b9c78643a6220d012a7b64ea69
2017-11-05 17:01:56 -08:00
Emilio Cobos Álvarez
e6040e95d1
Bug 1459688: Properly traverse the stylesheet list of the shadow root. r=smaug
...
This is sound because the unlink implementation of the stylesheet drops the
preserved wrapper, and there are no strong references back to any node from the
stylesheet or any of the non-unlinked members.
This almost is the same setup that works for document sheets. We need to account
for a double reference in case the sheet is applicable because Servo keeps
another reference to it in that case, instead of in the StyleSet / PresShell.
Added the testcase as a crashtest, in the hopes that if it regresses leak
reporting on automation will catch it.
MozReview-Commit-ID: Kcc5oaOvP9A
2018-05-07 20:42:20 +02:00
Emilio Cobos Álvarez
d6f7b1d2f5
Bug 1459497: Refactor the preferred style set stuff in order to move the state away from the loader. r=heycam
...
The main thing to have into account is that the styleset to use is either
mLastStyleSheetSet, or mPreferredStyleSheetSet.
This last one gets set from Loader::IsAlternateSheet, which is quite nasty and
what I'm trying to remove.
MozReview-Commit-ID: BI4P1Chqtli
2018-05-07 03:55:36 +02:00
Olli Pettay
96c6253308
Bug 1449560 - clear event.target and .relatedTarget in case they would otherwise reveal targets in shadow DOM, r=bz
2018-05-05 02:21:15 +03:00
Andreas Farre
21d26b0afe
Bug 1450066 - Fall back to 0 if setInterval interval not supplied. r=bkelly
...
--HG--
extra : rebase_source : 55bacede7cacd5b18f710a303acf077e777e817b
2018-05-03 06:20:00 +03:00
Olli Pettay
ed65a2bfc8
bug 1457867, store DOMEventTargetHelper objects in global object as a linked list, r=bkelly
...
--HG--
extra : rebase_source : 415c03249bae1edc4313bcf15f91716a748565f9
2018-05-04 19:25:05 +03:00
Andrea Marchesini
b4b5d38767
Bug 1458883 - Remove File.lastModifiedDate, r=qdot
2018-05-04 14:39:53 +02:00
Eugen Sawin
8bee753352
Bug 1458687 - [1.0] Remove obsolete isUserTriggered argument in nsContentUtils::TriggerLink. r=smaug
2018-05-03 16:05:34 +02:00
Kyle Machulis
54713b5c80
Bug 1433221 - Revert changes to classid checks for object tags; r=bz
...
As part of applet/java plugin removal in bug 1279218, classid checking
was removed, as it was not obvious that this was used anywhere other
than java plugins. The classid is still a valid attribute on object
tags (and is sometimes used on tags for flash embedding). We want
to use a fallback strategy when we find objects with classid
attributes, as we don't support them, meaning we need to revert our
prior removal of the check.
MozReview-Commit-ID: BKQ34HGTkvt
--HG--
extra : rebase_source : 671bc831a7b500ba1a5643a8dbae69dd0c44acf4
2018-04-30 21:53:48 -07:00
Ben Kelly
d269a40f2e
Bug 1457157 P0 Don't call DisconnectFromOwner() in DOMMozPromiseRequestHolder::Complete(). r=baku
2018-05-02 06:29:26 -07:00
Tyson Smith
0d486d7cd3
Bug 1458016: Crashtest. r=emilio
...
MozReview-Commit-ID: LQeydd27UjF
2018-05-02 04:21:22 +02:00
Tyson Smith
8e22327e93
Bug 1422883: Crashtest. r=emilio
...
MozReview-Commit-ID: HaE9RYyMrmZ
2018-05-02 04:19:12 +02:00
Emilio Cobos Álvarez
c556ec7ad0
Bug 1457920: Remove ServoStyleSheet usage. r=xidorn
...
MozReview-Commit-ID: LIBkovuQ6MB
2018-05-02 04:13:26 +02:00
Emilio Cobos Álvarez
bf64474d79
Bug 1457920: Remove StyleSheet::AsServo. r=xidorn
...
MozReview-Commit-ID: IkkJvUFHykk
2018-05-02 04:13:21 +02:00
Andreea Pavel
7955752872
Merge mozilla-inbound to mozilla-central. a=merge
2018-05-01 13:13:09 +03:00
Emilio Cobos Álvarez
788397fa22
Bug 1458016: Fix bad cast to Text. r=bz
...
I think it's harmless security-wise, since Text and char data are both
nsIContent, so the vtable offset should be the same.
I could also just do AsContent(), which may be cleaner but involve a virtual
call, or add AsCharacterData(), just let me know.
MozReview-Commit-ID: 79I9CuCmioF
--HG--
extra : rebase_source : 59bcd64ee4ae4d444a4dbeed9b5ecf97455c4422
2018-04-30 22:03:33 +02:00
Hiroyuki Ikezoe
549813ca2d
Bug 1456372 - Use GetWebRenderBridge() in nsDOMWindowUtils::GetOMTAStyle(). r=kats
...
We can directly get WebRenderBridgeChild by the function.
MozReview-Commit-ID: 6o4ZJMN2xAn
--HG--
extra : rebase_source : ba410297ad30f0bec00b1c65123b722d0b2869dd
2018-04-30 10:26:52 +09:00
Kartikaya Gupta
549ac4326c
Bug 1457443 - Don't expect WebRender windows if WebRender isn't built. r=milan
...
MozReview-Commit-ID: 2i25nGMsvxE
--HG--
extra : rebase_source : 9bdd28048504bcde5150b252777f46ab523ca1ff
2018-04-27 12:51:40 -04:00
Andreea Pavel
443c91d4b4
Merge inbound to mozilla-central. a=merge
2018-04-28 20:30:18 +03:00
Olli Pettay
30938bcddd
Bug 1430020, let sequential focus navigation in shadow DOM enter iframes, r=mrbkap
...
--HG--
extra : rebase_source : 0ca436dfc8b28a680bdb393f0f9ce8ae0632bd9a
2018-04-28 16:07:06 +03:00
Emilio Cobos Álvarez
981bc1c766
Bug 1457166: Fire online / offline events at the window. r=bz
...
MozReview-Commit-ID: 2v5zNwM9qSh
2018-04-28 09:38:53 +02:00
Kris Maglione
a259026c9d
Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
...
This also removes any redundant Ci.nsISupports elements in the interface
lists.
This was done using the following script:
acecb401b7/processors/chromeutils-generateQI.jsm
MozReview-Commit-ID: AIx10P8GpZY
--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Csoregi Natalia
aa73cfd14b
Merge mozilla-central to autoland. a=merge CLOSED TREE
2018-04-28 00:55:43 +03:00
Brindusan Cristian
93d1017e0f
Backed out changeset b543167ab064 (bug 1457166) for mochitest failures on test_bug336682_1.html CLOSED TREE
2018-04-27 15:44:00 +03:00
Emilio Cobos Álvarez
28b9b16ea6
Bug 1457166: Fire online / offline events at the window. r=bz
...
MozReview-Commit-ID: 2v5zNwM9qSh
2018-04-27 13:39:02 +02:00
Cosmin Sabou
db4c6f9696
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-04-27 13:13:54 +03:00
Cosmin Sabou
68fdb6cf4f
Merge inbound to mozilla-central. a=merge
2018-04-27 13:04:36 +03:00
Olli Pettay
fed24455b6
bug 1430692, Handle focus navigation on NAC in shadow DOM, r=mrbkap
...
--HG--
extra : rebase_source : c56c2be2fbf0aa04e520262a419fd49823aad012
2018-04-27 12:37:43 +03:00
Boris Zbarsky
1cbc813260
Bug 1455674 part 20. Get rid of nsIDOMElement. r=qdot
2018-04-26 23:37:34 -04:00
Boris Zbarsky
76ead58490
Bug 1455674 part 19. Get rid of JS uses of nsIDOMElement. r=qdot
...
In nsBlocklistService.js we know we're dealing with actual nodes, so .nodeType
checks should be fine.
2018-04-26 23:37:34 -04:00
Boris Zbarsky
25aa42d9a4
Bug 1455674 part 16. Remove most use of nsIDOMElement in dom. r=qdot
2018-04-26 23:37:34 -04:00
Boris Zbarsky
93af0eea13
Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot
2018-04-26 23:37:33 -04:00
Boris Zbarsky
6bf97b61c0
Bug 1455674 part 13. Remove remaining xpidl uses of nsIDOMElement. r=qdot
2018-04-26 23:37:29 -04:00
Boris Zbarsky
914f11a6d2
Bug 1455674 part 10. Remove nsIDOMElement use from remaining dom/ xpidl files. r=qdot
2018-04-26 23:36:10 -04:00
Boris Zbarsky
ffa08d7425
Bug 1455674 part 9. Remove nsIDOMElement use from nsIFocusManager. r=qdot
2018-04-26 23:35:19 -04:00
Boris Zbarsky
f33eebd4cb
Bug 1455674 part 8. Remove nsIDOMElement use from nsIDOMWindowUtils. r=qdot
2018-04-26 23:35:19 -04:00
Boris Zbarsky
dd4506eee2
Bug 1457155. Rename various focus manager variables to make it clearer that they're Elements. r=mccr8
2018-04-26 15:28:31 -04:00
Boris Zbarsky
4773c6d1d9
Bug 1457156. Rename nsPIDOMWindow::mFocusedNode to reflect that it's an Element now. r=mccr8
2018-04-26 15:28:30 -04:00
Olli Pettay
a055a5fc0d
Bug 1444285, let custom element upgrades to use backup queue inside chrome/XBL, r=mrbkap
...
--HG--
extra : rebase_source : 73d484bf9cae0168c4a1dc478ad8d1ccd5eed93f
2018-04-27 02:08:27 +03:00
shindli
af700315a1
Backed out 2 changesets (bug 1457155, bug 1457156) for B failures in builds/worker/workspace/build/src/dom/html/HTMLObjectElement.cpp on a CLOSED TREE
...
Backed out changeset 8b2a6b54336c (bug 1457155)
Backed out changeset 4e267d999797 (bug 1457156)
2018-04-27 01:34:37 +03:00
Boris Zbarsky
25cec96459
Bug 1457155. Rename various focus manager variables to make it clearer that they're Elements. r=mccr8
2018-04-26 15:28:31 -04:00
Boris Zbarsky
cb54ece0d5
Bug 1457156. Rename nsPIDOMWindow::mFocusedNode to reflect that it's an Element now. r=mccr8
2018-04-26 15:28:30 -04:00
Ben Kelly
70aa4c4f62
Bug 1457187 P1 Add a DOMMozPromiseRequestHolder helper class to auto-disconnect MozPromise Thenables when the global dies. r=baku
2018-04-26 09:18:01 -07:00
Emilio Cobos Álvarez
081d926e7b
Bug 1457026: Teach nsDocumentEncoder about display: contents. r=mats
...
MozReview-Commit-ID: 5F3qurRHMNM
2018-04-26 18:06:37 +02:00