Commit Graph

149 Commits

Author SHA1 Message Date
Ehsan Akhgari
b91a77bbbe Bug 1180535 - Dispatch the media-playback notification when navigating away from a page that has a media element playing; r=baku
When navigating away from a document, we mute the playing media elements
through the NotifyOwnerDocumentActivityChanged() notification.
Sometimes, that function may notify the audio channel agent through its
call to AddRemoveSelfReference() which may call
UpdateAudioChannelPlayingState() and notify the agent, but when we're
navigating away from the page, playingThroughTheAudioChannel will always
be equal to mPlayingThroughTheAudioChannel, which causes us to not
notify the audio channel agent.

This patch fixes this by separating NotifyOwnerDocumentActivityChanged()
from its internal consumers, and forcefully notifying the audio channel
agent when we navigate away.
2015-07-11 13:16:39 -04:00
Carsten "Tomcat" Book
0e2d2f8aa3 Backed out changeset e11a8496bf63 (bug 1180535) 2015-07-11 14:13:32 +02:00
Ehsan Akhgari
cec62516a1 Bug 1180535 - Dispatch the media-playback notification when navigating away from a page that has a media element playing; r=baku
When navigating away from a document, we mute the playing media elements
through the NotifyOwnerDocumentActivityChanged() notification.
Sometimes, that function may notify the audio channel agent through its
call to AddRemoveSelfReference() which may call
UpdateAudioChannelPlayingState() and notify the agent, but when we're
navigating away from the page, playingThroughTheAudioChannel will always
be equal to mPlayingThroughTheAudioChannel, which causes us to not
notify the audio channel agent.

This patch fixes this by separating NotifyOwnerDocumentActivityChanged()
from its internal consumers, and forcefully notifying the audio channel
agent when we navigate away.
2015-07-10 21:33:00 -04:00
Wes Kocher
9e573d5db3 Backed out changeset d7e0eb7b42f9 (bug 1180535) for test_video_wakelock.html permafails CLOSED TREE 2015-07-10 15:36:39 -07:00
Ehsan Akhgari
30dfed2d4f Bug 1180535 - Dispatch the media-playback notification when navigating away from a page that has a media element playing; r=baku
When navigating away from a document, we mute the playing media elements
through the NotifyOwnerDocumentActivityChanged() notification.
Sometimes, that function may notify the audio channel agent through its
call to AddRemoveSelfReference() which may call
UpdateAudioChannelPlayingState() and notify the agent, but when we're
navigating away from the page, playingThroughTheAudioChannel will always
be equal to mPlayingThroughTheAudioChannel, which causes us to not
notify the audio channel agent.

