Граф коммитов

14281 Коммитов

Автор SHA1 Сообщение Дата
Kyle Machulis 3ea37c285d Bug 1403819 - Remove nsIDOMHTMLCanvasElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLCanvasElement, replacing it
with binding class usage.

MozReview-Commit-ID: DQJhqGlY8U6

--HG--
extra : rebase_source : a33146a22ee356a0840bb9fef82d51b2b315f6d7
2017-09-28 12:17:07 -07:00
Sebastian Hengst cade0f0bf3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CsjtXJM2vcs
2017-10-05 10:55:31 +02:00
Emilio Cobos Álvarez 109bd88bea Bug 1404897: followup: Fixup documentation of nsINode::WithSelectorList. r=me
DONTBUILD since it's comment-only.

MozReview-Commit-ID: 4UOdTuQRx0o
2017-10-05 01:52:09 +02:00
Wes Kocher d8985b6e57 Merge inbound to central, a=merge
MozReview-Commit-ID: IUFdbLdYFhX
2017-10-04 16:37:59 -07:00
Nicolas B. Pierron bb6e7bf9b1 Bug 1404486 - Do not flush necko cache to avoid keeping the CacheIOThread alive. r=valentin
--HG--
extra : rebase_source : 9ce4fdb059a149da0e364efe1963ad2055e937cd
2017-10-03 10:07:00 -04:00
Valentin Gosu da8e71fd84 Bug 1403926 - Make sure PerformanceNavigationTiming timestamps are correct r=baku
MozReview-Commit-ID: 9qtfwaqSY4J

--HG--
extra : rebase_source : 1c8b29a9cc0aec9e33dadbea8808dfda9f9a6888
2017-10-04 04:05:39 +02:00
Valentin Gosu 3fba909015 Bug 1403926 - Add pref for PerformanceNavigationTiming r=baku
MozReview-Commit-ID: 9f6fcCk8mh

--HG--
extra : rebase_source : 0a1252a7cff2cfaec8f0ab5f8ffa755a0a8a4b5e
2017-10-04 02:48:33 +02:00
Stone Shih dcc75d78ac Bug 1399740 - [Pointer Event] Handle the case that invokes setPointerCapture while the page has a locked element. r=smaug.
Spec says we should throw an exception when setting pointer capture while the page has a locked element. Also, we should release all pointer capture when a pointer lock is successfully applied on an element.

MozReview-Commit-ID: CuUIPipJWB0
2017-09-14 14:29:04 +08:00
Andrea Marchesini 6e03c7e15b Bug 1404910 - WebSocket should consider the corrent top-level window principal, r=smaug 2017-10-04 14:18:19 +02:00
Sebastian Hengst 5e0b457b10 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EVLGo1zCANb
2017-10-04 11:13:24 +02:00
Wes Kocher 9e15b5649f Merge m-c to autoland, a=merge
MozReview-Commit-ID: 43R3aNMoMyN
2017-10-03 14:58:01 -07:00
Bobby Holley ef26283b2d Bug 1403397 - Revert: Add a testing API. r=bholley
This reverts commit 4194b7dd8ec748c044a9b8b0967fd9d652ea342c.
2017-10-03 14:05:56 -07:00
Wes Kocher 7c7aca4ea6 Backed out 2 changesets (bug 1305237) for crashtest failures in 403574-1.xhtml and 1282985-1.svg a=backout
Backed out changeset 96b5d596cc27 (bug 1305237)
Backed out changeset 5fe72402746f (bug 1305237)

MozReview-Commit-ID: CjCWY73Hps1

--HG--
extra : rebase_source : 7a9f0893dabdb0cb6ea79cc9cb7169ceed14616f
2017-10-02 16:41:56 -07:00
evilpies@gmail.com af192f668f Bug 1305237 LoadInfo changes to include all ancestors principals and window IDs, r=bz
MozReview-Commit-ID: ADVtxjSQjk5

--HG--
extra : rebase_source : 6e0ddf49328d7ae71937b7bbe5e5bea736c49bef
2017-10-02 11:05:33 -07:00
Wes Kocher 382a7d90d6 Merge inbound to central, a=merge
MozReview-Commit-ID: CvJ9hmTQBcR
2017-10-02 16:22:37 -07:00
Wes Kocher c5de7a07ee Backed out changeset 29a6664e8f73 (bug 1319342) for wpt failures in Node-cloneNode.html a=backout
MozReview-Commit-ID: 2FoC3zDqXO2

--HG--
extra : source : 6f575308a3818ded268d34403f1aa158502290e1
2017-10-02 14:27:09 -07:00
Ehsan Akhgari a3b87e2b92 Bug 1405039 - Avoid using nsINode::GetChildAt() in HTMLEditor::GetSelectedElement(); r=masayuki 2017-10-02 14:22:57 -04:00
John Dai c76b412976 Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug 2017-10-01 23:12:00 -04:00
Sebastian Hengst 4d183e475c Backed out changeset 9b5b03b2114d (bug 1401379) 2017-10-02 19:57:33 +02:00
Sebastian Hengst 3c456e1e9b Backed out changeset 4249adc2593a (bug 1401379) 2017-10-02 19:57:27 +02:00
Sebastian Hengst 5f1ccbc275 Backed out changeset 0eb4a7009f43 (bug 1401379) 2017-10-02 19:57:17 +02:00
Sebastian Hengst 592dda1465 Backed out changeset 436ecd081ffa (bug 1401379) 2017-10-02 19:57:06 +02:00
Sebastian Hengst 7edab52dde Backed out changeset 318b85f85682 (bug 1401379) 2017-10-02 19:57:00 +02:00
Nika Layzell dab0599a68 Backed out changeset cc51fec33925 (bug 1395973) for failing browser-chrome's toolkit/content/tests/browser/browser_bug982298.js with Linux x64 debug and OSX debug. r=backout
MozReview-Commit-ID: 7YQyktv5oEJ
2017-10-02 12:09:42 -04:00
Nika Layzell 8fe35461a1 Bug 1401379 - Part 8: Avoid using mDocShell to check if the window has been closed, r=smaug
MozReview-Commit-ID: CyNanVzyyNp
2017-10-02 11:58:03 -04:00
Nika Layzell ca2daae3e9 Bug 1401379 - Part 7: Don't try to break nsDocShell <-> nsGlobalWindow references when cleaning up, r=smaug
MozReview-Commit-ID: CnAiOaAOTkw
2017-10-02 11:58:03 -04:00
Nika Layzell eb1c2391bb Bug 1401379 - Part 5: Don't check for a docshell to determine if a window is alive, r=smaug
MozReview-Commit-ID: 8Ze3KrgpaTQ
2017-10-02 11:58:02 -04:00
Nika Layzell c5473d47fc Bug 1401379 - Part 3: Make nsGlobalWindow's reference to nsDocShell strong, r=smaug
MozReview-Commit-ID: DxCjgWGRR0G
2017-10-02 11:58:02 -04:00
Nika Layzell 484b697044 Bug 1401379 - Part 2: Add more cycle collector edges for nsDocShell, r=smaug
MozReview-Commit-ID: 3j9jfLv7MO2
2017-10-02 11:58:01 -04:00
Nika Layzell b69ed2bf16 Bug 1399626 - Part 6: Stop asserting that RangeBoundary objects are valid as they are created, r=masayuki
This is necessary, as we now use RangeBoundary objects as intermediate types to
pass (parent,offset) pairs into constructors for nsRange. We are allowed to try
to construct invalid nsRange objects, but unfortunately doing so would fire an
assertion if we don't allow constructing invalid RangeBoundary objects.

It's possible to check if the RangeBoundary object is valid by calling
`IsSetAndValid`, which should be done for error checking when you don't trust
the source of the RangeBoundary object anyway.

MozReview-Commit-ID: 3Pf80ndRZLW
2017-10-02 11:58:00 -04:00
Nika Layzell cbc8fa8a3b Bug 1399626 - Part 4: Allow initializing nsIContentIterator with RangeBoundaries, r=masayuki
This patch adds an overload to nsIContentIterator::Init which accepts
RangeBoundary objects, and modifies the codepath to avoid using the offset of
the start or end nodes to construct the nsIContentIterator.

MozReview-Commit-ID: 5ZqKeiUunoN
2017-10-02 11:58:00 -04:00
Nika Layzell 7a623e996f Bug 1399626 - Part 3: Add a variant of ComparePoints to nsContentUtils which takes RangeBoundaries, r=masayuki
This is a temporary implementation, which will hopefully be fleshed out in the
future to not require calling the `Offset()` methods. Currently it just
dispatches to the existing implementation using Container() and Offset().

