Commit Graph

75602 Commits

Author SHA1 Message Date
Noemi Erli
a56e695e87 Backed out changeset 2d12737168b1 (bug 1472421) for mochitest failures on test_range_bounds 2018-07-03 19:11:04 +03:00
Olli Pettay
a1288b6db5 Bug 1472428 - HTMLMediaElement should use IsInComposedDoc, r=cpearce 2018-07-03 18:13:17 +03:00
Olli Pettay
10eef3d077 Bug 1472422 - nsContentUtils should use IsInComposedDoc, r=mrbkap 2018-07-03 18:09:56 +03:00
Olli Pettay
cf007c3999 Bug 1472424 - BrowserElementParent should use IsInComposedDoc, r=mrbkap 2018-07-03 18:08:19 +03:00
Olli Pettay
d14590cada Bug 1472647 - nsPluginInstanceOwner::GetURL should use GetComposedDoc, r=mrbkap 2018-07-03 18:07:22 +03:00
Olli Pettay
a5cf31373f Bug 1472425 - PointerEventHandler should use IsInComposedDoc, r=mrbkap 2018-07-03 18:06:29 +03:00
Gijs Kruitbosch
9396488809 Backed out changeset be11a3290029 (bug 1469916) for test orange involving Not enough arguments [nsIWebBrowserPersist.saveURI] 2018-07-03 15:45:13 +01:00
Olli Pettay
7c2962923a Bug 1472421 - nsRange should use composeddoc so that it works in shadow DOM, r=mrbkap
--HG--
extra : rebase_source : 4c9d60f3f1ceeede2fc4e9caa438cd340afd9c91
2018-07-03 17:26:40 +03:00
Gijs Kruitbosch
0d0616cad1 Bug 1469916, r=ckerschb,jkt
--HG--
extra : rebase_source : 5c2f49af85664fdb5375f6dc4cc57d6913f1eff9
2018-06-22 15:41:39 +01:00
arthur.iakab
644be8856b Merge mozilla-central to inbound 2018-07-03 11:58:29 +03:00
arthur.iakab
403038737b Merge inbound to mozilla-central a=merge 2018-07-03 11:55:46 +03:00
Hiroyuki Ikezoe
8b30a3dc7b Bug 1354501 - Dispatch web animation events at the same time when CSS animations/transitions events are dispatched. r=birtles
MozReview-Commit-ID: u7lWtAF8Ml

--HG--
extra : rebase_source : 6ce807bc253706483960dade2f2c926fa9821460
2018-07-03 11:05:23 +09:00
Hiroyuki Ikezoe
7db3f93d4a Bug 1354501 - Introduce a new function to queue a single animation event. r=birtles
Web animation event (i.e. finish and cancel event) is solely queued.

MozReview-Commit-ID: h1g3NfcY3c

--HG--
extra : rebase_source : 1a7b09783d193195b886fa3a046198ba3e02dd7b
2018-07-03 09:25:02 +09:00
Hiroyuki Ikezoe
7374654896 Bug 1354501 - Change event target variable type to EventTarget and rename it to mTarget. r=birtles
That's because the target for web animation events (i.e. finish and cancel)
is an Animation instance.

MozReview-Commit-ID: 5xR325FXUo

--HG--
extra : rebase_source : 9bd0623ece1dc449d52db283882fe236dbc11c6d
2018-07-03 09:25:02 +09:00
Hiroyuki Ikezoe
1c47aa1edf Bug 1354501 - Factor out calculations for interval start/end times. r=birtles
MozReview-Commit-ID: H9iXX9VLXLr

--HG--
extra : rebase_source : 736d304858cd0a2c5953f9986dd161ebd21c8099
2018-07-03 09:25:02 +09:00
Hiroyuki Ikezoe
92e15ae40f Bug 1472076 - Update animations when the refresh driver's time changed due to the active timer changes. r=birtles
Normally the refresh driver's time changes in nsRefreshDriver::Tick, and then
DocumentTimeline::WillRefresh is called for the change.  But nsRefreshDriver
sometimes updates its own time when their timer changes to the active one.
This patch lets DocumentTimeline update animations in response to the refresh
driver's time updates.  And thus this patch prevents animation state and
relevant stuff inconsistencies such as an animation has been finished without
proper processes, e.g. without invalidating frame for the animation.

