Commit Graph

16374 Commits

Author SHA1 Message Date
Boris Zbarsky
c4000f8b65 Bug 1377980 part 3. Remove nsIDOMRange use in JS. r=mccr8 2018-05-17 12:01:38 -04:00
Boris Zbarsky
2e09ba1f75 Bug 1377980 part 2. Remove most C++ use of nsIDOMRange. r=mccr8 2018-05-17 12:01:38 -04:00
Boris Zbarsky
40d2bf9d7f Bug 1377980 part 1. Remove use of nsIDOMRange in xpidl. r=mcc8 2018-05-17 12:01:37 -04:00
Peter Van der Beken
0e48ffc2b4 Bug 1457301 - Crash in mozilla::ipc::ProcessLink::SendMessage | IPC_Message_Name=PBrowser::Msg_AsyncMessage. r=mccr8.
Add back code to block big messages in DispatchAsyncMessage that wasn't added to the
codepath used by the WebIDL bindings. Also remove the non-WebIDL version of
DispatchAsyncMessage, as it's now unused.

--HG--
extra : rebase_source : ec7e5663683c98de4275ce05d6ada2f175dcb355
2018-05-16 22:29:37 +02:00
Cosmin Sabou
caba9f10be Merge mozilla-central to inbound. a=merge 2018-05-17 12:49:47 +03:00
Cosmin Sabou
0917b1478d Merge inbound to mozilla-central. a=merge 2018-05-17 12:46:31 +03:00
Timothy Guan-tin Chien
c01a7646b9 Bug 1460815 - Provide a chrome-only callback on CustomElementRegistry so script can define CE lazily r=smaug
This patch creates a chrome-only method
customElements.setElementCreationCallback() so that custom elements migrated
from XBL bindings doesn't have to be define()'d on document loading. With this
method, we will set callbacks and the platform will get back to us when it
encounters a matched custom element type -- and the callback will load the
relevant script.

It's important to note that the callback runs after construction of the first
element; it will be upgraded when it's being appended.

MozReview-Commit-ID: 80z72zwXRlf

--HG--
extra : rebase_source : 826188e56bb0b167d1e5bafb7d2a487a32bd9dfa
2018-05-11 11:23:31 -07:00
Jan de Mooij
29f84e7bf2 Bug 1461292 part 4 - Remove unnecessary JSAutoRealm from GetPluginJSObject. r=bz 2018-05-16 21:05:29 +02:00
shindli
fdb6353ff2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-16 21:53:27 +03:00
shindli
55f2b0d77a Merge inbound to mozilla-central. a=merge 2018-05-16 21:31:38 +03:00
Jon Coppeard
8d493df52b Bug 1444956 - Support BinAST decoding in the script loader r=baku 2018-05-16 15:58:13 +01:00
Xidorn Quan
5896b33074 Bug 1461933 - Remove ServoBindings.h from ComputedStyleInline.h. r=emilio
For doing this, ServoComputedData is split into separate files, so that
files don't need to include ServoBindings.h just for accessing style
structs from ComputedStyles.

MozReview-Commit-ID: DPAd7PUUCl9

--HG--
extra : rebase_source : 7d6f739b7fb58a46e1624ba62e717412057ea9c1
2018-05-16 15:35:59 +10:00
Margareta Eliza Balazs
d4b9e50875 Merge inbound to mozilla-central. a=merge 2018-05-16 13:00:51 +03:00
Markus Stange
633ac66e7f Bug 1461555 - Rename ProfileEntry to ProfilingStackFrame. r=njn
The term "entry" is already used for elements in the profile buffer.

MozReview-Commit-ID: 1aB22V6veQh

--HG--
extra : rebase_source : c664eb4d6bed6cb74ba8a1b67ea99bd8ca57bcf7
extra : source : 3264c0cc0027b240b55bd3aebf27263b1e1d1cc0
2018-05-15 01:14:03 -04:00
Dorel Luca
0d2ff9e60d Merge mozilla-inbound to mozilla-central. a=merge 2018-05-16 00:54:22 +03:00
Emilio Cobos Álvarez
11794a944d Bug 1461701: Remove nsUpdateType and UPDATE_CONTENT_MODEL. r=smaug
MozReview-Commit-ID: 33iBMZqnkAc
2018-05-15 18:47:16 +02:00
Emilio Cobos Álvarez
cb56e2c9f3 Bug 1459529: Remove UPDATE_STYLE. r=heycam
Now that BeginUpdate is useless for the UPDATE_STYLE case, we don't need the
update mechanism at all. Just ensure that ApplicableStylesChanged is called on
the pres shell via the relevant RuleChanged, etc. notifications.

There's a big hidden gotcha here. nsIDocument::BeginUpdate does put a script
blocker on the stack for these updates. However it's not needed, since no script
can run during these notifications (only the stylesheet events we post for
devtools, but those use AsyncEventDispatcher and PostDOMEvents, so they don't
try to run immediately).

nsIDocument::BeginUpdate also does XBL binding attached queue stuff, but we
can't change bindings during these notifications anyway, so it also doesn't
matter.

MozReview-Commit-ID: HJvK6zQfloh
2018-05-15 18:44:29 +02:00
Emilio Cobos Álvarez
29a24373d9 Bug 1459529: Remove some useless nsIDocumentObserver notifications. r=heycam
MozReview-Commit-ID: DzuiqVGKsiu
2018-05-15 18:44:28 +02:00
Emilio Cobos Álvarez
2054320f28 Bug 1459529: Make sheets be associated to a shadow root too potentially. r=bz
MozReview-Commit-ID: Cd8xJuLRY5w
2018-05-15 18:44:25 +02:00
Csoregi Natalia
00dd116638 Merge inbound to mozilla-central. a=merge 2018-05-15 12:53:24 +03:00
Olli Pettay
20c34cefa0 Bug 1461278 - Print a note to the web console when a web site is using shadow DOM (v1), preffed off by default, r=emilio 2018-05-15 02:04:32 +03:00
Narcis Beleuzu
d7f7ec03a3 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-15 00:41:06 +03:00
Narcis Beleuzu
932adad93d Merge inbound to mozilla-central. a=merge 2018-05-15 00:36:35 +03:00
Adrian Wielgosik
c501e3beb0 Bug 1460940 - Clean up most remaining C++-side uses of nsIDOMDocument. r=bz
MozReview-Commit-ID: LKRnyDPNlle

--HG--
extra : rebase_source : a48b7c72a0f7ede38c91149a04d5de53987736f1
2018-05-11 19:46:15 +02:00
Adrian Wielgosik
5c8a9e8239 Bug 1460940 - Remove nsIDOMDocument uses in uriloader/. r=bz
MozReview-Commit-ID: LnXwludmiAn

--HG--
extra : rebase_source : 7acfeda4eb85992d53f90a533ec2c638cefcdd0f
2018-05-11 19:46:15 +02:00
Adrian Wielgosik
af5b239997 Bug 1460940 - Remove nsIDOMDocument uses in netwerk/. r=bz
MozReview-Commit-ID: QkZ36LGoBx

--HG--
extra : rebase_source : 5aa83c576f269a6f33a1fb7ea7a61bd63a3c0c25
2018-05-11 19:46:15 +02:00
Adrian Wielgosik
8a6d4efe5d Bug 1460940 - Remove nsIDOMDocument uses in widget/. r=bz
MozReview-Commit-ID: Rxvwm6zfrB