MozReview-Commit-ID: 9Zssbhzrnz3
2017-10-02 11:57:59 -04:00
Nika Layzell 80c94fabbf Bug 1399626 - Part 2: Add overloads of nsRange::{CreateRange, SetStartAndEnd} which take RangeBoundaries, r=masayuki
MozReview-Commit-ID: 3u6jcMh5mni
2017-10-02 11:57:59 -04:00
Nika Layzell 31035d4882 Bug 1399626 - Part 1: Add some helper methods to RangeBoundary, r=masayuki
MozReview-Commit-ID: Cy4oEQKdX39
2017-10-02 11:57:59 -04:00
John Dai 25f8ec6929 Bug 1121994 - Implement adopted callback for custom elements. r=smaug 2017-10-02 00:42:00 -04:00
Catalin Badea 77a75549c2 Bug 1395973 - Remove index cache from nsContentIterator. r=masayuki
nsContentIterator used to maintain a stack of indices so that when it
finished iterating through a subtree it would know the position of the
next node. Maintaining this stack is expensive and unnecessary since we
have fast getters for next and previous siblings.
2017-10-02 15:31:49 +01:00
Andrea Marchesini 9067ec472c Bug 1404845 - Renaming BlobImpl::GetInternalStream to BlobImpl::CreateInputStream, r=smaug 2017-10-02 13:53:12 +02:00
Olli Pettay 657d54de19 Bug 1402941 - Add HTMLSlotElement (disabled for now), r=hsivonen
--HG--
extra : rebase_source : ced3d844425bee6fddd22641646a7366ffd5d69e
2017-10-02 13:22:12 +03:00
Sebastian Hengst af851f54b8 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-02 11:06:31 +02:00
Gabor Krizsanits 481bdfb4f4 Bug 1404383 - Delay nsStringBundle preloading in content processes. r=smaug
Early in the startup the channel creation might fail,
in nsStringBundle load and any further attempts are prevented which
leads to broken ocaization support for the process. Let's wait until
the child process learns about the chrome URLs registered on the parent
side with the preloads.
2017-09-29 17:54:06 +02:00
Bobby Holley d429e49ba4 Bug 1404316 - Use the nsContentUtils machinery for identifying document-level NAC in GetFlattenedTreeParentNodeInternal. r=emilio
MozReview-Commit-ID: 74UMBeZBZcw
2017-10-01 14:08:18 -07:00
Sebastian Hengst 5afa7795ae Backed out changeset e6663f10c42b (bug 1404316) for crashing in devtools/server/tests/browser/browser_canvasframe_helper_04.js on Windows 7 debug with non-e10s builds. r=backout 2017-10-01 10:08:17 +02:00
Bobby Holley 801a3f2a8b Bug 1404316 - Use the nsContentUtils machinery for identifying document-level NAC in GetFlattenedTreeParentNodeInternal. r=emilio
MozReview-Commit-ID: 74UMBeZBZcw
2017-09-30 21:17:33 -07:00
Phil Ringnalda 7546edeeec Backed out 2 changesets (bug 1404316) for debug build bustage
Backed out changeset 555a9dafe460 (bug 1404316)
Backed out changeset e939fa11b68c (bug 1404316)

MozReview-Commit-ID: 5ek3To3HsWo
2017-09-30 21:09:30 -07:00
Bobby Holley f6ee2b8e9b Bug 1404316 - Use the nsContentUtils machinery for identifying document-level NAC in GetFlattenedTreeParentNodeInternal. r=emilio
MozReview-Commit-ID: 74UMBeZBZcw
2017-09-30 20:02:39 -07:00
Emilio Cobos Álvarez 238669d97e Bug 1404134: Drop assertion that can be hit mid-unbind. r=heycam
On that test-case we have something like:

  <body restyle-root>
    <element dirty-descendants>
      <element-2>
    </element>
  </body>

If we change the state of element-2 after unbinding the <body>, which clears the
body's flags, but not the children's flags, there'll be no restyle root, even
though our parent has the relevant flags anyway.

This doesn't compromise correctness in any way, so I'd rather drop the assertion
that shuffle a bunch of stuff so it holds.

MozReview-Commit-ID: KFVTkXclKST

--HG--
extra : rebase_source : 089049ba8d5458370eb4175423019a6cd170700c
2017-10-02 08:50:20 +02:00
Nathan Froyd 6f44b5bf3e Bug 1405353 - stop using nsAutoPtr in nsGlobalWindow; r=mystor
UniquePtr is better.
2017-10-03 15:56:26 -04:00
Nathan Froyd bdb22da472 Bug 1405348 - eliminate extraneous AddRef when moving nsIdentifierMapEntry; r=mystor
Using GetKey() in the move constructor for nsIdentifierMapEntry meant
that we were Move'ing a `const AtomOrString&`, which gives a return type
of `const AtomOrString&&`, which is nonsensical.  But C++, in its
wisdom, selects the copy constructor to copy that type, rather than the
intended move constructor.

To avoid this, just eliminate GetKey() and perform the move directly.
2017-10-03 15:56:26 -04:00
Andreas Farre 2e8f0b10d0 Bug 1403586 - Don't disble budget throttling due to gUM. r=smaug,padenot 2017-09-29 15:21:45 +02:00
Sebastian Hengst 5253bb7207 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2gWLO0vz64b
2017-09-29 13:30:42 +02:00
cku 51c6fc95ad Bug 1373750 - Part 2. Add a crash test consists of two mask layers. r=mstange
MozReview-Commit-ID: ECiDHwCqO1B

--HG--
extra : rebase_source : 8fcda747133df7379d6924d7e118025ece5d4223
extra : source : 69c8d44122acb3fefc3297138938d537eefc46f8
2017-09-25 15:35:37 +08:00
Bobby Holley bd4be52f46 Bug 1403397 - Add a testing API. r=bz,r=Manishearth
This will allow us to verify the entire detection pipeline in real nightly
builds, which will give us confidence that real heap corruption will be
detected and reported properly.

MozReview-Commit-ID: 43Fp2HT8RYy
2017-09-28 18:23:15 -07:00
Wes Kocher 134e495909 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 6RdWW73Lc0A
2017-09-28 17:16:12 -07:00
Wes Kocher 1674eb3e4f Merge inbound to m-c a=merge
MozReview-Commit-ID: 7zOjePOWzOM
2017-09-28 16:56:44 -07:00
Sebastian Hengst 8b3a2fc88e Backed out changeset 8a970e561fe1 (bug 1389274) for unexpected passes of web-platform-test /cssom-view/scrollIntoView-shadow.html. r=backout 2017-09-28 19:46:03 +02:00
Andrew McCreight f31f7f7cc6 Bug 1403377 - Destroy hash table iterator before modifying hash table. r=smaug
nsDOMAttributeMap::BlastSubtreeToPieces() uses a hash table iterator
to get an arbitrary element from a hash table. This marks the hash
table as being in use. It then modifies the hash table before the
iterator is destroyed, triggering an assertion. The fix is to restrict
the scope of the iterator so that it is destroyed before the hashtable
is modified.

The existing code is safe because the iterator is never used after the
hash table has been modified.

MozReview-Commit-ID: DUjqewvwEe7

--HG--
extra : rebase_source : 698046af75890c8f52ba15331115b9ff119c689a
2017-09-27 14:49:35 -07:00
Thomas Wisniewski 86f49170db Bug 1389274 - Correct the behavior of Element.scrollIntoView to match the draft spec and pass web platform tests; r=annevk,bkelly
MozReview-Commit-ID: 3is36wstsdb

--HG--
extra : rebase_source : f063ca918d30998dc03c0c73206db495257758a2
2017-09-27 12:23:33 -04:00
Thomas Wisniewski cdaa875696 Bug 1389274 - Correct the behavior of Element.scrollIntoView to match the draft spec and pass web platform tests; r=annevk,bkelly
MozReview-Commit-ID: 3is36wstsdb

--HG--
extra : rebase_source : f4a7598aad5b04a2dcaf40d09ee7733b4d6982f6
2017-09-28 16:57:24 -04:00
Emilio Cobos Álvarez d77d8cd43e Bug 1403712: Clear the restyle root at the end of UnbindFromTree too. r=bholley
MozReview-Commit-ID: 7swfspMWUe6
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 22:24:08 +02:00
Emilio Cobos Álvarez b5ab9820ca Bug 1403712: Make some assertions not assert for conditions that may happen mid-unbind. r=bholley
MozReview-Commit-ID: DNSphdMismy
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-28 22:24:08 +02:00
Brad Werth 227f633bc7 Bug 1402942 Part 1: Use double precision math in computation of Window.devicePixelRatio. r=bz,heycam
MozReview-Commit-ID: 9OCtSgE6jYj

--HG--
extra : rebase_source : 16d12ea76dce60c062ea513f886a83dff317bfde
2017-09-25 11:53:09 -07:00
Stone Shih a1d26ab3b4 Bug 1316251 Part1: Separate pointer event implementation from PresShell. r=masayuki
This patch moves pointer event related implementations to a new class.