This patch fixes this by separating NotifyOwnerDocumentActivityChanged()
from its internal consumers, and forcefully notifying the audio channel
agent when we navigate away.
2015-07-10 15:49:53 -04:00
Ehsan Akhgari
15468da7f0 Bug 1180539 - Correctly dispatch media-playback notifications when an AudioContext is closed/suspended/resumed; r=baku
Since navigating away from a page with an active AudioContext will close
it internally, this patch fixes a similar issue to bug 1180535 for Web
Audio too.
2015-07-06 21:21:19 -04:00
Ehsan Akhgari
b46cf7d328 Backout bug 1180539 for test failures 2015-07-06 10:50:35 -04:00
Ehsan Akhgari
d9c8ffbd0a Bug 1180539 - Correctly dispatch media-playback notifications when an AudioContext is closed/suspended/resumed; r=baku
Since navigating away from a page with an active AudioContext will close
it internally, this patch fixes a similar issue to bug 1180535 for Web
Audio too.
2015-07-06 09:10:06 -04:00
Franziskus Kiefer
1e551c630d Bug 1166910 - Add tests for referrer attribute for img tag. r=ckerschb, r=hsivonen 2015-06-05 15:25:24 -07:00
Boris Zbarsky
ee4aa67f3d Bug 959992. Go back to not treating properties that the named properties object exposes as enumerable. r=peterv 2015-07-01 14:15:22 -04:00
Carsten "Tomcat" Book
2684c9ea8e Backed out changeset 981a1dbe042b (bug 1166910) 2015-07-01 08:18:58 +02:00
Franziskus Kiefer
63d6ede0b5 Bug 1166910 - referrer attribute for img tag, tests. r=hsivonen 2015-06-05 15:25:24 -07:00
Franziskus Kiefer
571b8681f2 Bug 1101288 - disabling single test to avoid intermittent. r=Kwierso 2015-06-29 08:24:01 -07:00
Andrea Marchesini
332a2ea9d0 Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent 2015-06-17 11:44:27 +01:00
Boris Zbarsky
f8b47c5fa7 Bug 1165851 part 2. Add a test for the desired createAttribute/getAttribute behavior. r=smaug 2015-06-16 12:18:00 -04:00
Boris Zbarsky
2c051d62ba Bug 1165851 part 1. Back out bug 1060938 and bug 1075702 pending spec changes because they are implementing a spec that's not web compatible. r=smaug 2015-06-16 12:17:57 -04:00
Ryan VanderMeulen
c2d0806581 Backed out changeset 1d67d747b3eb (bug 911972) for frequent linux64 debug e10s test_post_message_advanced.html timeouts.
CLOSED TREE
2015-06-15 13:06:23 -04:00
Andrea Marchesini
a36cc3fb5e Bug 911972 - MessagePort and MessageChannel in workers, r=smaug, r=bent 2015-06-15 14:08:25 +01:00
Christoph Kerschbaumer
0514cecbc6 Bug 1117650 - Part 1: Move all CORS tests into dom/security/test. r=sicking 2015-06-08 16:21:31 -07:00
Kathy Brade
be0ea65a02 Bug 418986 - Resist fingerprinting by preventing exposure of screen and system info. r=mrbkap, r=heycam 2015-06-07 09:02:00 -04:00
Franziskus Kiefer
f9afc3bf7b Bug 1165501 - using most recent referrer policy found in the document. r=sstamm 2015-05-27 13:29:00 -07:00
Andrea Marchesini
b66ef4e88c Bug 1155761 - User Timing API in Workers, r=ehsan 2015-05-25 17:53:07 +01:00
Franziskus Kiefer
725659916e Bug 1161221 - Split http referrer tests and enable them on all platforms except https on b2g. r=sstamm 2015-05-14 11:07:38 -07:00
Franziskus Kiefer
d4921fe29b Bug 1163743 - Test changes for changing origin-when-crossorigin to origin-when-cross-origin. r=sstamm 2015-05-11 16:18:05 -07:00
Geoff Brown
8b83aca734 Bug 1140454 - Skip some tests on Android 4.3 Debug for intermittent failures; r=me,trivial 2015-05-09 20:04:44 -06:00
Andrea Marchesini
992af18d7c Bug 1160892 - Url.createObjectURL(blob) should support punycode origins, r=smaug 2015-05-07 19:20:33 +01:00
Andrea Marchesini
d874aacdc8 Bug 1158437 - dom::File should accept negative date values, r=smaug 2015-04-27 12:17:19 +01:00
Boris Zbarsky
e14a6b217e Bug 1109693. More places that use CORS should in fact allow data: URIs. r=smaug 2015-04-22 20:30:10 -04:00
Geoff Brown
e5cb1a01ea Bug 1133833 - Disable a few tests on Android 4.3 for intermittent failures; r=trivial 2015-04-14 21:05:40 -06:00
Alexandre Lissy
944a871aef Bug 1144080 - Disable mochitests on Mulet for TaskCluster. r=ahal 2015-03-20 00:45:00 +01:00
Boris Zbarsky
e9ab0b6864 Bug 1142478. Fix integer attribute parsing to not lose track of leading zeroes. r=sicking 2015-03-12 21:46:57 -04:00
Jed Davis
1fb2cb6088 Bug 1034143: Step 1: Fix tests for bug 945152 and bug 1008126. r=smaug
This bug will make jar:http:// no longer eligible for the memory-mapping
optimization tested in these test cases, so this patch changes them
to use local files, which is the case that that optimization is meant
for.  Specifically, it changes them to chrome tests and pre-resolves
the chrome: URL of the jar file so that nsJARChannel recognizes it as a
local file.