--HG--
extra : rebase_source : 0b76b09e0a9521af10b9900e33ff6b35abc289ff
2018-05-11 19:46:15 +02:00
Adrian Wielgosik
fff55359ea Bug 1460940 - Remove nsIDOMDocument uses in image/. r=bz
MozReview-Commit-ID: HUiegmeFLo4

--HG--
extra : rebase_source : cd6453dc5d708fc5cdc75114d163ea2389423d55
2018-05-11 19:46:15 +02:00
Adrian Wielgosik
f5e05d1158 Bug 1460940 - Convert nsIDocumentEncoder to use nsIDocument. r=bz
MozReview-Commit-ID: 1Nla9DnwFiu

--HG--
extra : rebase_source : e019c8370f453c6794052e441dc76fc98d603510
2018-05-11 19:46:15 +02:00
Adrian Wielgosik
b3a78c6c93 Bug 1460940 - Convert nsSyncLoadService::LoadDocument to use nsIDocument. r=bz
MozReview-Commit-ID: LtFdEVXDvLw

--HG--
extra : rebase_source : 9fe20ccaa54525b8b10b6fbad74968a497929193
2018-05-11 19:46:15 +02:00
Adrian Wielgosik
4fca802957 Bug 1460940 - Convert NS_NewDOMDocument to use nsIDocument. r=bz
MozReview-Commit-ID: GoJ30YZGRhq

--HG--
extra : rebase_source : 0995705c2c31c1a779c22c8336482d4c7e89e319
2018-05-11 19:46:15 +02:00
Olli Pettay
a7be7cff43 Bug 1460334 - Fix crash caused when attempting to migrate <deck> from a XBL binding to a Custom Element. r=peterv
--HG--
extra : amend_source : 461d41fa51087ce1cefc72df61a00e9cae5605e5
2018-05-10 14:08:00 -04:00
Brian Grinstead
72e0b3cfe9 Bug 1460685 - Remove security.allow_chrome_frames_inside_content case from nsDocument;r=Gijs
This pref will be removed in the following changeset.
MozReview-Commit-ID: E9TvPyxAgrf

--HG--
extra : rebase_source : cdc2998c1d65c027169c13876c8324d710b70531
2018-05-11 16:25:58 -07:00
Olli Pettay
6845fe60f6 Bug 1460435 - Move ID observing from Document to DocumentOrShadowRoot, r=peterv 2018-05-14 21:39:53 +03:00
Brian Grinstead
ebe89a6878 Bug 1460685 - Remove security.allow_chrome_frames_inside_content case from nsDocument;r=Gijs
This pref will be removed in the following changeset.
MozReview-Commit-ID: E9TvPyxAgrf

--HG--
extra : rebase_source : 99f285fc9a534c8e53dd274056c064819ce0e8c3
2018-05-11 16:25:58 -07:00
Olli Pettay
41366ba801 bug 1460794, ensure the right document is used for DOMSubtreeModified event, r=hsivonen
--HG--
extra : rebase_source : 1363016f0a6da8ca2f5be4d0a21e1ee0a6376c1c
2018-05-13 00:46:45 +03:00
Brindusan Cristian
6c56b182d4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-12 12:51:43 +03:00
Brindusan Cristian
1df25b391a Merge inbound to mozilla-central. a=merge 2018-05-12 12:47:14 +03:00
Emilio Cobos Álvarez
5aab8db970 Bug 1408301: Remove getPropertyCSSValue. r=bz
It's been removed for a while on Nightly without any known regressions. This
gives us a full beta cycle of telemetry and two nightly cycles without the API
before shipping.

This only removes the API, followup work will replace serialization by Servo's,
and remove the remaining DOM interfaces.

MozReview-Commit-ID: 2m1taYg5xEr
2018-05-12 11:23:47 +02:00
Margareta Eliza Balazs
00ba152869 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-16 13:07:21 +03:00
Jan de Mooij
80e44e8003 Bug 1461292 part 1 - Rename JSAutoCompartment to JSAutoRealm. r=bz,luke 2018-05-16 10:53:16 +02:00
Hiroyuki Ikezoe
8272b80b6d Bug 1460807 - Drop DOMWindowUtils.requestCompositorProperty. r=kats
The function was introduced in bug 1057088, and has been unused since
bug 1352151.

MozReview-Commit-ID: 4Nfvj4gGdSY

--HG--
extra : rebase_source : 9f713d954ec9f9a631c27656af12d9e125e56d9f
2018-05-11 15:11:43 +09:00
Brian Birtles
f8c518344a Bug 1456394 - Rename AnimationEffectReadOnly to AnimationEffect; r=bz,hiro
MozReview-Commit-ID: 8jzJiCWt5vs

--HG--
rename : dom/animation/AnimationEffectReadOnly.cpp => dom/animation/AnimationEffect.cpp
rename : dom/animation/AnimationEffectReadOnly.h => dom/animation/AnimationEffect.h
rename : dom/webidl/AnimationEffectReadOnly.webidl => dom/webidl/AnimationEffect.webidl
extra : rebase_source : 2bd6490fe9be47cfb760bda81a63c33ba0b0397d
2018-05-07 11:15:16 +09:00
Brian Birtles
3184f30162 Bug 1456394 - Merge KeyframeEffectReadOnly and KeyframeEffect; r=bz,hiro
MozReview-Commit-ID: FvTMGjxfRXk

--HG--
extra : rebase_source : 8f7fd0903c9ca2f545dce2633eb797345a7517f8
2018-05-07 11:08:59 +09:00
Brian Birtles
9622b88217 Bug 1456394 - Rename KeyframeEffectReadOnly.{h,cpp} to KeyframeEffect.{h,cpp}; r=bz,hiro
MozReview-Commit-ID: 5Q7oQV8vmgS

--HG--
rename : dom/animation/KeyframeEffectReadOnly.cpp => dom/animation/KeyframeEffect.cpp
rename : dom/animation/KeyframeEffectReadOnly.h => dom/animation/KeyframeEffect.h
extra : rebase_source : cdc8448e7d07376691ef9187f7d6f4424800b690
2018-05-07 11:07:06 +09:00
Brian Birtles
81725f45de Bug 1456394 - Move KeyframeEffect constructors to KeyframeEffectReadOnly.{h,cpp}; r=bz,hiro
By doing this we will have all the KeyframeEffect* related code in
KeyframeEffectReadOnly.{h,cpp} so we can rename them to KeyframeEffect.{h,cpp}
in the next patch and make it easier to examine the history for the bulk of this
code.

The added [HeaderFile] annotation will be removed in a subsequent patch in this
series.

MozReview-Commit-ID: Fxk6fPukgAS

--HG--
extra : rebase_source : 0bb0f846aba69e2b79724adb3148948317667eae
2018-05-07 11:07:01 +09:00
Kestrel
63bbad4332 Bug 1025815 - caretPositionFromPoint needs to account for CSS transforms. r=bz
MozReview-Commit-ID: 1cTUyd0x6xy

--HG--
extra : rebase_source : 2194519fa3417dc8a8fe63db5b773e56daa38b16
2018-05-08 18:09:32 +08:00
Chris Pearce
5cf1e74269 Bug 1458383 - Assume tabs delay playback start of media. r=baku
Regardless of whether autoplay is enabled or not, we want to delay playback
start in tabs until the tab has been in the foreground. So initialize
nsPIDOMWindowOuter::mMediaSuspend to SUSPENDED_BLOCK if the controlling
pref for the delay-playback-start feature is enabled.

MozReview-Commit-ID: 7A8U5922AW8