MozReview-Commit-ID: FdBYl7vYC5I
2017-09-06 15:47:49 +08:00
Amy Chung 3eec3617b1 Bug 1399590 - Modify the argument of nsICookiePermission::CanAccess for changing nsIURI to nsIPrincipal. r=jdm 2017-10-03 14:37:11 +08:00
John Dai e0d9953f52 Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug 2017-10-03 01:34:00 -04:00
Catalin Badea f8162c4bfd Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv 2017-10-03 11:09:08 +01:00
Ryan VanderMeulen a2439271da Bug 1324500 - Add crashtest. r=me
--HG--
extra : rebase_source : 22ebaca44bd9a34c51d417778ffa22f79ceeee79
2017-10-11 11:52:39 -04:00
Olli Pettay 3f643a72c3 Bug 1406922 - Make CycleCollectedJSContext to handle microtasks and make MutationObserver to use them, r=baku,bevis
--HG--
extra : rebase_source : 62ad4503ceaa6b1c438f4fb7fc0c5b65b3e77665
2017-10-11 15:31:38 +03:00
Sebastian Hengst 051f888cef Backed out changeset 759a43ebc6bf (bug 1405541) for asserting in devtools/client/performance/test/browser_perf-console-record-03.js on Windows 7. r=backout
--HG--
extra : amend_source : 3df3e75c561cbc42db104ec1a6f6026ef021e3c7
2017-10-11 13:15:26 +02:00
Nicholas Nethercote add7e65972 Bug 1405541 - Split AUTO_PROFILER_LABEL_DYNAMIC into three macros. r=mstange.
It's easy to mess up the scoping so that (a) the label is pushed and then
immediately popped, and/or (b) the string doesn't live long enough. It's also
easy to do a utf16-to-utf8 conversion unnecessarily when the profiler is
inactive.

This patch splits that macro into three new ones that are harder to mess up.

- AUTO_PROFILER_LABEL_DYNAMIC_CSTR: same as current.
- AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING: for nsCStrings.
- AUTO_PROFILER_LABEL_DYNAMIC_LOSSY_NSSTRING: for nsStrings.

--HG--
extra : rebase_source : 53c8b43b6a1be06d00618a133e28bf95c46a3ba3
2017-10-11 13:03:34 +02:00
Jonathan Watt 60fa0649f2 Bug 1406819 - Remove various bits of dead code from dom/. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D109
2017-10-11 10:09:13 +01:00
Phil Ringnalda bd5ca8f40d Backed out changeset 901a16fec9fc (bug 1405541) for Windows assertion failures
MozReview-Commit-ID: DRGWXU4Tbfk
2017-10-10 23:28:33 -07:00
Nicholas Nethercote b23fb68ae3 Bug 1405541 - Split AUTO_PROFILER_LABEL_DYNAMIC into three macros. r=mstange.
It's easy to mess up the scoping so that (a) the label is pushed and then
immediately popped, and/or (b) the string doesn't live long enough. It's also
easy to do a utf16-to-utf8 conversion unnecessarily when the profiler is
inactive.

This patch splits that macro into three new ones that are harder to mess up.

- AUTO_PROFILER_LABEL_DYNAMIC_CSTR: same as current.
- AUTO_PROFILER_LABEL_DYNAMIC_NSCSTRING: for nsCStrings.
- AUTO_PROFILER_LABEL_DYNAMIC_LOSSY_NSSTRING: for nsStrings.

--HG--
extra : rebase_source : 59f77df0124249bfd11fee3585420a17b4201d37
2017-10-04 13:44:24 +11:00
Peter Van der Beken 772f1ee5da Bug 1383059 - Remove instanceof for supplemental interfaces. Part 2: remove support for supplemental interfaces in instanceof code and remove unnecessary ChromeWindow interface. r=bz.
--HG--
extra : rebase_source : e8ce446e7f1844c6d1d352896873cbb865837632
extra : source : 944786dca81aed2e480562694bfabc6e5fbf1266
2017-07-05 23:01:04 +02:00
Peter Van der Beken c705293c1c Bug 1383059 - Remove instanceof for supplemental interfaces. Part 1: add Window.isChromeWindow and switch |instanceof [nsIDOM]ChromeWindow| to use it instead. r=bz.
--HG--
extra : rebase_source : 1efc83abae922c1a7b7eb855fd10a6333615044b
extra : source : 32277b160af4739c812ca2750a39ca111b16ea69
2017-10-06 13:47:27 +02:00
Edgar Chen f7287bd6f0 Bug 1405335 - Remove custom element attached and detached callbacks validation checks; r=smaug
--HG--
extra : rebase_source : 996ff7abec24b3576e01003da829b18acb8672d8
2017-10-03 22:00:04 +08:00
bechen@mozilla.com b6e091b3ea Bug 1324883 - Shutdow the decoder when receiving nsIWebProgressListener with flag LOAD_RELOAD_BYPASS_PROXY_AND_CACHE in docshell. r=jwwang,smaug
We register the nsIWebProgressListener at the root docshell(GetSameTypeRootTreeItem) to handle video element embedded in iframe.

MozReview-Commit-ID: D4CavLDAnKD

--HG--
extra : rebase_source : 93032297272bbfc8570dce0c8c13ea9f0d45f7a8
2017-10-03 12:07:09 +08:00
Kyle Machulis e54a4653ba Bug 1404079 - Remove nsIDOMHTMLFrameElement; r=bz
MozReview-Commit-ID: GSvMwRpl7g4

--HG--
extra : rebase_source : a5e8ee45bae90eaa9ecdcc6f0bac0c9dac0ce2c8
2017-09-28 19:06:14 -07:00
Emilio Cobos Álvarez 4eb5336c9b Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W

--HG--
extra : rebase_source : e660504ba8ec2be7d678049000cb76018dc4ba5e
2017-10-02 18:14:15 +02:00
Emilio Cobos Álvarez c3d21f55ab Bug 1404897: Allow storing Servo selector lists in the document's selector cache. r=heycam
MozReview-Commit-ID: GtIWGN2zEGT

--HG--
extra : rebase_source : 90d4a61bcc65995ca8a130cd24582e4f20d52276
2017-10-02 15:32:07 +02:00
Sebastian Hengst 635c45113c Backed out changeset 9a8f77f3dfe7 (bug 1404897) 2017-10-04 12:55:16 +02:00
Sebastian Hengst d90f0a5f6d Backed out changeset cfc393773f0d (bug 1404897) 2017-10-04 12:55:11 +02:00
Emilio Cobos Álvarez ff89c00970 Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W

--HG--
extra : rebase_source : 4c816bb774ea7c67262a1e73277e3dbaeec060e8
2017-10-02 18:14:15 +02:00
Emilio Cobos Álvarez dd2d07a12c Bug 1404897: Allow storing Servo selector lists in the document's selector cache. r=heycam
MozReview-Commit-ID: GtIWGN2zEGT

--HG--
extra : rebase_source : 42de988406724fd3dbb11134cb454bbfc927e3a6
2017-10-02 15:32:07 +02:00
Sebastian Hengst 82e62e8f75 Backed out changeset 2a7dd15c8206 (bug 1404897) 2017-10-04 11:24:31 +02:00
Sebastian Hengst 000d2b584e Backed out changeset 3833f3700021 (bug 1404897) 2017-10-04 11:24:26 +02:00
Sebastian Hengst 7e81b9743d merge mozilla-central to autoland. r=merge a=merge 2017-10-04 11:15:12 +02:00
Emilio Cobos Álvarez aaadd28724 Bug 1404897: Implement Element.matches using stylo. r=heycam
MozReview-Commit-ID: 7nxYVcweu0W
2017-10-04 11:01:42 +02:00
Emilio Cobos Álvarez 8fea520510 Bug 1404897: Allow storing Servo selector lists in the document's selector cache. r=heycam
MozReview-Commit-ID: GtIWGN2zEGT
2017-10-04 11:01:37 +02:00
Boris Zbarsky 3fc7b4c919 Bug 1324463. Fix crash when xbl:children is stuck into shadow DOM. r=smaug
MozReview-Commit-ID: C602pPbIfih
2017-10-11 22:19:10 -04:00
John Dai e53ab7d721 Bug 1406297 - Fix Document.createElement must report an exception. r=smaug 2017-10-12 04:25:00 -04:00
Xidorn Quan c7f99e3c21 Bug 1402094 - Blacklist about:reader from using stylo. r=bholley
MozReview-Commit-ID: 6cG1x1tcOwn

--HG--
extra : rebase_source : 02525628845d1fa757af5044b3a3f3ddcb7c86a0
2017-09-28 16:19:45 +10:00
Sebastian Hengst bb227d88e0 Backed out changeset 8ce27eeef766 (bug 1402094) for bustage on Android: dom/base/nsDocument.cpp:13613: 'bool ShouldUseGeckoBackend(nsIURI*)' defined but not used. r=backout 2017-09-28 09:36:12 +02:00
Xidorn Quan 9ce0474398 Bug 1402094 - Blacklist about:reader from using stylo. r=bholley
MozReview-Commit-ID: 6cG1x1tcOwn