MozReview-Commit-ID: 42p5BWITQN0

--HG--
extra : rebase_source : 58cc7d8e203a3632b6934b9d778e82e2fe208adb
2018-07-03 10:59:55 +09:00
Emilio Cobos Álvarez
d042e82e85 Bug 1472529: Cleanup CharacterData, and add a non-virtual function to get the text fragment. r=smaug
I'm going to use that from nsFind.

MozReview-Commit-ID: EhkNQ3BFTvX
2018-07-03 02:06:21 +02:00
Tiberius Oros
93bed26733 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-03 00:59:47 +03:00
Tiberius Oros
65a30935a5 Merge inbound to mozilla-central. a=merge 2018-07-03 00:53:57 +03:00
Ben Kelly
fd8f441dbc Bug 1472008 Make ServiceWorkerRegistration.unregister() resolve false instead of rejecting for most errors. r=mrbkap 2018-06-28 14:18:00 +03:00
Andrea Marchesini
9c86a8b8ee Bug 1470306 - MessagePort unlinked should start the cleanup/close/shutdown procedure of the object, r=smaug 2018-07-02 12:02:39 +02:00
jgilbert@mozilla.com
8732380db5 Bug 1472851 - Mark test failures. r=jgilbert
MozReview-Commit-ID: 36waWrdZwKk

--HG--
extra : rebase_source : b2f58b1108051df90ff89ab32821da7f5a5417df
2018-07-02 18:19:34 -07:00
Ciure Andrei
177ceadc18 Backed out 3 changesets (bug 1466897) for xpcshell failures test_ext_schemas_interactive.js and test_ext_contentscript_create_iframe.js CLOSED TREE
Backed out changeset 87bb8b686a7e (bug 1466897)
Backed out changeset 4443f1f6e8f3 (bug 1466897)
Backed out changeset 067ee6342782 (bug 1466897)

--HG--
rename : layout/xul/nsIPopupContainer.h => layout/xul/nsIRootBox.h
2018-07-03 06:03:15 +03:00
Hiroyuki Ikezoe
36993c4e93 Bug 1472601 - Use EnsureInserted to check a key in a hashtable and insert the key into the hashtable. r=boris
As for removing an entry, EnsureRemoved is equal to what Contains && RemoveEntry
do, but for consistency we use EnsureRemoved here.

MozReview-Commit-ID: 9qE3YtvmwC8

--HG--
extra : rebase_source : 1681194cd8b9700d46a07a502f7d2f15580918aa
2018-07-02 15:19:43 +09:00
Brendan Dahl
79c6912c4e Bug 1466897 - Rename nsIRootBox to nsIPopupContainer. r=mats
MozReview-Commit-ID: D4GgReAEelG

--HG--
rename : layout/xul/nsIRootBox.h => layout/xul/nsIPopupContainer.h
extra : rebase_source : 5f4c2f2da75bac4f499a23cecc368e996991c6fe
2018-06-26 17:29:55 -07:00
James Willcox
0d904ab620 Bug 1467919 - Don't initialize PushService unless dom.push.enabled is true r=lina
MozReview-Commit-ID: JfQUHf1JCRb
2018-07-02 11:46:48 -05:00
Ben Kelly
8dacbc94b9 Bug 1471706 P2 Maintain a version list of ServiceWorkerRegistrationInfo state changes. r=mrbkap 2018-07-02 07:44:19 -07:00
Ben Kelly
c38d6a18a2 Bug 1471706 P1 Track each registration state change with a version number stored on the descriptor. r=mrbkap 2018-07-02 07:44:19 -07:00
Ben Kelly
241115d614 Bug 1471631 Move ServiceWorkerManager::AddRegistrationEventListener() code to ServiceWorkerRegistrationInfo. r=mrbkap 2018-07-02 07:44:19 -07:00
Ben Kelly
4b564b329e Bug 1462772 P5 Remove now-unused Listener logic in ServiceWorkerInfo. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly
aa573bca77 Bug 1462772 P4 Route ServiceWorker state changes through the ServiceWorkerRegistration. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly
f3b6e1d527 Bug 1462772 P3 Make ServiceWorker binding objects get or create a handle to their associated registration. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly
4866ecedf2 Bug 1462772 P2 Add the registration Id to the ServiceWorkerDescriptor. r=mrbkap 2018-07-02 07:44:18 -07:00
Ben Kelly
083c06c238 Bug 1462772 P1 Add a fallible nsIGlobalObject::GetServiceWorkerRegistration() method. r=mrbkap 2018-07-02 07:44:18 -07:00
Mark Banner
d42be1aa80 Bug 1470455 - Add the 'expected' arguments to throws/rejects for dom/push/test/xpcshell/test_broadcast_success.js. r=lina
MozReview-Commit-ID: DKYHIlJtD2P