--HG--
extra : rebase_source : deb240bda1980bcefbfc63f9ec0b00693c5777d2
2018-05-09 15:32:08 +12:00
Jan de Mooij
17f3983d0f Bug 1461605 part 1 - Rename CompartmentOptions to RealmOptions. r=luke,bz 2018-05-17 10:59:45 +02:00
Csoregi Natalia
88704238f1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-10 19:46:00 +03:00
Csoregi Natalia
3f17a23476 Merge inbound to mozilla-central. a=merge 2018-05-10 19:42:51 +03:00
Jon Coppeard
0924042900 Bug 1456774 - Remove linear search for finished parse task and type off thread parse token r=jandem r=baku 2018-05-10 14:51:14 +01:00
Peter Van der Beken
26b590e899 Bug 1453951 - Crash in non-virtual thunk to nsInProcessTabChildGlobal::WrapObject. r=bz.
We need to call nsInProcessTabChildGlobal::Init immediately after creating the
nsInProcessTabChildGlobal, so that we set up the binding object eagerly. Otherwise we
might end up calling WrapObject on it.

--HG--
extra : rebase_source : 691fa943e67727e438e4bb33f6a78ff2ea955bf7
2018-04-17 13:59:44 +02:00
Andrea Marchesini
f71677a0c3 Bug 1452576 - Improve StructuredCloneHolder for fuzzy tests, r=decoder 2018-05-10 09:02:16 +02:00
Emilio Cobos Álvarez
50a8a26470 Bug 1447009: Ignore title if the element is not in the document. r=heycam
Turns out this was well specified, see the linked bits.

MozReview-Commit-ID: HjdbFS78Mwj
2018-05-10 00:37:50 +02:00
Emilio Cobos Álvarez
17a92ff99b Bug 1459844: Share more code and fix some inconsistencies between html / svg style elements. r=heycam
MozReview-Commit-ID: IkTrIfJI1iK
2018-05-10 00:21:27 +02:00
Peter Van der Beken
33304e70f6 Bug 1453011 - Remove some unused nsIXPCScriptable flags. r=bz.
--HG--
extra : rebase_source : bd116870762e7b9b0fcae558039c3522acb30009
2018-03-22 10:37:43 +01:00
Peter Van der Beken
ddfc4b6022 Bug 1452981 - Remove qsObjectHelper. r=bz.
--HG--
extra : rebase_source : f87d70c72bd720cd57377b4b70fdf8ecec590086
2018-05-02 11:47:02 +02:00
Andrea Marchesini
b5118e1ddf Bug 1302449 - Remove the "referrer" directive in CSP, r=ckerschb 2018-05-09 13:15:08 +02:00
Jan-Erik Rediger
4836f92f18 Bug 1320052 - Update external snapshot callers to not deal with subsessions. r=chutten
MozReview-Commit-ID: DGTer5oMnwd

--HG--
extra : rebase_source : c33b725e6f61bb2b0473966d91bada8601fb4121
2018-05-02 15:56:03 +02:00
Xidorn Quan
f5145ff7fc Bug 1460110 - Remove header dependencies to ServoStyleRuleMap.h. r=emilio
MozReview-Commit-ID: 4TPb7JYsc1D

--HG--
extra : rebase_source : 7944e08520b95938f0572444fdebcbd647a95b85
2018-05-09 11:02:21 +10:00
Ciure Andrei
61548f81d6 Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/meta/webdriver/tests/navigation/get_title.py.ini => testing/web-platform/meta/webdriver/tests/get_title/user_prompts.py.ini
2018-05-09 01:58:44 +03:00
Boris Zbarsky
7ee1a709e8 Bug 1387143 followup. Remove assertion that does not seem to hold and causes a CLOSED TREE. r=bzbarsky 2018-05-08 15:04:53 -04:00
Boris Zbarsky
1fb03996f4 Bug 1387143 part 29. Remove nsISelection. r=mats 2018-05-08 13:52:42 -04:00
Boris Zbarsky
a44e6132ff Bug 1387143 part 28. Remove nsISelection::AsSelection(). r=mats 2018-05-08 13:52:42 -04:00
Boris Zbarsky
21aa32be26 Bug 1387143 part 27. Remove some unused nsISelection methods. r=mats 2018-05-08 13:52:42 -04:00
Boris Zbarsky
63c4927445 Bug 1387143 part 26. Remove nsISelection::Modify. r=mats 2018-05-08 13:52:42 -04:00
Boris Zbarsky
11a1d5dd24 Bug 1387143 part 25. Remove nsISelection::DeleteFromDocument. r=mats 2018-05-08 13:52:42 -04:00
Boris Zbarsky
30e5cc5d8b Bug 1387143 part 24. Remove nsISelection::ContainsNode. r=mats 2018-05-08 13:52:42 -04:00
Boris Zbarsky
b47b72dae9 Bug 1387143 part 23. Remove nsISelection collapse* methods. r=mats 2018-05-08 13:52:41 -04:00
Boris Zbarsky
f992e7ed0d Bug 1387143 part 22. Remove nsISelection isCollapsed/collapsed bits. r=mats 2018-05-08 13:52:39 -04:00
Boris Zbarsky
f7d68d6078 Bug 1387143 part 21. Remove nsISelection getters for anchor and focus points. r=mats
Instead of copying spec-duplicating comments from nsISelection.idl to
Selection.webidl, this just points the latter to the right spec.
2018-05-08 13:52:38 -04:00
Boris Zbarsky
1ff99d888e Bug 1387143 part 20. Remove nsISelectionPrivate. r=mats 2018-05-08 13:52:38 -04:00
Boris Zbarsky
40b8e1ed5e Bug 1387143 part 19. Remove remaining methods from nsISelectionPrivate. r=mats 2018-05-08 13:52:38 -04:00
Boris Zbarsky
a72615f753 Bug 1387143 part 18. Remove ScrollIntoView bits from nsISelectionPrivate. r=mats 2018-05-08 13:52:38 -04:00
Boris Zbarsky
14a9b75c96 Bug 1387143 part 17. Remove GetRangesForInterval bits from nsISelectionPrivate. r=mats 2018-05-08 13:52:38 -04:00
Boris Zbarsky
5453e2995c Bug 1387143 part 16. Remove nsISelectionPrivate::GetType. r=mats 2018-05-08 13:52:38 -04:00
Boris Zbarsky
7fe6dda3aa Bug 1387143 part 15. Remove nsISelectionPrivate::Get/SetSelectionDirection. r=mats 2018-05-08 13:52:38 -04:00
Boris Zbarsky
b904b76fa3 Bug 1387143 part 14. Remove nsISelectionPrivate::GetCachedFrameOffset. r=mats. 2018-05-08 13:52:37 -04:00
Boris Zbarsky
9fd43d1a19 Bug 1387143 part 13. Remove nsISelectionPrivate::Get/SetCanCacheFrameOffset. r=mats 2018-05-08 13:52:37 -04:00
Boris Zbarsky
3e7d2d87cf Bug 1387143 part 12. Remove nsISelectionPrivate::Add/RemoveSelectionListener. r=mats
None of the C++ callers of RemoveSelectionListener care about whether the
listener was already-added, and the only JS caller is in a test and knows the
listener was added.  So the behavior change to no-op instead of throwing when
trying to remove a nonexistent listener is OK.  Furthermore, the removal is
null-safe, so there's no point to explicitly failing if null is passed (which
it never is).

Since content can't directly add selection listeners, we can just use an
infallible append instead of returning errors callers don't check for anyway.

