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

74059 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 263541211d Bug 1456256: Remove ArrayClass from MediaList in Gecko, and other CSSOM bits too in WPT. r=bz
MozReview-Commit-ID: 2ZzZwQYyAwR

--HG--
extra : rebase_source : 271c95bb2a52408894ee3fd0fd8e379bd32c3112
2018-04-23 22:06:35 +02:00
Tarek Ziadé c28467f0a5 Bug 1456048 - move ChromeUtils.requestPerformanceMetrics to the right scope - r=kmag
requestPerformanceMetrics should not be made available in the Worker scope.

MozReview-Commit-ID: K2nY6JIzWrE

--HG--
extra : rebase_source : 8f2bb788d20c419072c49a5ec910001bc9cd9508
2018-04-23 10:49:45 +02:00
Chris Pearce 192c7a5edf Bug 1456037 - Test that documents gesture activate on key/mouse down instead of up. r=masayuki
MozReview-Commit-ID: AGZM0JdSUDv

--HG--
extra : rebase_source : 7f013406253d30eada49e130860996be1122d31b
2018-04-23 15:53:25 +12:00
Chris Pearce ed477977c2 Bug 1456037 - Gesture activate documents on key/mouse down not up. r=masayuki
We should gesture activate documents in key/mouse down instead of up because
if a web app wants to play a video inside a key/mouse handler, the document
needs to be activated before the handler runs.

Also, Chrome activates on key/mouse down, so we may have compat issues if
we have different behaviour.

MozReview-Commit-ID: JgGaQcNQfzz

--HG--
extra : rebase_source : edf5673be59a3714c3dd4eb239efd17d6a91ec32
2018-04-23 15:56:29 +12:00
shindli b1f0ca2585 Backed out 2 changesets (bug 1456037) for bustage in z:/build/build/src/dom/events/EventStateManager.cpp on a CLOSED TREE
Backed out changeset 10ac210e88db (bug 1456037)
Backed out changeset e3b70cecf471 (bug 1456037)
2018-04-24 08:27:22 +03:00
Chris Pearce 54a96dd048 Bug 1456037 - Test that documents gesture activate on key/mouse down instead of up. r=masayuki
MozReview-Commit-ID: AGZM0JdSUDv

--HG--
extra : rebase_source : 07338352b18bd2cd966dc90c400a0af4a0dbe2b6
2018-04-23 15:53:25 +12:00
Chris Pearce a2d85597fe Bug 1456037 - Gesture activate documents on key/mouse down not up. r=masayuki
We should gesture activate documents in key/mouse down instead of up because
if a web app wants to play a video inside a key/mouse handler, the document
needs to be activated before the handler runs.

Also, Chrome activates on key/mouse down, so we may have compat issues if
we have different behaviour.

MozReview-Commit-ID: JgGaQcNQfzz

--HG--
extra : rebase_source : de4269db9538e9c8aa5ff686c215bd619cf0c573
2018-04-23 15:56:29 +12:00
Karl Tomlinson c4ee57e5e6 bug 1455210 call CycleCollectedJSContext::Get() only once in EnterDebuggerEventLoop() r=baku
The WorkerJSContext is created and destroyed after entry and before exit from
WorkerThreadPrimaryRunnable::Run().  WorkerPrivate::EnterDebuggerEventLoop()
is called only while WorkerThreadPrimaryRunnable::Run is on the stack, and so
the CycleCollectedJSContext will not change.

MozReview-Commit-ID: HMJ8fpKC6E3

--HG--
extra : rebase_source : d481f4513f9e5ed29224ce01534fa3de95bc7ae4
2018-04-16 19:43:56 +12:00
Karl Tomlinson 8768dc6854 bug 1455210 remove misleading CycleCollectedJSContext null checks r=baku
The caller of WorkerPrivate::DoRunLoop() keeps the WorkerJSContext alive, and
so there will always be a CycleCollectedJSContext in DoRunLoop.

WorkerPrivate::EnterDebuggerEventLoop() assumes that
WorkerPrivate::GetJSContext() returns a JSContext, and so
EnterDebuggerEventLoop also must only be called while DoRunLoop is on the
stack and therefore keeping the WorkerJSContext alive.

MozReview-Commit-ID: EJgt73LsTx1

