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

74029 Коммитов

Автор SHA1 Сообщение Дата
Tiberius Oros 4d01cad1b7 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-23 01:14:38 +03: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
Andrea Marchesini 9e47054ab5 Bug 1455668 - Update URL.createObjectURL(MediaSource) in URL.webidl, r=qdot 2018-04-22 09:20:45 +02:00
Chris Pearce b36acd0564 Bug 1453843 - Remove extraneous play promise reject. r=bryce
We already reject the play promises when we call Pause(), so this extra
reject is unnecessary.

MozReview-Commit-ID: 6LKw7hCwJPH

--HG--
extra : rebase_source : b75c147c2f475cf1ae4b4dddc3085c306f31d6e6
2018-04-20 17:54:08 +12:00
Chris Pearce 7b1b141797 Bug 1453843 - Ensure we fire "pause" event when rejecting play() promise. r=bryce
Bug 1435133 introduced a new path where we block autoplay and reject the play()
promise, but we didn't fire a "pause" event. This confuses YouTube's controls.

Additionally, even if we're not in a user generated event handler, we
unilaterally consider the media element blessed if execution reaches here:
https://searchfox.org/mozilla-central/rev/11a2ae294f50049e12515b5821f5a396d951aacb/dom/html/HTMLMediaElement.cpp#4110
We previously rejected before reaching here when not in a user generated event
handler, but now if play() is called before we've reached loadedmetadata, we
reject the promise if we're not in a non-event handler and bail out early, and
so we'll bless even if not in a user generated event handler. Meaning when we
do reach loadedmetadata, we think we were in a user generated event handler
when play() was originally called, and so we won't reject the play promise.

So this patch ensures we dispatch a "pause" event when we reject the play()
promise here. The WHATWG spec says we should do this when pausing anyway.

Note: calling our interal Pause() function when rejecting the play() promise
here breaks YouTube, as if we do that we fire a "timeupdate" event. So I opted
to manually code to fire the event here instead of just calling Pause()
everywhere we want to ensure we're paused.

MozReview-Commit-ID: 1snkiTnPGih

--HG--
extra : rebase_source : 2c5ca6c0ed7c2dff2fb971cd159cfdc12a8a227f
2018-04-20 17:53:37 +12:00
Stephen A Pohl a770c946af Backout changeset c8842b205236 to turn on the fix for bug 1423261 on all branches. a=backout 2018-04-21 21:09:18 -04: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
Andreea Pavel a217a02a9e Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-21 18:26:31 +03: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
Jeff Gilbert a3b83d8342 Bug 1450839 - Update expected failures.
MozReview-Commit-ID: 4gQMxMk6qYE
2018-04-20 16:20:18 -07:00
Jeff Gilbert 93660a3bb4 Bug 1450839 - Allow running generate-wrappers from any cwd. - r=kvark
MozReview-Commit-ID: JGpNmE9OQdC
2018-04-20 16:20:16 -07:00
Jeff Gilbert bef011bf99 Bug 1450839 - Update with cherry-pick to fix timeouts in rgb10_a2 tests.
MozReview-Commit-ID: KbJmXtRxN25
2018-04-20 16:20:13 -07:00
Jeff Gilbert 58ba37ffae Bug 1450839 - Centralize record_cherry_picks for reuse. - r=kvark
MozReview-Commit-ID: EdRewMsNCnG
2018-04-20 16:20:11 -07:00
Jeff Gilbert 71544a10d9 Bug 1450839 - Update webgl-conf/checkout.
MozReview-Commit-ID: LFEgeAgLn1m


--HG--
rename : dom/canvas/test/webgl-conf/checkout/conformance/textures/misc/copy-tex-sub-image-2d-partial-texture.html => dom/canvas/test/webgl-conf/checkout/conformance/textures/misc/copytexsubimage2d-subrects.html
2018-04-20 16:20:08 -07:00
Jeff Gilbert fe6d2e9633 Bug 1450839 - Skip deqp test files for now. - r=kvark
MozReview-Commit-ID: 5X1JRA1gd58
2018-04-20 16:20:05 -07:00
Jeff Gilbert 267d798f15 Bug 1450839 - Add webgl-conf/import.py for importing from KhronosGroup/WebGL. - r=kvark
+ Update generate-wrappers-and-manifest.py to python3.

MozReview-Commit-ID: EOqbmDSTQgs
2018-04-20 16:20:02 -07:00
Dorel Luca 15813c8ca0 Merge mozilla-central to mozilla-inbound 2018-04-21 02:06:35 +03:00
Dorel Luca 65669dae30 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-21 02:00:04 +03:00
Boris Zbarsky b58443d42d Bug 1455052 followup. Re-remove the Event ToSupports/ToCanonicalSupports methods. r=bzbarsky
These are not needed, and they were removed by bug 1452981, but then that was
backed out.  They obviously don't compile as written with nsIDOMEvent removed,
leading to a CLOSED TREE

MozReview-Commit-ID: FH5QqKEgalP
2018-04-20 15:55:17 -04: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 5415ab3858 Bug 1455052 part 13. Remove nsIDOMEvent. r=masayuki
MozReview-Commit-ID: 3gmGy4URet3
2018-04-20 12:55:31 -04: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 a3ea17eac1 Bug 1455052 part 9. Stop using nsIDOMEvent in DataTransferItem. r=masayuki
I couldn't figure out a way to do this without giving Event an IID....

MozReview-Commit-ID: LdXmsQSHeIc
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 a44a971b2c Bug 1455052 part 5. Remove nsIDOMEvent usage from indexeddb code. r=masayuki
MozReview-Commit-ID: 4mr6B4mYCdG
2018-04-20 12:53:17 -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
Boris Zbarsky 0ba5797320 Bug 1455052 part 3. Change GetEventPopupControlState to work with Event. r=masayuki
MozReview-Commit-ID: ArEfBOa7Pha
2018-04-20 12:53:17 -04:00
Boris Zbarsky d7e78873a0 Bug 1455052 part 2. Switch async event dispatcher to working with Event, not nsIDOMEvent. r=masayuki
MozReview-Commit-ID: By3duB2tPpl
2018-04-20 12:53:17 -04:00
Boris Zbarsky f1e26dcba7 Bug 1455052 part 1. Switch event dispatch to working with Event, not nsIDOMEvent. r=masayuki
MozReview-Commit-ID: 4vZgmBnTWKH
2018-04-20 12:53:16 -04:00