--HG--
extra : rebase_source : cd27c3ab1c608086c877a75fdf144f162db720e0
2018-06-22 11:47:58 +01:00
Masayuki Nakano
09e0a5196b Bug 1469875 - Make nsPluginInstanceOwner::RequestCommitOrCancel() call IMEStateManager::NotifyIME() rather than calling nsIWidget::NotifyIME() r=m_kato
Any content code except TextComposition shouldn't call nsIWidget::NotifyIM()
since IMEStateManager and TextComposition manage state of the composition.
Therefore, we need to make nsPluginInstanceOwner::RequestCommitOrCancel()
call IMEStateManager::NotifyIME() instead.

Additionally, this method should ignore the request if composition has
already been gone.  This patch makes check whether there is a TextComposition
instance for the widget and the composition is handled in the plugin owner
element.

MozReview-Commit-ID: 5cx5X2hGfek

--HG--
extra : rebase_source : 3ff55f877a47ffa74b82af827f1500432b8c272b
2018-06-29 17:32:09 +09:00
Coroiu Cristina
742a191f7e Merge mozilla-central to autoland a=merge on a CLOSED TREE 2018-07-02 12:52:24 +03:00
Jesse Ruderman
b5cbc6c7a9 Bug 607222 - Add crashtest. r=mats 2018-07-01 18:06:49 +02:00
Alex Chronopoulos
8b700896f3 Bug 1460346 - Verify that AudioMixer'callback is removed before the destruction of GraphDriver. r=padenot
MozReview-Commit-ID: Jd0PVw7xHDV

--HG--
extra : rebase_source : 2e50404b08778ceadd76691312861d134d7c1a42
2018-06-29 10:05:56 +02:00
Tiberius Oros
4611ad8261 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-03 00:57:45 +03:00
Chris Pearce
599f53cfd2 Bug 1463919 - Tests for prompting for permission to autoplay. r=jya,mconley
Test that a video which tries to autoplay via either a play() call or via
an autoplay attribute:
* Plays when it has a pre-existing "allow" autoplay-media permission.
* Is blocked when it has a pre-existing "block" autoplay-media permission.
* Plays when it doesn't have a pre-existing autoplay-media permission and
"allow" is pressed on the door hanger.
* Is blocked when it doesn't have a pre-existing autoplay-media permission and
"block" is pressed on the door hanger.

MozReview-Commit-ID: CpftV6RQbtU

--HG--
extra : rebase_source : a9c38a7e7071e3ebd34f10175f4f22cd84c4c303
2018-06-25 15:35:33 +12:00
Chris Pearce
21f07622bf Bug 1463919 - Adjust mochitests to pass after changes. r=jya
Prior to the changes in this bug, a document would request autoplay permission
for its own origin, and not use the top level document's origin for the
permission check. Since now we use the top level document's origin for
requesting autoplay permission, some mochitests need to change, namely:

* test_autoplay_policy_permission.html can use
file_autoplay_policy_activation_frame.html directly.

The test was failing because its helper page was loaded same origin and the
helper page was testing if cross origin iframes could play; since we use the
top level document's permission request, this no longer effectively tests
whether the cross origin child can autoplay, as the cross origin child just
uses the top level window's origin for requests.

So we can instead load the helper window cross orgin instead, and remove one
helper layer.