Note that the bug 945152 test jar file remains in the file list for
plain mochitests as well as being added to chrome.ini; there is a test
in another directory that uses it, and a later patch in this series will
add another.
2015-03-10 17:00:01 -07:00
Boris Zbarsky
cb2a1d6e2a Bug 453969. Fix the race in test_bug382113.html so we don't set our child-onload-fired boolean to false _after_ the child onload has already fired. r=froydnj 2015-03-09 21:36:47 -04:00
Anish
b9d3be97ea Bug 958147 - Choose one of run-if or skip-if and get rid of the other.r=jmaher, mwargers 2015-03-03 08:46:37 -05:00
Alex Verstak
407672102f Bug 1091883 - Added test, this is fixed by a fix to bug 1113438. r=sstamm CLOSED TREE 2015-01-05 09:09:51 -08:00
Olli Pettay
8f568bd989 Bug 1037687, load iframes in shadow DOM, r=wchen 2015-02-24 16:41:43 +02:00
Bill McCloskey
aa2a1135c0 Bug 1128798 - [e10s] Make a version of nsIContentPolicy that doesn't pass the node as a parameter (r=mrbkap,tanvi,ckerschb)
--HG--
rename : dom/base/nsIContentPolicy.idl => dom/base/nsIContentPolicyBase.idl
2015-02-20 08:54:12 -08:00
Olli Pettay
b62ca66c1c Bug 1118689, Don't try to load an image if its container docshell is gone, r=bz
--HG--
extra : rebase_source : 2f7093a587cee9780d1abbec854c71658a46e91c
2015-02-13 04:44:32 +02:00
Olli Pettay
0157f06592 Bug 1126851, window object should special case only resize event dispatched to itself, r=bz
--HG--
extra : rebase_source : 759588e02d8db04c1fecdf40293545011479faaf
2015-02-06 12:42:23 +02:00
Kyle Machulis
b3ade1e03e Bug 782751 - User Timing API Mochitests; r=baku 2015-02-03 21:46:23 -08:00
Boris Egorov
c5f76609b2 Bug 1070015 - Throw error if attr object of different element passed; r=bz
In the beginning of Element::removeAttributeNode() we check that attr object
passed to it belongs to the same element (comparing attr.GetElement and this).

If it is different element, throw NotFoundError.

Mochitest to check new behavior included.

--HG--
extra : rebase_source : 8582d119a99d23d121ad9f7fe5b184668641bf80
2015-01-25 20:39:05 +06:00
Boris Zbarsky
26c0d53e6f Bug 511084. Make frame/iframe create a browsing context even if it's the root element. r=smaug 2015-02-02 15:44:03 -05:00
Ryan VanderMeulen
4aa269687d Backed out 4 changesets (bug 782751, bug 1127948) for Gaia UI test failures.
Backed out changeset 4d8735e0cc30 (bug 1127948)
Backed out changeset de498dd4e303 (bug 782751)
Backed out changeset fe9436f5474c (bug 782751)
Backed out changeset fff8f6c32743 (bug 782751)
2015-01-30 14:16:40 -05:00
Kyle Machulis
66fe0eb029 Bug 782751 - User Timing API Mochitests; r=baku 2015-01-30 09:29:36 -08:00
Phil Ringnalda
cab66a702e Backed out 3 changesets (bug 782751) for various timing failures
Backed out changeset 14594507ec55 (bug 782751)
Backed out changeset e8659e5122e1 (bug 782751)
Backed out changeset c47168517080 (bug 782751)
2015-01-29 22:30:26 -08:00
Kyle Machulis
8d1eb813c4 Bug 782751 - User Timing API Mochitests; r=baku
--HG--
extra : rebase_source : 507281cfda6ffaef778e67d4e6afcd8b8e1012f5
2015-01-29 18:04:27 -08:00
Jed Davis
45f8681fa5 Bug 1068838 - Fix file input element tests to open files in the parent process. r=sicking
The dom/base tests changed here use SpecialPowers.loadChromeScript to
construct a DOM File in the parent and send it to the child, using the
existing remote-blob infrastructure.  The dom/html tests don't need a
real file, so they now construct in-memory files.

As a convenient side-effect, these tests are now enabled for desktop
e10s (they were already being run out-of-process on B2G); most of them
failed before this change due to the code that's being moved/removed.
2015-01-26 16:23:00 -08:00
Anuj Agarwal
213c62632c Bug 1060938 - Add mochitest for Element.removeAttributeNode(). r=bz 2015-01-22 06:34:00 -05:00
Ryan VanderMeulen
37d5164f37 Bug 1107443 - Disable the newly-added test_window_define_nonconfigurable.html beause it started permafailing because the code it landed with was disabled.
CLOSED TREE
2015-01-23 12:56:49 -05:00
Boris Zbarsky
037cbb41ae Bug 1107443 part 6. Make attempts to define a non-configurable property via WindowProxy throw. r=peterv,jorendorff 2015-01-23 09:54:15 -05:00