Also, no one passes null to AddSelectionListener, so we don't have to worry
about that part.
2018-05-08 13:52:37 -04:00
Boris Zbarsky
0efb178bc2 Bug 1387143 part 11. Support non-XPCOM weakreference on Selection. r=mats
This way we don't have to deal with QI to get a Selection out of a weakref.

mfbt weakrefs don't have a SizeOfOnlyThis.  In any case, the memory used by the
weakref itself is pretty minor...
2018-05-08 13:52:37 -04:00
Boris Zbarsky
1cddc3228a Bug 1387143 part 10. Remove toString bits from nsISelection and nsISelectionPrivate. r=mats. 2018-05-08 13:52:37 -04:00
Boris Zbarsky
a36e7f946e Bug 1387143 part 9. Remove nsISelectionPrivate::Get/SetAncestorLimiter. r=mats 2018-05-08 13:52:37 -04:00
Boris Zbarsky
2abc41a969 Bug 1387143 part 8. Remove nsISelectionPrivate::Get/SetInterlinePosition. r=mats 2018-05-08 13:52:37 -04:00
Boris Zbarsky
abdd178705 Bug 1387143 part 7. Move the TABLESELECTION_* constants from nsISelectionPrivate to a TableSelection enum. r=mats 2018-05-08 13:52:36 -04:00
Boris Zbarsky
dec2ee2180 Bug 1387143 part 6. Remove some unused constants from nsISelectionPrivate and Selection. r=mats 2018-05-08 13:52:36 -04:00
Boris Zbarsky
c4c94974c4 Bug 1387143 part 5. Remove JS use of nsISelectionPrivate. r=mats 2018-05-08 13:52:36 -04:00
Boris Zbarsky
921ee1d522 Bug 1387143 part 4. Stop using nsISelection in remaining xpidl. r=mats 2018-05-08 13:52:36 -04:00
Boris Zbarsky
46cae9462a Bug 1387143 part 3. Stop using nsISelection in nsISelectionController. r=mats 2018-05-08 13:52:36 -04:00
Boris Zbarsky
3463812125 Bug 1387143 part 2. Stop using nsISelection in nsIDocumentEncoder. r=mats 2018-05-08 13:52:36 -04:00
Boris Zbarsky
b23f25078d Bug 1387143 part 1. Stop using nsISelection in nsISelectionListener. r=mats 2018-05-08 13:52:35 -04:00
Dennis Schubert
4cf2e3edb1 Bug 1455796 - Make browser_messagemanager_loadprocessscript.js aware of OOP WebExtensions r=peterv
MozReview-Commit-ID: KENm9TmElUU

--HG--
extra : rebase_source : 95cff7c06bf2220653a6df8fe9056932a9678739
2018-05-08 15:18:08 +02:00
Coroiu Cristina
5ff2d76830 Merge inbound to mozilla-central a=merge 2018-05-08 18:47:35 +03:00
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
Dão Gottwald
140aac0617 Bug 1456530 - Stop dispatching the select event on the tabs element. r=mconley
MozReview-Commit-ID: B4Ash6lC64u

--HG--
extra : rebase_source : a40cde1b42c9c6fb0c76e021556e8458176dfc32
2018-05-08 11:48:00 +02:00
Coroiu Cristina
ec7ba6b7e9 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-05-08 18:57:41 +03:00
Emilio Cobos Álvarez
bc958c264f Bug 1445392: Make HTMLSlotElement slot change event stuff not linear. r=smaug
Also fix refcount churn in nsDOMMutationObserver and such.

MozReview-Commit-ID: GwEB0LZY7Ss
2018-05-08 16:10:27 +02:00
Valentin Gosu
bd4365d7e7 Bug 1448058 - Remove nsIMutable from URI implementations r=mayhemer
* Also removes NS_TryToMakeImmutable, NS_TryToSetImmutable, URIIsImmutable
* NS_EnsureSafeToReturn, nsINetUtil.toImmutableURI

MozReview-Commit-ID: 5eFtFm2CQt7

--HG--
extra : rebase_source : 1f3d23ec646883e76844d42113bc1c71c01a1ad7
2018-05-09 18:21:24 +02:00
Matt Woodrow
de59f808ee Bug 1369395 - Change test_intersectionobservers.html to put test callbacks through the event queue twice to ensure that we get processed after any relevant intersection callbacks. r=mstange
MozReview-Commit-ID: Ad5WCWQK4GU

--HG--
extra : rebase_source : fb3df5208f1039ece071b500786a90b393f4365c
2018-05-31 12:15:10 +12:00
Emilio Cobos Álvarez
594f30e54c Bug 1468780: Add labels to QuerySelector / QuerySelectorAll. r=mstange
It's very useful to see what the selector is in the profile.

MozReview-Commit-ID: KRp6A91jzP

--HG--
extra : rebase_source : 7cd1addc39d5d31a06c349fdb8ce5ed0f6955d6b
2018-06-14 10:16:49 -07:00
Olli Pettay
573e74f1f7 Bug 1001469 - Re-enable cycle collector optimization for nodes in the shadow tree, r=mccr8 2018-05-12 00:28:39 +03:00
Boris Zbarsky
2d13533f79 Bug 1460368. Remove now-unused nsContentUtils::GetClosestNonNativeAnonymousAncestor. r=heycam
This was used in the non-stylo style system, but that's all gone now.
2018-05-11 16:42:12 -04: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
Eric Rahm
51ccde5982 Bug 1453525 - Remove OOM check of infallible method. r=mccr8
--HG--
extra : rebase_source : 2cbe66638e3a77417414bd8ca3ae9e7bf37d5b2c
2018-04-11 17:09:55 -07:00
Eugen Sawin
b03149e8d0 Bug 1439013 - [1.2] Add isUserTriggered argument to nsILinkHandler and expose it as an internal load flag. r=smaug 2018-04-27 20:49:54 +02:00
Bobby Holley
3cbcfdf4cd Bug 1457325 - Expose time to DOMContentFlushed on the timeline. r=bholley,r=mstange
MozReview-Commit-ID: E6QPjgfUKdo
2018-04-27 11:15:27 -07:00
Neil Deakin
ef5f9b4b23 Bug 1446961, move PopupBoxObject to XULPopupElement, a new subclass of XULElement. Remove popup.xml methods, r=paolo,bz
Test changes for removal of PopupBoxObject and popup.xml methods, some reflow tests now have different stacks now that they are not going through popup.xml binding methods, test_popupanchor.xul changes due to need to wait for popuppositioned event after resizing. The old code would just adjust the arrow directly when sizeTo was called, but the new code does this through an asynchronous popuppositioned event. Changes to some places that check for XULElement class.

--HG--
rename : dom/webidl/PopupBoxObject.webidl => dom/webidl/XULPopupElement.webidl
rename : layout/xul/PopupBoxObject.cpp => dom/xul/XULPopupElement.cpp
rename : layout/xul/PopupBoxObject.h => dom/xul/XULPopupElement.h
2018-04-27 11:04:38 -04:00
Neil Deakin
e25f02a7f3 Bug 1446961, restructuring to allow nsXULElement to be subclassed. Rename nsXULElement::Create to make it clearer it creates from the prototype element, r=bz 2018-04-27 11:04:37 -04:00
Emilio Cobos Álvarez
a1b2e5070a Bug 1455885: Inline and make document casts fatally assert. r=bz
For consistency with AsElement / AsContent / AsDocumentFragment, etc.