Also an issue here is the way I was waiting for a new window to load was racy,
so now we wait for loading windows to send us a "ready" message.

* test_autoplay_policy_activation.html; this test's helper needs to wait for
loading windows to send it a "ready" message, as its helper is shared with the
above test.

MozReview-Commit-ID: LvRa4G7tqFw

--HG--
extra : rebase_source : 8ecd0e58200d79f0065a6d7b146d1d110d35953d
2018-06-27 16:15:58 +12:00
Chris Pearce
f88fe2a683 Bug 1463919 - Check AutoplayPolicy before activating attribute based autoplay. r=jya
When autoplay is requested by setting the "autoplay" attribute, we should
check whether autoplay is allowed in HTMLMediaElement::CheckAutoplayDataReady()
and if not we should prompt for user consent.

This ensures that <video ... autoplay/> will prompt for consent when used on
a page without a pre-existing allow/block permission.


MozReview-Commit-ID: 77pJR2Ybn2i

--HG--
extra : rebase_source : 5cf26822c9e5f23a83d69f5f52c39be6ab6f9eb0
2018-06-29 15:10:14 +12:00
Chris Pearce
ea95e39bc9 Bug 1463919 - Move ask autoplay permission check into AutoplayPolicy. r=jya
MozReview-Commit-ID: KJcVI6gtGXw

--HG--
extra : rebase_source : a2ccd2da32d77708fdeb6ea6361975a7759cb18d
extra : source : 9b1c40f3e61ab351707f2d320ce8f87951e4868e
2018-06-26 14:16:13 +12:00
Chris Pearce
b309d364b6 Bug 1463919 - Have HTMLMediaElement ask for autoplay permission when playback otherwise blocked. r=jya
MozReview-Commit-ID: Ejv0UKBjSVf

--HG--
extra : rebase_source : f999b9a4a1ae7a5a7f1dd31efd3003e40d7fa102
2018-06-22 10:14:33 +12:00
Chris Pearce
bbbdebe6e1 Bug 1463919 - Add AutoplayRequest to encapsulate asking for autoplay permission. r=smaug
Add an implementation of nsIContentPermissionRequest to encapsulate requesting
permission from the user to autoplay audible media.

All documents in the tab request permission using the top level document's
origin, so the AutoplayRequest instance for a tab is stored on the top level
content window of the tab.

AutoplayRequest ensures that there's only a single prompt shown at once.

MozReview-Commit-ID: 2u3aLnEa21z

--HG--
extra : rebase_source : a3db3a1ef87a09442b47ae1b1034b4a0143289fb
extra : source : ae572bf618155a92b136fc5f12c1f8c9ab31f89c
2018-06-22 11:57:24 +12:00
Alex Chronopoulos
9088abf6c9 Bug 1460346 - Remove unnecessary locking on an atomic value. r=pehrsons
MozReview-Commit-ID: 5SPjgHkPwTT

--HG--
extra : rebase_source : eccca9f4359b859c1bf78bf24a33d9620cd63589
2018-05-25 11:59:08 +03:00
Alex Chronopoulos
43f81a73ac Bug 1460346 - Assert in SetCurrentDriver method of MSG that is called from audio thread or when the thread is not running. r=pehrsons
MozReview-Commit-ID: 7JKcFxxDFCt

--HG--
extra : rebase_source : fe8d0b043117f3b5ecfe3ae36addae340c795875
2018-05-25 11:58:58 +03:00
Alex Chronopoulos
cd6f5298c4 Bug 1460346 - Fix a case that ThreadedDriver is started when it is already working. r=padenot
MozReview-Commit-ID: 6R6WH3ITw03

--HG--
extra : rebase_source : 0762f709b7b82714f7c3a47ad59984e5bde49238
2018-05-25 11:58:58 +03:00
Alex Chronopoulos
7ab72fe907 Bug 1460346 - Assert that GraphDriver methods are called from graph thread. r=padenot,pehrsons
MozReview-Commit-ID: Kkl7ENMXlJq

--HG--
extra : rebase_source : ccc79b8cfcb1d6d86ced5bc2a5a2931eccd7ff72
2018-05-25 11:58:45 +03:00