--HG--
extra : rebase_source : 257456bf7df5e84dfdf74cd136fd79d1698000d3
2018-04-16 19:33:55 +12:00
Hiroyuki Ikezoe df02c10b40 Bug 1454324 - Skip calculating animation value if animation's progress value hasn't been changed since the last composition and if there are no other animations on the same element. r=birtles,kats
Note that we have to calculate animation values if there is another animation
since the other animation might be 'accumulate' or 'add', or might have a
missing keyframe (i.e. the calculated animation values will be used in the
missing keyframe).

MozReview-Commit-ID: rQyS9nuVJi

--HG--
extra : rebase_source : 6ddc70308e223a709eba9c4c2f05e42bbc0f3160
2018-04-24 09:27:54 +09:00
Ciure Andrei 33e644e1da Merge inbound to mozilla-central. a=merge 2018-04-24 04:14:21 +03:00
Nathan Froyd dbc53de3d9 Bug 1451363 - part 5 - remove ProtocolName virtual function; r=mccr8
ProtocolName() is only used for producing error messages and annotating
crash reports.  But examining actual crash reports that would have used
the result of ProtocolName() indicates that we can always tell what the
erroring protocol is due to the stack backtrace.  So having this virtual
function around just provides duplicate information, and it takes up too
much space in the vtable besides.  Let's get rid of it.
2018-04-23 14:13:36 -04:00
Andrew Sutherland 2a5caa4d86 Bug 1455985 eslint bustage fix. CLOSED TREE a=apavel
--HG--
extra : rebase_source : 59b887de15ac967acc7370ab57baec2211497ba7
2018-04-23 13:05:32 -04:00
Ben Kelly d0d806b51e Bug 1436812 P9 Implement the ServiceWorkerContainer::Register() method using the inner class. r=baku 2018-04-23 09:46:55 -07:00
Ben Kelly e8d1b10096 Bug 1436812 P8 Move storage permission check and other window specific code to ServiceWorkerContainer. r=baku 2018-04-23 09:46:55 -07:00
Ben Kelly 557e712b93 Bug 1436812 P7 Move many checks into ServiceWorkerScopeAndScriptAreValid() utility method. r=baku 2018-04-23 09:46:55 -07:00
Ben Kelly 854148c72a Bug 1436812 P6 Move the NS_CheckContentLoadPolicy() from ServiceWorkerManager to ServiceWorkerContainer. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly f7eb2e8f22 Bug 1436812 P5 Move the IsFromAuthenticatedOrigin() check from the ServiceWorkerManager to the ServiceWorkerContainer. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly 3b5dc939c6 Bug 1436812 P4 Add the ServiceWorkerContainer::GetBaseURIFromGlobal() method. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly bc610fded9 Bug 1436812 P3 Refactor ServiceWorkerContainer::GetGlobalIfValid() to accomodate Register() usage. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly e92e735f00 Bug 1436812 P2 Don't try to use the document's nsILoadGroup when registering a new service worker script. r=baku 2018-04-23 09:46:54 -07:00
Ben Kelly d660ef1bc9 Bug 1436812 P1 Make ServiceWorker MozPromise types exclusive so they can reject with ErrorResult values. r=baku 2018-04-23 09:46:53 -07:00
Ben Kelly be5f3caad5 Bug 1422710 Block opaque tainted requests that do not follow redirects. r=ckerschb 2018-04-23 09:43:36 -07:00
Brian Grinstead 7f1f1892fb Bug 1455359 - Remove autoCheck attribute from nsIDOMXULCheckboxElement and nsIDOMXULButtonElement; r=enndeakin+6102
MozReview-Commit-ID: FUxsIf23z7e

--HG--
extra : rebase_source : 29cd8b2e90e4161fb288a6b6206c27de1d225f5e
2018-04-21 07:03:23 -07:00
Andrew McCreight 269f53f8b6 Bug 1451985 - Tell the cycle collector about ScriptLoadRequest::mElement. r=baku
Not doing this can cause a leak because there is a cycle between the
load request and the script element.

MozReview-Commit-ID: E7GbH5iDBP6

--HG--
extra : rebase_source : b9c16b5a40bf465f28f792cbf727909d1f976c31
2018-04-19 16:33:12 -07:00
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