MozReview-Commit-ID: 8GSj8R9hLBe
2018-04-26 17:05:12 +02:00
Jon Coppeard
6b7ad264ec Bug 1453986 - Remove possiblity of recursive GetService call when tracing r=smaug
--HG--
extra : rebase_source : 8319cf6afdde021eed71c25a8c6a1c21b7f65e18
2018-04-26 15:54:00 +01:00
Emilio Cobos Álvarez
8239c1300e Bug 1386840: Defer loading and don't block rendering for non-matching stylesheets. r=bz,heycam
MozReview-Commit-ID: 24UJZDooGmn
2018-04-26 16:44:03 +02:00
Emilio Cobos Álvarez
31aff796a0 Bug 1456435: Make the loader a bit less outparam-happy. r=heycam
Returning the same type and UpdateStyleSheet.

This hopefully helps seeing how the data flows between the methods, instead of
the messy bits we had before.

MozReview-Commit-ID: C6THNRi8bbg
2018-04-26 16:43:58 +02:00
Emilio Cobos Álvarez
5618bcfb59 Bug 1456435: Less bool outparam in Loader too. r=heycam
MozReview-Commit-ID: D5A2BxwHGjn
2018-04-26 16:43:54 +02:00
Emilio Cobos Álvarez
a00f507b72 Bug 1456435: Make UpdateStyleSheet less bool-happy. r=heycam
MozReview-Commit-ID: FlTD390lMhg
2018-04-26 16:43:52 +02:00
Emilio Cobos Álvarez
e0fb59363f Bug 1456435: Don't clone a URI for sheet loading. r=heycam
nsIURI is immutable now.

MozReview-Commit-ID: 1eMikl399Fd
2018-04-26 16:43:45 +02:00
Boris Zbarsky
a3a6206b20 Bug 1456588 part 5. Store an Element as the focused content in the focus manager. r=enndeakin 2018-04-26 10:37:47 -04:00
Boris Zbarsky
01c62fd5cb Bug 1456588 part 4. Change nsFocusManager guts to make it clearer that the focused thing is always an Element. r=enndeakin
I couldn't find a good way to make this incremental without adding QIs and
AsElement() in various places....
2018-04-26 10:37:47 -04:00
Boris Zbarsky
b3b21fd3fa Bug 1456588 part 3. Change nsFocusManager::SetFocusInner to take Element. r=enndeakin 2018-04-26 10:37:47 -04:00
Boris Zbarsky
dac6314cb8 Bug 1456588 part 2. Change nsIFocusManager::MoveFocus to take Element. r=enndeakin 2018-04-26 10:37:47 -04:00
Boris Zbarsky
8a0b50bea8 Bug 1456588 part 1. Change nsIFocusManager::SetFocus to take Element. r=enndeakin 2018-04-26 10:37:46 -04:00
Xidorn Quan
8af9d264aa Bug 1456364 part 1 - Reduce dependencies to nsCSSProps.h. r=emilio
So that hacking on this header can be less painful...

MozReview-Commit-ID: LmpMnF7q9RG
2018-04-26 16:24:30 +02:00
Olli Pettay
1c1ff6583d Bug 1428393 - Crash near null [@ IsComposedDocParticipant], r=mccr8 2018-04-30 22:21:05 +03:00
Olli Pettay
aeb4d395d3 Bug 1455819 - Crash in nsGlobalWindowInner::CallOnChildren<T>, r=nika 2018-04-30 21:02:15 +03:00
Timothy Guan-tin Chien
519e0c2f41 Bug 1451576 - Allow dir=auto to work in native anonymous content r=Ehsan
The rules set in place in bug 839886 and bug 1377826 prevents any native
anonymous content to participate in auto-direction, both on having dir=auto
to work on it and have it to affect the direction of non-anonymous dir=auto
parent.

This patch relax the rules a little bit by allowing the anonymous element with
dir=auto to particiate in auto-direction. For simplicity, it would allow the
text node in to affact auto-direction only if the text node is the direct
children of the dir=auto parent.

This patch is needed for HTML-based in-content widget to display RTL
labels correctly. It shouldn't change any UI on its own; the purpose of
the fix here is to display RTL-text filenames correctly when bug 1446830
is fixed.

The change is needed in ResetDirectionSetByTextNode() because
when CC clean-up the document, the function is called from
nsTextNode::UnbindFromTree(). At that point, IsInAnonymousSubtree()
will cause an assertion error on when calling SubtreeRoot(),
since subtree hierarchy is already broken by earlier UnbindFormTree()
calls to our parent nodes.

Substitute that check with HasTextNodeDirectionalityMap() in and only
in ResetDirectionSetByTextNode() should be ok -- given the function
doesn't really do anything if HasTextNodeDirectionalityMap() is false.
There is no need to call EnsureMapIsClearFor() when the condition is false
either; EnsureMapIsClearFor() itself is a no-op if the condition is false.

MozReview-Commit-ID: GqF5ypDZcbH

--HG--
extra : rebase_source : e6bfd3d5792be73a8bbb768c7d5b122170b2f02a
extra : source : 6aeb0958693ccc51346713faad823debd9cceeae
2018-04-17 00:17:56 +08:00
Emilio Cobos Álvarez
37eed71b1c Bug 1425866: Just null-check the CSS Loader for now. r=heycam
After discussing with Olli there isn't any kind of severe problem out of this.
Shadow subtrees will be disconnected just like the rest, and they shouldn't
assume that the document hasn't been disconnected first.

MozReview-Commit-ID: CX4fXOqEIFj

--HG--
extra : rebase_source : cd30cb8b8199fb73120c0bcade68986454090005
2018-04-27 01:46:50 +02:00
Brian Grinstead
ab2a1a0d82 Bug 1456703 - Remove nsIDOMXULTextBoxElement r=enndeakin+6102
MozReview-Commit-ID: 6ZRzVq1bJjz

--HG--
extra : rebase_source : adb6e5cabbc38ed6774e905328b7f6f6095d01eb
2018-04-26 15:17:00 -07:00
Brian Grinstead
45b575d85f Bug 1456703 - Stop using nsIDOMXULTextBoxElement to detect XUL textboxes r=enndeakin+6102
This is used in JS via instanceof checks, and in C++ only to get the `inputField`
attribute (the actual HTML input or textarea). We can swap out instanceof by checking
the tag name, and we can directly query for the input field from C++.


MozReview-Commit-ID: 7xpHQMYzYhD

--HG--
extra : rebase_source : a5b62928665725133eb52e4df2fb6659a6109ffd
2018-04-26 15:15:10 -07:00
shindli
c72db9830d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-27 00:44:51 +03:00
Timothy Guan-tin Chien
4d2bb3715b Bug 1450017 - Part VIII, Exclude chrome UA style images from use counters r=heycam
Given that resizer.svg will be loaded in non-chrome documents, we will
need to exclude it from the use counter.

MozReview-Commit-ID: 4ZzidKJUfBW

--HG--
extra : rebase_source : 9ce9d6e6a312695cfd19243499051bf26d91f79b
2018-04-25 13:34:44 -07:00
Kartikaya Gupta
fc66c485b6 Bug 1456882 - Enable some passing mochitests on linux64-qr. r=jrmuizel
MozReview-Commit-ID: 5VIHjwx6A2j

--HG--
extra : rebase_source : d986028cff52ba52a58887225e272bf04ad88de3
2018-04-25 11:29:07 -04:00
Adrian Wielgosik
b3c501adc4 Bug 1447389 - Remove nsIDOMNodeList. r=bz
MozReview-Commit-ID: 11szZP6dS6V