--HG--
extra : rebase_source : dce6a0b1828f8388952e5ff1993424dff782d3d5
2017-09-28 16:19:45 +10:00
Kyle Machulis e6d0a7ad13 Bug 1402180 - Remove nsIDOMHTMLAreaElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAreaElement, replacing it
with binding class usage.

MozReview-Commit-ID: IaX4JFTPZn6

--HG--
extra : rebase_source : 79f9200c6ff9e081a5d9bc21eaa605f88caa99e9
2017-09-21 17:52:28 -07:00
Xidorn Quan 418bc0853e Bug 1403024 part 2 - Add more diagnosis information before crashing for adopting element across style backend. r=francois,heycam
MozReview-Commit-ID: LN40EefYqVJ

--HG--
extra : rebase_source : 86324cc839ebb7e231f58844c05d8334bcad87e1
2017-09-26 10:31:36 +10:00
Xidorn Quan e69b3c7976 Bug 1403024 part 1 - Add nsContentUtils::SchemeIs helper function. r=bholley
MozReview-Commit-ID: 2NVc5QJSjl

--HG--
extra : rebase_source : 5d25c9c507eaa2a08d68c331a8ba9d304c97f305
2017-09-26 10:21:01 +10:00
Wes Kocher 61c098eae7 Merge inbound to m-c a=merge CLOSED TREE
MozReview-Commit-ID: 3pMHYV9oXLm

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Sebastian Hengst 91a42a9bad Backed out changeset d3ebcf7d4c31 (bug 1319342) for failing web-platform-test /dom/nodes/Node-cloneNode.html. r=backout 2017-09-27 20:04:51 +02:00
John Dai 40566f92c2 Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug 2017-09-27 02:50:00 -04:00
Jorg K b3336b37a0 Bug 1403516 - Export dom/base/nsDOMTokenList.h and dom/base/nsStyleLinkElement.h. r=bz 2017-09-27 07:40:00 -04:00
Jonathan Watt 6b07b2d402 Bug 1399853 - Identify the ID of the elements involved in SVG reference loops in the Web Console error messages. r=longsonr
MozReview-Commit-ID: 7SOk2pMEezK
2017-09-11 17:02:35 +01:00
Jonathan Watt 7aa80495f9 Bug 1403345, part 5 - Fix unified build bustage by adding missing includes to TimeoutExecutor.cpp. r=me
MozReview-Commit-ID: 2REsab46t4v
2017-09-08 10:02:05 +01:00
Jonathan Watt 862c8e7e8d Bug 1403345, part 4 - Rename nsReferencedElement to dom::IDTracker. r=longsonr
MozReview-Commit-ID: 3cGMHDHEhx0
2017-09-08 10:02:05 +01:00
Jonathan Watt 0d623a1609 Bug 1403345, part 3 - Move nsReferencedElement.h/.cpp to IDTracker.h/.cpp. r=longsonr
MozReview-Commit-ID: Ki6oS79xuhJ

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-08 10:02:05 +01:00
Jonathan Watt 19cd96875c Bug 1403345, part 2 - Add missing includes and class declarations to TimeoutExecutor.h. r=me
MozReview-Commit-ID: ExAX0nWbFW1
2017-09-08 10:02:05 +01:00
Jonathan Watt 5ef57849da Bug 1403345, part 1 - Add missing include to nsReferencedElement.h. r=longsonr
MozReview-Commit-ID: KDmGJJ33bfN
2017-09-08 10:02:05 +01:00
Sebastian Hengst dd29f9a479 Backed out changeset 4c769ea344a0 (bug 1403345) for busted Linux x64 asan opt fuzzing builds. r=backout on a CLOSED TREE 2017-09-27 10:45:02 +02:00
Sebastian Hengst cdcf3bf44b Backed out changeset 59252e3229f1 (bug 1403345)
--HG--
rename : dom/base/IDTracker.cpp => dom/base/nsReferencedElement.cpp
rename : dom/base/IDTracker.h => dom/base/nsReferencedElement.h
2017-09-27 10:43:54 +02:00
Sebastian Hengst ec33e563cc Backed out changeset 1b5d3684ecfb (bug 1403345) 2017-09-27 10:43:49 +02:00
Jonathan Watt 3c6336aaca Bug 1403345, part 3 - Rename nsReferencedElement to dom::IDTracker. r=longsonr
MozReview-Commit-ID: AkNuXab6xQr
2017-09-05 11:17:50 +01:00
Jonathan Watt 462030153c Bug 1403345, part 2 - Move nsReferencedElement.h/.cpp to IDTracker.h/.cpp. r=longsonr
MozReview-Commit-ID: 7yiAaKnXhCq

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-05 10:45:18 +01:00
Jonathan Watt 5b166107d0 Bug 1403345, part 1 - Add missing include to nsReferencedElement.h. r=longsonr
MozReview-Commit-ID: KDmGJJ33bfN
2017-09-05 09:38:10 +01:00
Chris Peterson c4dff4f83d Bug 1402666 - Part 3: Replace Replace(NS_LITERAL_STRING("")) with ReplaceLiteral(u""). r=erahm
MozReview-Commit-ID: Ji6UdG32RF4

--HG--
extra : rebase_source : 1565a1e99f40785dad0d0d7652e42222dcdf8881
extra : source : c57e906ba75fda4745134ef8307589e28f4c8d70
2017-09-15 19:32:55 -07:00
Chris Peterson 14c40f3dac Bug 1402666 - Part 1: Replace Replace("") with ReplaceLiteral(""). r=erahm
MozReview-Commit-ID: s2hrTSkBiJ

--HG--
extra : rebase_source : d3b3551ed7ed1d5c8f70fc98d72510a13868ada1
extra : source : 1c45e10702e7884cd536a25b1d39c3de90fd2914
2017-09-15 19:22:58 -07:00
Sebastian Hengst 307be3c2b4 Backed out changeset ff9c67df213a (bug 1319342) for failing wpt /dom/nodes/Node-cloneNode.html. r=backout 2017-09-26 22:30:07 +02:00
John Dai 843826e56c Bug 1319342 - Clone a node should enqueue an upgrade reaction. r=smaug 2017-09-26 06:00:00 -04:00
Kyle Machulis a3876f104a Bug 1389650 - Remove nsIDOMHTMLAnchorElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAnchorElement, replacing it
with binding class usage.

MozReview-Commit-ID: 7v0bKlY7Fax
2017-09-26 11:41:28 -07:00
Ehsan Akhgari 445883e2e9 Bug 1400701 - Don't use text nodes under <bdi> elements to determine the directionality of the ancestors; r=smaug 2017-09-26 14:30:15 -04:00
Michael Layzell 7ecd15b98f Bug 1402969 - Merge nsGlobalChromeWindow into nsGlobalWindow, r=bz 2017-09-26 11:43:13 -04:00
Sebastian Hengst 5ed0b93c50 Backed out changeset 26805294a547 (bug 1389650) 2017-09-26 10:47:41 +02:00
Sebastian Hengst 72d1ea4a4b merge mozilla-central to autoland. r=merge a=merge 2017-09-27 11:49:57 +02:00
Nicholas Nethercote dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Jessica Jong 9c73bf3115 Bug 1334044: Replace detached callback (v0) with disconnected callback (v1). r=smaug
MozReview-Commit-ID: 8jxFK1fze15
2017-09-26 13:56:11 +08:00
Jessica Jong dea7ea236c Bug 1334043 - Part 2: Make nsContentUtils::EnqueueLifecycleCallback static. r=smaug
We make nsContentUtils::EnqueueLifecycleCallback static so that it can be
called without a window object. To achive this, we also make
CustomElementReaction not taking a CustomElementRegistry in the constructor,
as it can call Upgrade statically.

MozReview-Commit-ID: 7xUvK0q7Eri
2017-09-26 13:56:00 +08:00
Jessica Jong dca1a68e1a Bug 1334043 - Part 1: Replace attached callback (v0) with connected callback (v1). r=smaug
MozReview-Commit-ID: 3qQh4viyvBX
2017-09-26 13:55:58 +08:00
Kyle Machulis e2ace7d91f Bug 1389650 - Remove nsIDOMHTMLAnchorElement; r=bz
Removes the XPCOM interface for nsIDOMHTMLAnchorElement, replacing it
with binding class usage.

MozReview-Commit-ID: 7v0bKlY7Fax
2017-09-25 23:12:44 -07:00
Yoshi Huang a59d7bb86f Bug 1376971 - Part 3: Query loadingprincipal attribute in image. r=baku
For image loading, we try to query if the node has 'loadingprincipal'
attribute. If it does, we use the deserialized value of
'loadingprincipal', and change the contentPolicyType to favicon, as we
will set the origin attribute on the loadInfo of the channel if the
contentType is favicon in [1].