--HG--
extra : rebase_source : 9acfb352750e53d3b36684fa945a18e817c9b82e
2018-04-25 23:01:30 +02:00
Andreea Pavel
a21531022b Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/test_ext_browserSettings.js => toolkit/components/extensions/test/xpcshell/test_ext_proxy_config.js
2018-04-26 09:04:59 +03:00
Kris Maglione
dc8ba3688b Bug 1456035: Part 1 - Add helper to generate native QueryInterface callbacks. r=bz
MozReview-Commit-ID: JpV6zYOdvHu

--HG--
extra : rebase_source : 4aeda7c2c612dd9c7dbb7b6f4fdd33b8b289b702
2018-04-22 20:32:11 -07:00
Emilio Cobos Álvarez
5f526b4a81 Bug 1455559: Make FromNode work for references. r=bz,Nika
MozReview-Commit-ID: 1ldU1aKeMzs

--HG--
extra : rebase_source : 70a2537ab56d040f33acd84d4fd0c3d9de392198
2018-04-20 11:10:12 +02:00
Gurzau Raul
d4fd165bfc Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-25 12:38:44 +03:00
Gurzau Raul
faeb9b7ddd Merge inbound to mozilla-central. a=merge 2018-04-25 12:36:04 +03:00
Emilio Cobos Álvarez
f8233b4454 Bug 1456471: Remove nsCSSParser.h. r=xidorn
MozReview-Commit-ID: 4qa7llzCXeR
2018-04-25 10:38:37 +02:00
Brindusan Cristian
9265429dcd Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-25 00:57:49 +03:00
Tarek Ziadé
90bafd1f42 Bug 1452580 - remove RELEASE_OR_BETA defines for PerformanceCounter usage - r=baku,erahm,farre
PerformanceCounters are currently disabled in two ways:

- a preference that's off by default "dom.performance.enable_scheduler_timing"
- calls made only for nightly using #ifndef RELEASE_OR_BETA

In order to simplify the code, let's remove the #ifndef and rely only on the pref.
That will also allows us to use the feature in every version going forward.

The performance will not be impacted since the current code is already using
the (cached) pref value to determine if the counters are used.

MozReview-Commit-ID: 47t2M1O13aH

--HG--
extra : rebase_source : e129e1829f1dc37c019e50e156474c4876d6d6cb
2018-04-24 22:03:06 +02:00
Boris Zbarsky
1790f0fa04 Bug 1453828. Fix IsContainerNode to not claim true for doctype nodes. r=mccr8
MozReview-Commit-ID: BC1iBI38wfJ
2018-04-24 11:57:21 -04:00
Dragana Damjanovic
d9148a8a51 Bug 1441246 - Move preload cod from nsStyleLinkElement to HTMLLinkElement. r=smaug
--HG--
extra : rebase_source : 01cb8b69aa1187abb83b36098d81df1d96c7d79c
2018-04-20 12:47:00 +03:00
Dão Gottwald
adc758e47b Bug 1455596 - Remove support for <panel backdrag="true"/>. r=enn,ehsan 2018-04-24 22:07:20 +02:00
Olli Pettay
fa90e156dd Bug 1453693 - Ensure sequential focus navigation works in Shadow DOM and add some tests, r=mrbkap 2018-04-22 14:25:38 +03:00
Cosmin Sabou
fcd5cb3515 Merge autoland to mozilla-central. a=merge 2018-04-22 12:47:37 +03:00
Andrea Marchesini
6cb16a934c Bug 1455057 - EventSource::Dispatch can fail if the worker is shutting down, r=asuth 2018-04-22 09:20:45 +02:00
Noemi Erli
eb4ef9681c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-22 00:46:44 +03:00
Kartikaya Gupta
697a7719d0 Bug 1455691 - Make the transaction id a struct instead of a uint64_t. r=mattwoodrow
MozReview-Commit-ID: 9yZknygQvFr

--HG--
extra : rebase_source : 8b7a2398bdabf52f2de1c5dbd30b6868c1e0bed0
2018-04-20 15:13:06 -04:00
Emilio Cobos Álvarez
1c74b688f7 Bug 1455492: Remove redundant ParseSheet arguments. r=bholley
For the async caller, pretty much everything can be extracted out of the loader
/ loadData.

For the sync callers, we need to be a bit more careful because ReparseSheet
tries to get its line number on its own.

I changed the compat mode passed to the reparse stuff to be the document's one
in this case, but that seems a bug fix.

MozReview-Commit-ID: 2wi5HPRAlPi
2018-04-21 12:08:44 +02:00
Andreea Pavel
5743b5b700 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-21 12:31:28 +03:00
Emilio Cobos Álvarez
5b2e86b4fb Bug 1455551: Move NS_IMPL_FROMNODE_HELPER and friends to nsINode.h. r=bz
MozReview-Commit-ID: 5PajqKEyFEW
2018-04-21 08:35:39 +02:00
Boris Zbarsky
71a7545cf3 Bug 1455026. Remove support for weak references from DOMParser. r=qdot
MozReview-Commit-ID: GYCJ2fu2ZI9
2018-04-20 23:04:46 -04:00
Boris Zbarsky
edb98511f4 Bug 1453869 part 16. Add a way to create a DOMParser directly from C++. r=mrbkap
Thunderbird uses DOMParser from C++ for now.  They should ideally migrate that into JS, but we can give them something that works for the moment.

MozReview-Commit-ID: C4D6QuFdbn8
2018-04-20 23:04:46 -04:00
Boris Zbarsky
91fa78892d Bug 1453869 part 15. Remove nsIDOMParser. r=mrbkap
MozReview-Commit-ID: 8gGb1qO56gu
2018-04-20 23:04:46 -04:00
Boris Zbarsky
f8f22a4ffe Bug 1453869 part 14. Make the document and base URIs arguments to the DOMParser constructor. r=mrbkap
Init() is no longer needed, and the mAttemptedInit machinery can all go away.

MozReview-Commit-ID: 3wNavKLGdlc
2018-04-20 23:04:45 -04:00
Boris Zbarsky
9c8b0407da Bug 1453869 part 13. Make DOMParser store an nsIGlobalObject* as mOwner. r=mrbkap
Incidentally, we can remove mScriptHandlingObject, because mOwner is always the same object anyway.

MozReview-Commit-ID: 1txkjkKvBsi
2018-04-20 23:04:45 -04:00
Boris Zbarsky
32b5faa035 Bug 1453869 part 12. Make the DOMParser constructor require a principal. r=mrbkap
We always have one now.  So we can remove all the codepaths that attempted to
handle the !mPrincipal case.

We can also remove the nsContentUtils::IsSystemPrincipal(mPrincipal) codepaths,
because that can never happen: DOMParser::Constructor never creates a DOMParser
with a system principal.

MozReview-Commit-ID: EUrGoiI0o3u
2018-04-20 23:04:45 -04:00
Boris Zbarsky
c1040dfa6b Bug 1453869 part 11. Inline DOMParser::InitInternal into its one caller. r=mrbkap
The other caller went away all the way back in part 1 of bug 1453869.

MozReview-Commit-ID: pJttjegpBm
2018-04-20 23:04:45 -04:00
Boris Zbarsky
1df89947b2 Bug 1453869 part 10. Stop constructing DOMParser by contract. r=mrbkap
MozReview-Commit-ID: A0bHF5RHhs6
2018-04-20 23:04:45 -04:00
Boris Zbarsky
c2c06950b8 Bug 1453869 part 7. Make the DOMParser WebIDL constructor use a nullprincipal for the document if the caller is system-principal. r=mrbkap
In our test suite, we only run into two calls to this constructor with a system
principal, and both are in test code.