[1]: http://searchfox.org/mozilla-central/rev/d08b24e613cac8c9c5a4131452459241010701e0/image/imgLoader.cpp#782
2017-09-26 12:41:23 +08:00
Yoshi Huang 58d0d5ec00 Bug 1376971 - Part 2: add GetLoadingPrincipalForXULNode. r=baku
Refactor GetContentPolicyTypeForUIImageLoading to have another function
called GetLoadingPrincipalForXULNode.
2017-09-26 12:41:19 +08:00
Matt Woodrow d58801ad81 Bug 1402197 - Add an option for GetTransformToAncestor to stop at stacking contexts and displayport. r=mstange 2017-09-26 15:57:55 +13:00
Wes Kocher 47b3660c80 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 8wTTCUkrY2i
2017-09-25 16:43:51 -07:00
Wes Kocher 7bf1b49628 Merge inbound to central, a=merge
MozReview-Commit-ID: 7EzhCCVVn7n
2017-09-25 16:41:34 -07:00
Sebastian Hengst 700161cb87 Backed out changeset a50a428b23fc (bug 1377914) for frequent leaks during a11y run on Linux x64 asan. r=backout 2017-09-25 19:08:56 +02:00
Jonathan Kew 1b1aafb2e8 Bug 1402859 - Remove ENABLE_INTL_API conditional from webidl and dom/base code, now that it's true across all builds. r=smaug 2017-09-25 17:32:12 +01:00
Nicholas Nethercote bff3932f55 Bug 1402743 - Remove nsIDOMWindowUtils::getCursorType(). r=bkelly.
It has no users in mozilla-central or comm-central. This also lets us remove
nsBaseWidget::GetCursor().

--HG--
extra : rebase_source : 3875ce37c78f82285c4e5dbd8133e9ae3dafa0de
2017-09-25 11:46:07 +10:00
Michael Layzell 615d87dfaf Bug 1384915 - Part 4: Update RawRange to use RangeBoundaries, r=masayuki 2017-09-25 18:14:43 -04:00
Michael Layzell 9601431bf2 Bug 1384915 - Part 2: Make NodePosition a wrapper around RangeBoundary, r=masayuki 2017-09-25 18:14:42 -04:00
Michael Layzell 8e30ba31d0 Bug 1384915 - Part 1: Refactor RangeBoundary out of nsRange so it can be used by other classes, r=masayuki 2017-09-25 18:14:42 -04:00
Jessica Jong 2d66d1067a Bug 1392970 - Part 2: Get CustomElementDefinition from CustomElementData when possible. r=smaug
MozReview-Commit-ID: L6DCtGXBesX
2017-09-25 02:47:00 -04:00
Jessica Jong 60f43f2bbd Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in CustomElementData. r=smaug
MozReview-Commit-ID: DIQN3JFxkT8
2017-09-25 02:46:00 -04:00
Olli Pettay c80e124562 Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap
--HG--
extra : rebase_source : 2bb600ed1ffd35c195617a7eb70d0ba847a46898
2017-09-25 18:09:26 +03:00
John Dai ba9593ab8d Bug 1301024 - Part 3: Make the constructor created by document.registerElement() also set CustomElementData and invoke created callback. r=smaug 2017-09-25 01:34:00 -04:00
John Dai cc16112226 Bug 1301024 - Part 2: Implement create an element steps. r=smaug 2017-09-25 01:33:00 -04:00
John Dai ca4066029e Bug 1301024 - Part 1: Set CreateElement/CreateElementNS is attribute. r=smaug 2017-09-25 01:33:00 -04:00
Sebastian Hengst e924994091 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-25 12:03:39 +02:00
Sebastian Hengst d1d55ab8bc merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 517PGVX0wPB
2017-09-25 11:58:15 +02:00
Sebastian Hengst 1a3935a05f merge autoland to mozilla-central.r=merge a=merge
MozReview-Commit-ID: JRQXsnsRpCS
2017-09-25 11:56:13 +02:00
Olli Pettay 2dac1ffdd7 Bug 1377914 - Don't trigger a full GC in nsGlobalWindow::DetachFromDocShell(), r=mccr8
--HG--
extra : rebase_source : 417a91bd30bcfd6f471e331b6429134d9fb8dbde
2017-09-25 11:46:07 +03:00
Nicholas Nethercote 3aa25724fe Bug 1402255 - Change nsIBaseWindow::title from wstring to AString. r=janv.
Because nsAString is nicer to work with than char16_t*. The patch relatedly
changes nsIEmbeddingSiteWindow::title and nsIWindowMediator::updateWindowTitle
as well.

--HG--
extra : rebase_source : 0bf332dec3e09af6c39c676f8795b368768a6046
2017-09-25 13:10:51 +10:00
Nicholas Nethercote bc1b1e795f Bug 1401097 (part 2) - Remove redundant conditions in nsXHTMLContentSerializer::LineBreakAfterClose(). r=mrbkap.
The removed tags don't need a separate check because nsHTMLElement::IsBlock()
will return true for them.

--HG--
extra : rebase_source : 45168737643ee56b2194556f88fbcf52917dfd56
2017-09-25 10:02:17 +10:00
Nicholas Nethercote 8134051ca0 Bug 1401456 - Streamline nsWindowMemoryReporter. r=erahm.
This patch tweaks the REPORT_* macros to include the repetitive code that
updates aWindowTotalSizes.

--HG--
extra : rebase_source : dcc3fa12b102fd36e993ecec3cc8a170fbc84b7c
2017-09-25 09:59:50 +10:00
Catalin Badea 98224a4eda Bug 1399091 - Avoid adding the same range to multiple selections. r=mats 2017-09-24 16:44:51 -04:00
Chris Peterson b98afa1d19 Bug 870698 - Part 11: Replace Insert(NS_LITERAL_STRING("")) with InsertLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: L9UE3gXHG4Q

--HG--
extra : source : 37d74bf745b23542251cc6b021d6aabb5ffadea1
extra : intermediate-source : 0402b4bd34c293b44c76de22418899420c8e405b
2017-09-07 18:08:18 -07:00
Chris Peterson 5698729243 Bug 870698 - Part 10: Replace Append(NS_LITERAL_STRING("")) with AppendLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: H9I6vNDMdIr

--HG--
extra : rebase_source : cf537a1f65af003c6c4f8919b925b0f305c1dd4d
extra : source : 13b89ce4e6a66c840f82a335c71f5a12938aba22
2017-09-07 18:32:54 -07:00
Chris Peterson 210c7f9690 Bug 870698 - Part 9: Replace Assign(NS_LITERAL_STRING("")) with AssignLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: 6vgQiU8zN3o

--HG--
extra : rebase_source : 1b536b92ef43f610db057ace6f108620e8d8b4d5
extra : source : 336e21386d5eeb16f1c9893c29377f23b67cc4b0
2017-09-06 01:43:13 -07:00
Sebastian Hengst c0dac760d3 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: It9WfByQfV3
2017-09-23 11:38:06 +02:00
Emilio Cobos Álvarez 9cbe3caa2c Bug 1400936: Clear servo data after children data is cleared, and allow setting the root as the document if the tree is mid-unbind. r=bholley
This is the actual fix, and makes sure that the state is consistent even if we
notify of state changes on a parent during unbind.

We potentially do a bit more work than needed given we set the document as the
root in that case instead of the parent which could potentially be the root
itself, but that's not a huge deal I think, given these cases are rare.

If this happens to be a perf problem, we may want to just drop the root during
UnbindFromTree if aNullParent == true and the root is a descendant of `this`.

MozReview-Commit-ID: A9d2igM0hMr
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-23 04:53:36 +02:00
Emilio Cobos Álvarez 6761fabaa9 Bug 1400936: Only tear down the servo data in SetXBLInsertionParent if the parent actually changed. r=bholley
This is the reason similar assertion failures can't be reproduced with elements
and stuff like fieldset and form validity changes.

nsBindingManager::ContentRemoved calls SetXBLInsertionParent, which clears all
the Servo data from the subtree eagerly, which is a waste when the actual
binding parent is the same (null).

MozReview-Commit-ID: A5wLKfD4OTL
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-23 04:49:09 +02:00
Emilio Cobos Álvarez 1d5e4078a2 Bug 1400936: Remove dumb null check. r=bholley
MozReview-Commit-ID: CLs2UcA8DF9
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-23 04:49:08 +02:00
Kyle Machulis 9b4ac7e03f Bug 1402102 - Remove nsIDOMHTMLObjectElement; r=bz
Removes the nsIDOMHTMLObjectElement XPCOM interface, replacing it with
HTMLObjectElement and FromContent conversion usage.

MozReview-Commit-ID: dmsjSO97uh

--HG--
extra : rebase_source : 9b2c25b8681f754bc34233afccdb6fc5d38f0804
2017-09-22 17:05:12 -07:00
Andrea Marchesini 79eff427b5 Bug 1398733 - HTMLFormSubmission should pass the size of the post data inputStream if known, r=smaug 2017-09-22 08:12:03 +02:00
Andrea Marchesini cee83bc968 Bug 1398733 - nsILinkHandler::OnLinkClick and OnLinkClickSync should know the post data inputStream length, r=smaug 2017-09-22 08:11:18 +02:00
Emilio Cobos Álvarez b77da4f194 Bug 1402684: Clear the servo data early, but the flags later, in UnbindFromTree. r=bholley
MozReview-Commit-ID: 5rRGKq39smW

--HG--
extra : rebase_source : 28e396c34f385ac789e12f36f2b09275097a09df
2017-09-24 19:16:10 +02:00
Yoshi Huang 528df02eda Bug 1405195 - Prevent content to specify loadingprincipal on the node. r=baku
This is a follow-up for bug 1376971, bail out early if the node is
loaded by content.

This is to prevent content side could specify arbitrary principal on the
node. Originally bug 1376971 added a MOZ_ASSERT for this, but it's an
no-op in opt build.

--HG--
extra : rebase_source : 32d5a11ac6f813c9d974e8af40e568eeb79641c2
2017-10-05 19:45:54 -04:00
Olli Pettay 478b3b1343 Bug 1405821 - Move microtask handling to CycleCollectedJSContext, r=baku 2017-10-05 18:34:12 +03:00
Olli Pettay d0b729d0bd Bug 1405798 - Move IsInSyncOperation to nsIGlobalObject, r=baku
--HG--
extra : rebase_source : ad333cf424aec110e0be7d3df41eb0a697cfc770
2017-10-05 16:45:26 +03:00
Sebastian Hengst 7686ba4103 Backed out changeset 690513d3ec06 (bug 1405961) for failing modified mochitest dom/tests/mochitest/general/test_performance_nav_timing_before_onload.html. r=backout on a CLOSED TREE
--HG--
extra : rebase_source : dad8f71a4de9f4c3955dee91b52db3fa97587fb1
2017-10-17 00:48:36 +02:00
Valentin Gosu b3c9da152f Bug 1405961 - Remove assertion and ensure PerformanceNavigationTiming can be used before onLoad completes r=baku
MozReview-Commit-ID: FsEeeAOqDwY

--HG--
extra : rebase_source : 8bf8995e2a4a91cf0d8d66e37c0a2a6c4dd118b9
2017-10-12 17:52:59 +02:00
Xidorn Quan fd467033f9 Bug 1407847 - Enable stylo for XUL document without system principal and annotate failures accordingly. r=heycam
MozReview-Commit-ID: KcJxloT2rR8

--HG--
extra : rebase_source : 8943efaa7afbf1bc74ac85ca103a52e2f4d1b1a4
2017-10-12 10:43:38 +11:00
Sebastian Hengst 050d0a3424 merge mozilla-central to autoland. r=merge a=merge 2017-10-16 10:57:17 +02:00
Emilio Cobos Álvarez 63db5c2845 Bug 1408838: Remove -moz-physical-home-button system metric. r=xidorn
MozReview-Commit-ID: A7nZdj6GQtM

--HG--
extra : rebase_source : b721a9e21e935fdb08bb0b0342d447d89509986b
2017-10-16 08:57:59 +02:00
Kris Maglione b46bd8b6b0 Bug 1411817: Add do_AddRef overloads for nsCOMPtr<T> and nsRevocableEventPtr<T>. r=froydnj
MozReview-Commit-ID: gEU7whtNHc

--HG--
extra : rebase_source : 6763e6b31be8a3341f968eef057b756fbfe3cbbe
extra : amend_source : da6140fb0559d78b46e80e72e8b6768bf2364fb1
2017-10-25 19:46:50 -07:00
Jessica Jong f783bf3a95 Bug 1378079 - Part 3: Complete the steps related to custom elements in "create an element for a token". r=hsivonen,smaug
--HG--
extra : rebase_source : c393051fc6f025ff4c013b5349b53c8a5ba2c3c4
2017-10-26 14:55:41 +08:00
Jessica Jong d70b8d543c Bug 1378079 - Part 2: Introduce throw-on-dynamic-markup-insertion counter. r=hsivonen
Per spec, document objects have a throw-on-dynamic-markup-insertion counter,
which is used in conjunction with the create an element for the token algorithm
to prevent custom element constructors from being able to use document.open(),
document.close(), and document.write() when they are invoked by the parser.

--HG--
extra : rebase_source : 7cbc10c77765b84bbaf07a05f205f02169a79ee0
2017-10-26 14:08:35 +08:00
Attila Craciun 4d25367716 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-10-26 12:34:39 +03:00
Andrea Marchesini b49b5f31c9 Bug 1397151 - Remove the support for moz-chunk-text type in XHR, r=smaug 2017-09-22 07:18:49 +02:00
Andrea Marchesini 2071ba4680 Bug 1397145 - Remove the support for moz-blob type in XHR, r=smaug 2017-09-22 07:18:14 +02:00
Nicholas Nethercote e3c9cbb969 Bug 1401813 - Rename Null[C]String() as Void[C]String(). r=erahm.
XPCOM's string API doesn't have the notion of a "null string". But it does have
the notion of a "void string" (or "voided string"), and that's what these
functions are returning. So the names should reflect that.

--HG--
extra : rebase_source : 4e3f982e0873877174a08a25413595ff66f7d20e
2017-09-22 14:35:46 +10:00
Wes Kocher 640a5d3c46 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsEMW5gXG3W
2017-09-21 17:04:36 -07:00
Wes Kocher a7fe048680 Merge inbound to central, a=merge
MozReview-Commit-ID: E7k4xViLm4V
2017-09-21 17:03:29 -07:00
Kershaw Chang 53cf0a2a8e Bug 1247843 - Part 3: Set request context ID to the http channel created in imgLoader::LoadImage. r=baku
In order to let necko postpone the load of favicon, we have to set request context ID to the http channel that is created to load favicon.
This patch starts with passing a request context ID to nsContentUtils::LoadImage and makes other necessary changes to set the request context ID to the channel.
2017-09-20 20:09:00 -04:00
Kershaw Chang 3ccf2143f7 Bug 1247843 - Part 2: Set request context ID for the channel used to load favicon. r=mak
This patch covers two cases when loading a favicon:
1. Get the request context ID of the document load group, when <link rel="icon"> is found in the page.
2. Use the top level document's request context ID when using the default favicon.
2017-09-20 20:09:00 -04:00
John Dai c891a377df Bug 1401726 - Fix crash in nsLabelsNodeList::PopulateSelf. r=smaug 2017-09-21 02:06:00 -04:00
Kearwood "Kip" Gilbert 017d4c4b91 Bug 1389220 - Prevent navigator.activeVRDisplays from activating VR hardware and runtimes r=daoshengmu
MozReview-Commit-ID: JYMiGyT0iVY

--HG--
extra : rebase_source : 4bbf0879c1b7234f59e4b503f9dfbd80aad47f76
2017-09-20 15:39:35 -07:00
Andrew McCreight 528237d25f Bug 1401710 - Remove unused unsafe code from nsDOMClassInfo. r=bz
Also, the XPConnect() method is unused.

MozReview-Commit-ID: JycZIa9TbC8

--HG--
extra : rebase_source : b278e272696c1bf8403eb25cdb70a5ac546a56f4
2017-09-20 13:01:48 -07:00
Kris Maglione f37317cad0 Bug 1369533: Return dead wrappers rather than null for dead CallbackObject values. r=bz
We don't have access to an appropriate context to create the dead wrapper in
when the callback is nuked, so instead, this patch creates a new dead wrapper
in the caller compartment each time the property is accessed. This is the same
behavior we'd get when trying to re-wrap a cross-compartment dead wrapper, so
it's consistent with the way we handle these situations elsewhere.

MozReview-Commit-ID: 3cMeR4z8EOe

--HG--
extra : rebase_source : 7e8cf4a195ef64deb7677ce4ac9818d342815667
2017-09-04 17:21:06 -07:00
Tobias Schneider 0a2233f308 Bug 1401416 - [intersection-observer] Let intersection rect be empty if do_QueryFrame(rootFrame) returns null. r=dholbert
--HG--
extra : rebase_source : c61df51637850211f0c3cbd74fb1ac6c6831cd7e
2017-09-21 12:43:35 -07:00
Kris Maglione 0c3a1b9b7e Bug 1379148: Part 1 - Allow blocking only non-script-created parsers. r=hsivonen
MozReview-Commit-ID: 8cGxywiUzWj

--HG--
extra : rebase_source : b684a4a7d00c141a3def4f1cde9d7463c12baa4b
2017-09-20 16:12:27 -07:00
Xidorn Quan e040c67e4d Bug 1401792 - Release assert when adopting element with style data across style backend. r=bholley
MozReview-Commit-ID: 6D6bvSJHEcS