After this, calling the WebIDL constructor from system code is _almost_
equivalent to creating by contract.  The one difference is that the resulting
DOMParser (and the documents it creates) will have its script handling object
set to the global the constructor came from instead of being null.

MozReview-Commit-ID: Fe2yMeqoYnB
2018-04-20 23:01:25 -04:00
Boris Zbarsky
df6591442f Bug 1453869 part 6. Remove nsIDOMParser::ParseFromStream. r=mrbkap
MozReview-Commit-ID: L2QKWgDE6UM
2018-04-20 23:01:25 -04:00
Boris Zbarsky
54fbc1b396 Bug 1453869 part 5. Remove nsIDOMParser::ParseFromBuffer. r=mrbkap
MozReview-Commit-ID: 4KuM0HRI2BC
2018-04-20 23:01:25 -04:00
Boris Zbarsky
af62ed5dc8 Bug 1453869 part 4. Remove nsIDOMParser::ParseFromString. r=mrbkap
MozReview-Commit-ID: CoepOZNb0DU
2018-04-20 23:01:25 -04:00
Boris Zbarsky
4527d58c1c Bug 1453869 part 3. Remove the used-only-in-tests DOMParser.init method. r=mrbkap
Some DOM unit tests rely on being able to parse XUL via DOMParser.  That was allowed due to them calling init() with a system subject principal.  It can be more narrowly allowed by adding an explicit setter for being able to parse XUL/XBL.

MozReview-Commit-ID: 3h0WWGHmYOn
2018-04-20 23:01:24 -04:00
Boris Zbarsky
2cb41e7954 Bug 1453869 part 2. Get rid of the unused nsIDOMParser::Init method. r=mrbkap
MozReview-Commit-ID: B3HVscqYE6G
2018-04-20 23:01:24 -04:00
Boris Zbarsky
bada81a4e5 Bug 1453869 part 1. Remove the unused 3-arg constructor from DOMParser. r=mrbkap
MozReview-Commit-ID: 1fWzq6rMWf1
2018-04-20 23:01:24 -04:00
Dorel Luca
65669dae30 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-21 02:00:04 +03:00
Dorel Luca
644bf34f8b Backed out 8 changesets (bug 1453011, bug 1452981, bug 1146316) For xpcshell and mochitest failures on multiple files. CLOSED TREE
Backed out changeset 033299f27339 (bug 1453011)
Backed out changeset 4464997475c1 (bug 1453011)
Backed out changeset cae243fb2a3c (bug 1453011)
Backed out changeset adf56a83131b (bug 1453011)
Backed out changeset 80abe3305b24 (bug 1452981)
Backed out changeset 02178545f255 (bug 1452981)
Backed out changeset 719f7596c208 (bug 1146316)
Backed out changeset 1316c78daeb6 (bug 1146316)
2018-04-20 21:40:24 +03:00
Boris Zbarsky
367b5456ea Bug 1455052 part 11. Remove nsIDOMEvent::InternalDOMEvent. r=masayuki
MozReview-Commit-ID: 2ytv7CjkPGz
2018-04-20 12:55:31 -04:00
Boris Zbarsky
a81bb92f43 Bug 1455052 part 10. Remove various unused nsIDOMEvent bits. r=masayuki
MozReview-Commit-ID: Fzckal7RGUv
2018-04-20 12:55:31 -04:00
Boris Zbarsky
0ba35d199f Bug 1455052 part 8. Stop using nsIDOMEvent in docshell and dom. r=masayuki
MozReview-Commit-ID: ASkuyN3xSwB
2018-04-20 12:55:30 -04:00
Boris Zbarsky
79bd05835f Bug 1455052 part 4. Stop using nsIDOMEvent in xpidl interfaces. r=masayuki
MozReview-Commit-ID: GIs8DVfduKe
2018-04-20 12:53:17 -04:00
Peter Van der Beken
b1be86e036 Bug 1453011 - Remove some unused nsIXPCScriptable flags. r=bz.
--HG--
extra : rebase_source : d3f5d9b6d994bbcf55976b3a1aed404d273415f3
2018-03-22 10:37:43 +01:00
Dorel Luca
3409e8f9fb Merge mozilla-central to autoland
--HG--
rename : testing/mochitest/tests/SimpleTest/SpawnTask.js => testing/mochitest/tests/SimpleTest/AddTask.js
rename : testing/mozharness/mozharness/mozilla/testing/verify_tools.py => testing/mozharness/mozharness/mozilla/testing/per_test_base.py
extra : rebase_source : 6f474049dab2c2979e13ea87114b82d2b04715d0
2018-04-21 02:03:27 +03:00
Brian Grinstead
37febf2987 Bug 1455680 - Notify document-element-inserted in XUL documents;r=bz
We'll want to use this event to inject scripts before other scripts run
in XUL documents. It already fires in HTML documents.

MozReview-Commit-ID: 7FW0R8r9o9G

--HG--
extra : rebase_source : 28fe9b6a4bcbb6ecf8966a0c059d867bf66285bf
2018-04-20 13:55:51 -07:00
Xidorn Quan
348e4616cd Bug 1448757 part 3 - Remove nsDOMWindowUtils::GetAnimationTypeForLonghand and nsStyleAnimType. r=hiro
MozReview-Commit-ID: 8KsNSaDfsbN

--HG--
extra : rebase_source : 914d158d2ab227d725cd6c3d9a9b22cfe54690b6
2018-04-20 14:38:46 +10:00
Cosmin Sabou
5e9d16a446 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-20 01:37:07 +03:00
Cosmin Sabou
4595d43d3a Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/modules/offlineAppCache.jsm => toolkit/modules/offlineAppCache.jsm
2018-04-20 01:29:10 +03:00
Johann Hofmann
29d2c4832d Bug 1451486 - Part 1 - Ignore the storage attribute on indexedDB.open() by default. r=asuth,baku
MozReview-Commit-ID: 844FRkx3rKZ

--HG--
extra : rebase_source : 962cd1ade83b34561ebd6cd70365b44b85a3aa95
2018-04-10 23:00:30 +02:00
Kyle Machulis
14f66cea5d Bug 1452826 - Simplify vibrate permission handling; r=johannh
Vibration is the last user of permissions helper functions in
navigation, these can be simplified into the vibrate functionality.

MozReview-Commit-ID: CGA5WL7nObS

--HG--
extra : rebase_source : bdab714b0bd3a5774300ad71c07090a9565b75ea
2018-04-09 19:20:36 -07:00
Kyle Machulis
d2bad2c5cc Bug 1452826 - Remove unused permissions code from Navigator; r=johannh
Removing unused CheckPermission, HasWifiManagerSupport, and
HasWakeLockSupport calls from Navigator.

MozReview-Commit-ID: Ck4c9gS0sfA

--HG--
extra : rebase_source : 9b6e57f25da34afa20d1ac024b714ed1b607f47b
2018-04-09 18:31:13 -07:00
Andrew McCreight
1610f69376 Bug 1454724 - Add scalar telemetry for max ghost windows. r=chutten
Rather than recording how many leaked (ghost) windows we see at
various times, I think it will be more useful over all to record what
the maximum number of ghost windows we see during a single
ping. Hopefully this will show up in a way that generates automated
alerts better than GHOST_WINDOWS.

If this works out, I'll make this telemetry measure permanent and
remove GHOST_WINDOWS.

MozReview-Commit-ID: 11ma1lLGz5L