--HG--
extra : source : 04d359e0ef0552ab61987427147265c229d80069
2017-09-21 14:41:21 +10:00
Wes Kocher 1ea82f66aa Merge m-c to autoland, a=merge
MozReview-Commit-ID: AHxJvcR2Tpa
2017-09-20 17:47:16 -07:00
Wes Kocher a6b8d9e91b Merge inbound to central, a=merge
MozReview-Commit-ID: JpqY5uEi1nf
2017-09-20 17:18:21 -07:00
Andrew McCreight 767b21fb24 Bug 1176342, part 2 - De-COM the flags for InitClassesWithNewWrappedGlobal. r=mrbkap
MozReview-Commit-ID: 4QFtHPIzUd0

--HG--
extra : rebase_source : e7b8c4156be165c44ddb2e7be557e52438c63d42
2017-09-19 13:12:50 -07:00
Andrew McCreight 36eb42025b Bug 1176342, part 1 - De-COM InitClassesWithNewWrappedGlobal. r=mrbkap
MozReview-Commit-ID: EfRQW3QUXCG

--HG--
extra : rebase_source : 895694d28cc228cfb095639880738c84767e08a8
2017-09-18 16:35:39 -07:00
Ben Kelly 81c05e42c3 Bug 1336364 P6 Ensure that we don't control a document if its window cannot access storage. r=asuth 2017-09-20 09:24:07 -07:00
Sebastian Hengst bc68e8f407 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
Tobias Schneider 3be3fe0ca4 Bug 1399605 - Fix wrong test being skipped. r=mrbkap
--HG--
extra : rebase_source : 1455cdcb6cabf5e2d4fa65a0d12faa1a4cd700b9
2017-09-19 18:54:01 -07:00
Nicholas Nethercote 5036b9133e Bug 1400078 - Measure the UA cache. r=njn.
ServoStyleSetSizes now has two uses, one for the Stylist, and one for the UA
cache, and so the patch removes 'Stylist' from the field names.

Example output from about:memory:

> +----1,359,608 B (00.55%) -- layout
> |    +----756,488 B (00.31%) -- style-sheet-cache [2]
> |    +----393,968 B (00.16%) -- servo-ua-cache
> |    |    +--234,496 B (00.10%) -- element-and-pseudos-maps
> |    |    +---59,648 B (00.02%) -- revalidation-selectors
> |    |    +---58,320 B (00.02%) -- invalidation-map
> |    |    +---30,752 B (00.01%) -- other
> |    |    +---10,752 B (00.00%) -- precomputed-pseudos

MozReview-Commit-ID: 8oxuJO0ojp

--HG--
extra : rebase_source : 7d86216967259b71df7280261d025cc65bf00ba4
2017-09-19 09:25:00 +10:00
Xidorn Quan 6905267b28 Bug 1400540 - Decide style backend type based on principal. r=bholley
MozReview-Commit-ID: A4y9Shdbr7g

--HG--
extra : source : cdfe5e5e059273a1c7fc6506d6e0fecb2bb7affb
2017-09-20 08:26:53 +10:00
Tobias Schneider 2b102d3c56 Bug 1399605 - [intersection-observer] Check if target is actually being observed when unobserving. r=mrbkap
--HG--
extra : rebase_source : d3c8c012dba2941b230cdfbf332ab3c77b7a26ef
2017-09-19 10:50:10 -07:00
Jonathan Watt 341ea5e4f1 Bug 1401356, part 2 - Rename nsSVGEffects to SVGObserverUtils. r=longsonr 2017-08-30 15:58:31 +01:00
Jonathan Watt 0e4feb75d3 Bug 1401356, part 1 - Rename nsSVGEffects.h/.cpp to SVGObserverUtils.h/.cpp. r=longsonr
--HG--
rename : layout/svg/nsSVGEffects.cpp => layout/svg/SVGObserverUtils.cpp
rename : layout/svg/nsSVGEffects.h => layout/svg/SVGObserverUtils.h
2017-08-30 14:14:46 +01:00
Boris Zbarsky d9be58174d Bug 1400898 part 4. Get rid of nsIDOMChromeWindow methods that are unused from C++, and mark the rest [noscript]. r=farre
MozReview-Commit-ID: GtYmfg6XiaQ
2017-09-19 10:13:23 -04:00
Boris Zbarsky ff472070b5 Bug 1400898 part 3. Make nsIDOMChromeWindow.browserDOMWindow readonly. r=farre
C++ code only reads this attribute.  Code that sets it comes via WebIDL bindings.

MozReview-Commit-ID: 2itFAxUVTBo
2017-09-19 10:13:23 -04:00
Boris Zbarsky b4ae7df969 Bug 1400898 part 2. Get rid of the interface constants on nsIDOMChromeWindow. r=farre
MozReview-Commit-ID: 4FuJSgha5y3
2017-09-19 10:13:22 -04:00
Jon Coppeard 8bd8591183 Bug 1396613 - Make proxy objects override handler's objectMoved method rather than using class hook r=sfink r=mccr8 r=peterv 2017-09-19 12:31:30 +01:00
Jon Coppeard 1077972535 Bug 1396613 - Update the object moved hook to allow it to be called when tenuring nursery objects r=sfink r=mccr8 2017-09-19 12:31:30 +01:00
Sebastian Hengst 18a3ca206d merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-19 11:15:12 +02:00
Boris Zbarsky e3883c1255 Bug 1400501. Store a list of ancestor principals on docshell and document. r=mystor
Right now every document in a docshell makes a copy of the list.  In practice,
this list is usually pretty short (limited by depth of iframe nesting), so this
is probably not a problem.  We could add a bit of complexity and have a
refcounted struct that contains the list... I wish we had something as simple
as Rust's Arc that we could use here.

MozReview-Commit-ID: 8jGIlkhp1DU
2017-09-18 21:24:38 -04:00
Boris Zbarsky c1bab3a2f8 Bug 1400139 part 3. Add a use counter when the window.content getter is called from untrusted code. r=mystor
MozReview-Commit-ID: LFMK7lxs46Z
2017-09-18 21:24:38 -04:00
Boris Zbarsky 3dc9073bd5 Bug 1400139 part 2. Make window.content non-enumerable. r=mystor
MozReview-Commit-ID: LQkEkdG8wKf
2017-09-18 21:24:38 -04:00
Nicholas Nethercote 887dab3c3f Bug 1400624 - Fix a panic in Stylo memory reporting. r=heycam.
`MallocSizeOfOps::enclosing_size_of_op` is an `Option<>` type, and the panic in
question is caused by not providing a value in a case where it's needed for
measuring a HashSet.

HashMaps and HashSets are common enough that it makes sense to make
`enclosing_size_of_op` non-optional, which this patch does.

MozReview-Commit-ID: IB2aRuXHj8E

--HG--
extra : rebase_source : a6f593b718ca9e92a7a36ca7e2063a01e11c7e04
2017-09-18 13:54:30 +10:00
Neerja Pancholi 62d822fcdd Bug 1381157 - Cache 'mContent->GetPrimaryFrame == this' with a flag on nsIFrame and replace these calls to GetPrimaryFrame. r=mats
MozReview-Commit-ID: 3VoxYlean52
2017-09-17 17:21:32 +02:00
Sebastian Hengst 1d35d25f21 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1Wa3jV6n7Wj
2017-09-16 11:35:02 +02:00
Boris Zbarsky f9854585c7 Bug 1398500 part 1. Switch the viewport scrollbar override stuff to use Element, not nsIContent. r=dholbert
MozReview-Commit-ID: FU0Afemj4XD
2017-09-15 23:45:05 -04:00
Bobby Holley 2a5c1f23e1 Bug 1398982 - Remove style scoped warnings for stylo. r=me
We're unshipping stylo scoped anyway.

MozReview-Commit-ID: IeZLzX3ZU9i
2017-09-15 16:40:33 -07:00
Wes Kocher ed7085cec0 Backed out changeset 3b21f5d72f54 (bug 1398982) for unexpected passes in reftests a=backout
MozReview-Commit-ID: E4svy69pFIz
2017-09-15 15:50:14 -07:00
Masatoshi Kimura f7995f942e Bug 1400207 - Remove nsIDocument::AddCharSetObserver. r=hsivonen
MozReview-Commit-ID: 7uWDQvyz4yC

--HG--
extra : rebase_source : c8955e6b090d9084938c290f096b41b9090ec71c
2017-09-14 23:19:22 +09:00
Josh Matthews a323bdfe53 Bug 1397971 - Share strings in URLDataValue with Rust. r=heycam
--HG--
extra : amend_source : 7946c76a40240baac44db6c1c6c7b0117ced4219
2017-09-15 13:11:37 -07:00
Bobby Holley 6b2dbc2b82 Bug 1398983 - Remove warning about assuming gecko style system. r=me
MozReview-Commit-ID: BCeG81uxLvS
2017-09-15 12:27:13 -07:00
Bobby Holley 76cc5d68ad Bug 1398982 - Remove style scoped warnings for stylo. r=me
We're unshipping stylo scoped anyway.

MozReview-Commit-ID: IeZLzX3ZU9i
2017-09-15 12:20:22 -07:00
Kyle Machulis 7fb593a716 Bug 1398074 - Add youtube-nocookie.com to domain list for HTML5 rewrites; r=cpeterson
MozReview-Commit-ID: Dc1gZTMu5O4

--HG--
extra : rebase_source : 2536f7c25e051018e7b12cf1d781e7e0d70137ce
2017-09-08 13:02:22 -07:00
Jan Henning 30fbb132f0 Bug 1391421 - Part 2 - Make script dialogues use the Unicode domain as title. r=baku
At least on Android, the domain still appears in the dialogue box's title, so we want to pretty-print IDN domains there.

MozReview-Commit-ID: 3MCeR4IUsuF

--HG--
extra : rebase_source : 264bd10e6b100a7722bf95ea8d61df1a1b5ccb53
2017-09-15 21:05:14 +02:00
Andrea Marchesini baa04d619a Bug 1120178 - Migrate DOMError to DOMExtension in FileReader, IndexedDB, DOMRequest and so on, r=smaug 2017-08-06 20:47:00 +03:00
Sebastian Hengst e071afa182 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-28 12:17:21 +02:00
Kris Maglione 89ae1721a0 Bug 1402944: Part 5 - Move request filtering and permission matching into ChannelWrapper. r=mixedpuppy,ehsan
This allows us to reuse the same URLInfo objects for each permission or
extension that we match, and also avoids a lot of XPConnect overhead we wind
up incurring when we access URI objects from the JS side.

MozReview-Commit-ID: GqgVRjQ3wYQ

--HG--
extra : rebase_source : 71c19fd8b432c16a3f13f7d0bd0424064f3e5661
2017-09-27 18:15:12 -07:00
Kyle Machulis be815f3caf Bug 1412437 - Remove nsIDOMHTMLTextAreaElement; r=bz
MozReview-Commit-ID: JAON7Rd7IAo
2017-11-01 14:28:22 -07:00
Olli Pettay 61679d58d1 Bug 1398605, keep nsContentList objects alive for awhile when generating state keys so that new objects don't need to be created all the time, r=ehsan
--HG--
extra : rebase_source : 8ba989365f0c9b5fbacc9effd4a41b628614b788
2017-09-14 21:56:58 +03:00
Wes Kocher ff68b95b87 Merge inbound to central, a=merge
MozReview-Commit-ID: ClVRh99eIUo
2017-09-14 00:03:28 -07:00
Nicholas Nethercote 2ef37710e7 Bug 1395828 (part 4) - Remove nsIParserService/nsParserService. r=mrbkap.
It a stateless wrapper around static methods in nsHTMLTags and nsHTMLElement,
and hence an unnecessary layer of indirection that just adds complexity and
slowness. This patch removes it, cutting almost 300 lines of code.

This requires making nsElementTable.h an exported header, to expose the
nsHTMLElement methods.

--HG--
extra : rebase_source : abbcb8e5001389affbf717092213b898673db07f
2017-09-05 20:19:06 +10:00
Boris Zbarsky 19700317d5 Bug 1396520. Add back in the IsInSelection() check in IsNodeSelected. r=mats
This should really always test true, but apparently sometimes doesn't...
that's quite strange.  Hopefully the diagnostic asserts will help pin down how
it can happen.

MozReview-Commit-ID: 4bxdalIaUnQ
2017-09-13 16:53:45 -04:00
Masatoshi Kimura 60816b85fa Bug 1398445 - Remove window._content. r=mystor,qdot
MozReview-Commit-ID: 13KovslzGnM

--HG--
extra : rebase_source : 801700a3dc0b1ca207e3b47e9f6433fbd2d00505
2017-09-09 10:47:48 +09:00
Michael Layzell 5dff36164d Bug 1398883 - Disable the DataTransfer::Protected state for Firefox 57, r=baku
This isn't a super essential feature, and is just a change to try to bring us in
line with chromium and the spec. As this has apparent web compat issues, and
DataTransfer is a hard to test area, this patch moves the changes behind a pref,
which we can come back to turning on after we ship 57.
2017-09-13 11:45:48 -04:00
Sebastian Hengst 7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Andrea Marchesini 57228a9b15 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Andrea Marchesini ab8673f32d Bug 1359017 - onmessageerror for MessagePort in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:05 +02:00
Sebastian Hengst 643376d693 Backed out changeset a8d6f6fd7bda (bug 1359017) for failing wpt's /html/dom/reflection-forms.html. r=backout 2017-09-13 08:56:53 +02:00
Sebastian Hengst 66969c6b7b Backed out changeset 7b45c1aebf7f (bug 1359017) 2017-09-13 08:56:13 +02:00
Andrea Marchesini 68fed142b9 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:06 +02:00
Andrea Marchesini 456461ba4d Bug 1359017 - onmessageerror for MessagePort in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-13 05:59:05 +02:00
Andrew McCreight 58abe33226 Bug 1216885 - Make nsISelectionPrivate not inherit from nsISelection. r=smaug
nsISelectionPrivate is accessible to script, while nsISelection is
not, so making the former inherit from the latter means script doesn't
have a complete view of the inheritance chain so the XPIDL compiler
produces an error.

It turns out that nothing in script relies on this inheritance, which
makes sense because I'm not sure how it would even work, so just
remove it.

MozReview-Commit-ID: 3Py2T7cprlD

--HG--
extra : rebase_source : 89fac3ad0f7a30c1c71da79d554ebfa153d5fb33
2017-09-11 15:19:22 -07:00
Emilio Cobos Álvarez 37df721a48 Bug 1397983: Synchronously bind/unbind XBL anonymous content from the bound content's Bind/UnbindFromTree. r=smaug
Doing it off a runnable makes the flattened tree inconsistent until that
runnable runs.

Also add an assert in frame construction that would've caught the first
only-unbind patch.

MozReview-Commit-ID: Hnua3aWSMHi

--HG--
extra : rebase_source : 2781e3b0a3f28b6b6a620902e7414dfe682fba51
2017-09-08 14:59:04 +02:00
J.C. Jones 2afc1ad18b Bug 1245527 - Rewrite U2F.cpp to use U2FTokenManager. r=keeler, r=ttaubert
- This patch reworks the U2F module to asynchronously call U2FManager,
  which in turn handles constructing and managing the U2FTokenManager
  via IPC.
- Add U2FTransaction{Parent,Child} implementations to mirror similar ones for
  WebAuthn
- Rewrite all tests to compensate for U2F executing asynchronously now.
  - Used async tasks, used the manifest parameters for scheme, and generally
    made these cleaner.
- The mochitest "pref =" functionality from Bug 1328830 doesn't support Android
  yet, causing breakage on Android. Rework the tests to go back to the old way
  of using iframes to test U2F.


NOTE TO REVIEWERS:
 Since this is huge, I recommend the following:

 keeler - please review U2F.cpp/h, the tests, and the security-prefs.js. Most
          of the U2F logic is still in U2F.cpp like before, but there's been
          some reworking of how it is called.

 ttaubert - please review U2FManager, the Transaction classes, build changes,
            and the changes to nsGlobalWindow. All of these should be very
            similar to the WebAuthn code it's patterned off.


MozReview-Commit-ID: C1ZN2ch66Rm

--HG--
extra : rebase_source : 5a2c52b0340c13f471af5040b998eb7e661b1981
2017-09-11 12:56:59 -07:00
Andreas Farre a8820fad44 Bug 1396368 - Update WebSocket count on top inner window when unlinking. r=bkelly 2017-09-12 16:17:39 +02:00
Sebastian Hengst 13f018a460 Backed out changeset 78cd991b074f (bug 1359017) for rooting hazards and unexpected passes in wpt's /html/dom/interfaces.html. r=backout on a CLOSED TREE 2017-09-12 14:17:46 +02:00
Sebastian Hengst f155e6119f Backed out changeset e28d6869f6a0 (bug 1359017) 2017-09-12 14:16:31 +02:00
Andrea Marchesini 92ba78b8c0 Bug 1359017 - onmessageerror for WindowEventHandlers in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-12 11:57:26 +02:00
Andrea Marchesini df522b457d Bug 1359017 - onmessageerror for MessagePort in case StructuredClone algorithm fails when deserializing, r=masayuki, r=smaug 2017-09-12 11:57:26 +02:00
Sebastian Hengst 6af41593df merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-12 11:37:58 +02:00
Sebastian Hengst ecf716b8bb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: CmMBcpJapLy
2017-09-12 11:35:15 +02:00
Andrea Marchesini ab3721b443 Bug 1392202 - WebSocket CTOR should not try to look for the topmost window if the opener's top ancestor is equal to the current window top ancestor, r=smaug 2017-09-12 09:27:08 +02:00