--HG--
extra : rebase_source : dc7705d288d3301fc0a1ec15f8dadfb66fe8820f
2018-04-18 11:56:53 -07:00
Noemi Erli
7e6ef531b7 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-19 12:58:43 +03:00
Xidorn Quan
e3471c9169 Bug 1452542 part 7 - Replace some uses of nsCSSPropList.h and nsCSSPropAliasList.h with ServoCSSPropList.h. r=emilio
MozReview-Commit-ID: 5TVYITjAYy7

--HG--
extra : rebase_source : a45a6b42a9847e6f2437e23dd841aafea12f647c
2018-04-17 16:57:04 +10:00
Boris Zbarsky
c813828d0c Bug 1450421 part 3. Give nsIDOMDOMRequest.idl a name that better reflects what it's about. r=qdot
MozReview-Commit-ID: AuaxlZm1AAN

--HG--
rename : dom/base/nsIDOMDOMRequest.idl => dom/base/nsIDOMRequestService.idl
2018-04-19 12:55:33 -04:00
Boris Zbarsky
4342ff516f Bug 1450421 part 2. Remove nsIDOMDOMRequest. r=qdot
MozReview-Commit-ID: AuxBpCcrQ0T
2018-04-19 12:55:33 -04:00
Boris Zbarsky
faa2ec447e Bug 1450421 part 1. Stop using nsIDOMDOMRequest in xpidl. r=qdot
MozReview-Commit-ID: LYGIRidVNW
2018-04-19 12:55:33 -04:00
Andreea Pavel
1b610a02c9 Backed out 7 changesets (bug 1452542) for failing toolkit/content/tests/chrome/test_arrowpanel.xul on a CLOSED TREE
Backed out changeset f206acff283f (bug 1452542)
Backed out changeset be97e652391f (bug 1452542)
Backed out changeset 4d3a028edaed (bug 1452542)
Backed out changeset 5619bba37cdd (bug 1452542)
Backed out changeset e83a797bdc61 (bug 1452542)
Backed out changeset 255e2feff19f (bug 1452542)
Backed out changeset fac55b1a0706 (bug 1452542)
2018-04-18 20:10:35 +03:00
Xidorn Quan
018214f00b Bug 1452542 part 7 - Replace some uses of nsCSSPropList.h and nsCSSPropAliasList.h with ServoCSSPropList.h. r=emilio
MozReview-Commit-ID: 5TVYITjAYy7

--HG--
extra : rebase_source : 66b132aed72fa58ba8be1fa7aacd1c9035845458
2018-04-17 16:57:04 +10:00
Andrea Marchesini
423880eafd Bug 1450644 - Better shutdown approach for Workers - part 3 - Preference for time worker timeout, r=asuth 2018-04-17 20:51:04 +02:00
Boris Zbarsky
a517e45add Bug 1452183 part 4. Remove nsIDOMDocumentFragment. r=mccr8 2018-04-17 21:13:03 -04:00
Boris Zbarsky
38ecaf4bb7 Bug 1452183 part 3. Stop using nsIDOMDocumentFragment in C++. r=mccr8 2018-04-17 21:13:03 -04:00
Boris Zbarsky
0ac1ce2e6b Bug 1452183 part 2. Stop using nsIDOMDocumentFragment in JS. r=mccr8 2018-04-17 21:13:03 -04:00
Boris Zbarsky
d49151ed50 Bug 1452183 part 1. Stop using nsIDOMDocumentFragment in IDL files. r=mccr8 2018-04-17 21:13:03 -04:00
Nika Layzell
5e2e5fc993 Bug 1444991 - Part 5: Make some XPCOM methods more strongly typed, r=bz
This patch goes through and changes a bunch of places in our tree which mention
this bug to use the new feature, making the methods more strongly typed.

There are probably more places in tree which could be changed, but I didn't try
to find them.
2018-04-17 19:21:05 -04:00
Nika Layzell
c29896177a Bug 1444745 - Part 2: Add the xptshim and xptshimfile attributes to xpidl, r=mccr8
In the previous patch, one of the files which was deleted is ShimInterfaceInfo.
This is an implementor of nsIInterfaceInfo which exists for legacy reasons, in
order to allow Components.interfaces.nsIDOM* to have the correct constants and
IIDs associated with them.

As that file was deleted, this information now has to be stored in the typelib.
To do this, the information is moved to the xptshim and xptshimfile attributes
on the relevant xpcom interfaces.

xptshim(...) means that this xpcom interface is a shim for the WebIDL interface
with the specified name.

xptshimfile(...) is for use when the webidl interface is declared in another
interface's .webidl file, (in our case, MessageManager.webidl). It contains the
name of the parent binding, such that we can #include the correct file in our
generated code.

This patch does not add the code which uses these changes, only the parsing
logic.
2018-04-17 19:20:51 -04:00
Tiberius Oros
78bac61f63 Backed out 7 changesets (bug 1450644, bug 1454633) for for failing browser_storage_permission.js on a CLOSED TREE
Backed out changeset f4989e0da221 (bug 1454633)
Backed out changeset 08239799d43e (bug 1450644)
Backed out changeset cbe3ad4833b6 (bug 1450644)
Backed out changeset 0d2088370d0c (bug 1450644)
Backed out changeset 246fb3ee14cd (bug 1450644)
Backed out changeset 629e499c0f75 (bug 1450644)
Backed out changeset ed93e3547096 (bug 1450644)
2018-04-18 01:10:26 +03:00
Andrea Marchesini
848a6e4716 Bug 1450644 - Better shutdown approach for Workers - part 3 - Preference for time worker timeout, r=asuth 2018-04-17 20:51:04 +02:00
Mike Conley
0c2106dafb Bug 1358712 - Force the frameloader to go through layout when content causes a TabParent to be created. r=Nika
This is necessary to avoid web platform test failures for tests that rely on layout calculations occurring
inside a recently opened tab or window. Originally, the layout flush was happening "accidentally" within
the StatusPanel that displays loading status for the browser. That flush is being removed in another patch
in this series.

MozReview-Commit-ID: IUxiBS9CDRY

--HG--
extra : rebase_source : 1174290fc6fa8da68bfe383e79daa417bbb8de39
2018-04-19 14:26:56 -07:00
Peter Van der Beken
79663afa7d Bug 1452981 - Remove qsObjectHelper. r=bz.
--HG--
extra : rebase_source : 931b915a05d026d826ceb5ec919c3909f9bae053
2018-03-01 09:01:00 +01:00
Dão Gottwald
7d19b65c4f Bug 1455578 - Remove obsolete nsIXULBrowserWindow::setJSStatus. r=bz
MozReview-Commit-ID: 6m7AQIvouIi

--HG--
extra : rebase_source : ccadd808d0e76fb882bde55dc72f8cfef239ef61
2018-04-20 12:55:14 +02:00
Chris Peterson
fec7fec568 Bug 1464648 - Bail early when parsing empty form data (to avoid NS_NOTREACHED assertion failure). r=baku
This NS_NOTREACHED("Should never reach here.") assertion fails on the following test case of the testing/web-platform/tests/fetch/api/response/response-consume-empty.html web platform test:

checkResponseWithNoBody("formData with correct multipart type (error case)", checkBodyFormDataError, [["Content-Type", 'multipart/form-data; boundary="boundary"']]);

MozReview-Commit-ID: 1rKRBDrqybJ

--HG--
extra : rebase_source : 21a648942c1084c9fb04804359652ac5e0ae5747
extra : source : 700c7849e5688b2ed18fb85bef2631ec0fcc7bdb
2018-05-26 16:49:39 -07:00