Commit Graph

21829 Commits

Author SHA1 Message Date
Paul Adenot
f10161b39f Bug 1060311 - Force the use of an AudioCallbackDriver when at least an AudioNodeStream is present in the graph. r=jesup
This prevent a bug where the graph would be using a SystemClockDriver even if it
was rendering Web Audio API content.

It went like this:
- An AudioContext was created.
- Some AudioNodeStream (Web Audio API MediaStreams) were created, but their
MediaStreamTrack was not added yet
- During the stream ordering, we would see that we were running an
AudioCallbackDriver (because the MSG was created using an AudioContext, and we
pass in hints regarding the type of MediaStreams that will be added in the
future, to open the audio stream as early as we can, because it can take some
time, the MSG was created directly using an AudioCallbackDriver)
- Also during the stream ordering, we see that none of our MediaStream have an
MediaStreamTrack with an audio track. This triggers a switch to a
SystemClockDriver, because the graph thinks there is no audio.
- During CreateAndDestroyAudioNode, we would not switch to an
AudioCallbackDriver on the first iteration (right after the UpdateStreamOrder
call), because we would be switching, and not during the iteration after,
because we thought we already switched (the first patch makes this more robust).

This basically forces an AudioCallbackDriver if there is an AudioNodeStream,
which prevents unnecessary GraphDriver switches (and save threads creation
destruction, audio stream create and destruction, and all other resources
associated with a GraphDriver).
2014-08-29 20:26:29 +02:00
Andrea Marchesini
35125820b7 Bug 1058470 - Blob URL should contain the origin as part of the URI, r=bz 2014-08-31 11:40:11 +01:00
Matthew A. Miller
ad16f7e264 Bug 1056213 - Window title in "windows or screen to share" list is not updated when navigating to another page r=rjesup 2014-08-27 16:32:28 -06:00
Timothy Nikkel
b51e4ac876 Bug 1008942. When a network request for an image finishes during paint suppression and the image doesn't have a frame don't start a decode. r=mats
Either the image won't get a frame, or it will get a frame very soon and that frame will check its own visibility and kick off a decode if needed.
2014-06-25 23:45:08 -05:00
Daniel Holbert
43688fd271 Bug 1056166 followup: move margin{SIDE} and textAlign atoms out of '#ifdef ACCESSIBILITY' section, to fix --disable-accessibility builds. r=ehsan 2014-08-31 00:56:26 -07:00
Randell Jesup
6d0bd79ea8 Backed out changeset ef2bf9308ed7 (bug 1056213) 2014-08-30 12:11:27 -04:00
Matthew A. Miller
4c10ef5484 Bug 1056213 - Window title in "windows or screen to share" list is not updated when navigating to another page r=rjesup 2014-08-27 16:32:28 -06:00
Tim Abraldes
6157602479 bug 1027906. Set delayed token level for GMP plugin processes to USER_RESTRICTED. Whitelist certain files and registry keys that are required for EME plugins to successfully load. r=bobowen. r=jesup. r=bent. 2014-08-29 17:34:26 -07:00
Tanvi Vyas
134527c588 Bug 1058836 - Set aDecision parameter to block by default and update cases where it wasn't initially set in nsMixedContentBlocker.cpp. r=smaug 2014-08-29 12:57:08 -07:00
Ryan VanderMeulen
28146780ed Merge m-c to inbound. a=merge
--HG--
extra : rebase_source : 3282a3113131b9cdc5b808ad75a834516c43ef73
2014-08-29 15:39:48 -04:00
Neil Rashbrook
1aa2452ae4 Bug 1054289 Scroll to the current ref, not the original one r=smaug 2014-08-29 20:34:35 +01:00
Neil Rashbrook
7b393e863a Bug 1059707 Don't print a deprecation warning for theme XBL binding documents r=smaug 2014-08-29 20:33:16 +01:00
Ryan VanderMeulen
a3c8179253 Merge b2g-inbound to m-c. a=merge 2014-08-29 15:26:40 -04:00
Paul Adenot
6c7bc575a7 Backed out changeset aaa4cf41cade (bug 1060311) on a CLOSED TREE 2014-08-29 18:25:35 +02:00
Paul Adenot
fed8eec47b Backed out changeset 36cedce0c8b3 (bug 1060311) 2014-08-29 18:23:12 +02:00
Carsten "Tomcat" Book
b838e5c2a9 Merge mozilla-central to b2g-inbound a=merge 2014-08-29 15:41:02 +02:00
Paul Adenot
36f7be71dd Bug 1060311 - Force the use of an AudioCallbackDriver when at least an AudioNodeStream is present in the graph. r=jesup
This prevent a bug where the graph would be using a SystemClockDriver even if it
was rendering Web Audio API content.

It went like this:
- An AudioContext was created.
- Some AudioNodeStream (Web Audio API MediaStreams) were created, but their
MediaStreamTrack was not added yet
- During the stream ordering, we would see that we were running an
AudioCallbackDriver (because the MSG was created using an AudioContext, and we
pass in hints regarding the type of MediaStreams that will be added in the
future, to open the audio stream as early as we can, because it can take some
time, the MSG was created directly using an AudioCallbackDriver)
- Also during the stream ordering, we see that none of our MediaStream have an
MediaStreamTrack with an audio track. This triggers a switch to a
SystemClockDriver, because the graph thinks there is no audio.
- During CreateAndDestroyAudioNode, we would not switch to an
AudioCallbackDriver on the first iteration (right after the UpdateStreamOrder
call), because we would be switching, and not during the iteration after,
because we thought we already switched (the first patch makes this more robust).

This basically forces an AudioCallbackDriver if there is an AudioNodeStream,
which prevents unnecessary GraphDriver switches (and save threads creation
destruction, audio stream create and destruction, and all other resources
associated with a GraphDriver).

--HG--
extra : rebase_source : 3c79c64a5dffee4c059d286125f0446c04a07a01
2014-08-29 15:18:03 +02:00
Paul Adenot
48eca544bb Bug 1060311 - Always use an AudioCallbackDriver when there is and AudioOutputStream. r=jesup
This makes the driver switching logic more robust against other bugs.

--HG--
extra : rebase_source : 556c2c80e1f5901b26f8bb56ea1cebfed3259412
2014-08-29 15:16:41 +02:00
JW Wang
83bd7810fd Bug 1059052 - centralize state transitions of MediaDecoderStateMachine. r=cpearce 2014-08-28 02:46:00 +02:00
John Lin
7ea3ecdbd4 Bug 968109 - Add test for recording audio node output. r=roc 2014-08-27 23:43:00 +02:00
John Lin
419a843462 Bug 968109 - Add new constructor to support recording from any web audio node. r=roc,smaug 2014-08-27 23:40:00 +02:00
Jean-Yves Avenard
af0c50e988 Bug 1058422: Don't immediately request new data r=cajbir 2014-08-29 12:15:40 +12:00
Anthony Jones
2707540462 Bug 1057911 - Fix libav/ffmpeg drain; r=jya 2014-08-29 14:29:12 +12:00
Matthew Gregan
b8e655cdde Bug 1059625 - Bustage fix. 2014-08-29 12:47:14 +12:00
Matthew Gregan
fedb2b5a07 Bug 1044498 - Pass saved init segment to decoder's NotifyDataAvailable. r=cajbir 2014-08-27 18:15:36 +12:00
Matthew Gregan
466c3d3e0b Bug 1059625 - Detach MediaSource upon decoder shutdown. r=cajbir 2014-08-28 15:44:58 +12:00
Matthew Gregan
59264a4e6d Bug 1044498 - Create new decoder if non-consecutive non-overlapped appended occurs. r=cajbir 2014-08-27 16:43:25 +12:00
Matthew Gregan
07496c798b Bug 1044498 - Improve calculation of init segment region. r=cajbir 2014-08-27 16:28:44 +12:00
Matthew Gregan
aad9564ebe Bug 1044498 - Return a null decoder when CreateSubDecoder is called in Shutdown state. r=cajbir 2014-08-27 12:45:05 +12:00
Matthew Gregan
e42250484c Bug 1044498 - Fix a bunch of WebM buffered range bugs. r=cajbir 2014-08-26 18:23:02 +12:00
Matthew Gregan
ad36ee7008 Bug 1044498 - Save init segment for reuse during overlapped appends. r=cajbir 2014-08-26 18:22:20 +12:00
Benjamin Chen
8b7644737d Bug 1033910 - Enable RTSP capability while using android::MediaCodec. r=cpearce 2014-08-28 18:36:34 +08:00
Aryeh Gregor
7512726531 Bug 1056166 part 4 - Remove nsEditProperty; r=ehsan 2014-08-29 14:43:24 +03:00
Matthew Gregan
647aa498f2 Bug 1044498 - Handle overlapped SourceBuffer appends by spinning up a new decoder. Only implemented for WebM so far. r=cajbir 2014-08-19 17:13:27 +12:00
Matthew Gregan
ddf2bf9881 Bug 1059035 - Check IsAttached() before accessing mMediaSource in SourceBuffer::Remove. r=cajbir 2014-08-27 14:24:01 +12:00
Matthew Gregan
cb6c66cb97 Bug 1058418 - Make SBR::GetNextCachedData return a sane value, add more unimplemented function logging in MSE, drop unused mPrincipal from SBR. r=cajbir 2014-08-25 18:05:48 +12:00
Fabrice Desré
172043d717 Bug 1011738 - Theme support for b2g/gaia, Part 4 : security checks r=bent,bz 2014-08-28 17:20:27 -07:00
Fabrice Desré
9cf1eb0db0 Bug 1011738 - Theme support for b2g/gaia, Part 2 : stylesheet reloading r=bz,seth 2014-08-28 17:20:27 -07:00
Botond Ballo
ce6b54b741 Bug 1057642 - Revert [Int]::PointTyped::[x|y] to be of primitive type. r=kats
--HG--
extra : rebase_source : 55e56423f6c8f5278315a6dc9dfcb9fb983c9309
2014-08-28 12:45:48 -04:00
Timothy Nikkel
55c9b4ab9c Bug 1051530. Update the nsImageLoadingContent state when we get a decode complete notification so that decode errors are recorded in our image state. r=bzbarsky
In nsImageLoadingContent whether a decode error put our image state into error depends on when the decode starts in relation to the network load event for the image. In nsImageLoadingContent::OnStopRequest if a decode has been started then we wait until the decode is complete to fire the load/error event. When we fire this event we also update the image state. However if a decode has not started by the time OnStopRequest runs, but a decode does happen later then when it completes nsImageLoadingContent::Notify does nothing, and our image state stays as non-error.
2014-08-28 13:43:21 -05:00
Paul Adenot
7d14b2516c Bug 1059132 - Bustage fix: fix printf format. 2014-08-28 19:34:35 +02:00
Paul Adenot
305b725752 Bug 1059601 - Make sure we don't try to play audio with a system driver. r=jesup
--HG--
extra : rebase_source : 7142e0d9baf38491637d40d66375d92a0aaa9e9e
2014-08-27 19:13:15 +02:00
Paul Adenot
b11b217ab3 Bug 1059132 - Log a message and continue when we found our clock went backward while using a system clock. r=jesup
--HG--
extra : rebase_source : d808c5f8f32dfa1746c9f0b19828dba9b8ecdc30
2014-08-27 11:48:27 +02:00
Paul Adenot
b1c465ca10 Bug 909925 - Disable crashtest test 691096-1.html on windows. r=jesup
--HG--
extra : rebase_source : fed9ee61b50c411125714d5b68075d20b5adb699
2014-08-28 19:07:03 +02:00
Martijn Wargers
ee3dee3fa0 Bug 1058451 - Intermittent test_CSP_bug885433.html | Inline script should be allowed - Result logged after SimpleTest.finish(). r=sstamm 2014-08-26 17:59:42 +02:00
Olli Pettay
dc7e48aa78 Bug 1059705 - revert the change which made nsIEditor builtinclass, r=masayuki 2014-08-28 17:33:35 +03:00
Tapas Das
fcb9091d95 Bug 1048171 - Add variable to prevent the Audio Channel Toggle during Fast/Continous seek. r=baku 2014-08-28 04:07:00 -04:00
Gabor Krizsanits
9cb25d668e Bug 1056841 - Always nulling mContainingShadow in Element::UnbindFromTree. r=wchen 2014-08-28 13:53:21 +02:00
Jean-Yves Avenard
633e79da27 Bug 1059569 - Check that GetTaskQueue() doesn't return NULL. r=cpearce 2014-08-28 11:56:32 +12:00
Chris Pearce
35125dcceb Bug 861090 - Create media.play-stand-alone pref to prevent loading videos as video documents. r=kinetik 2014-08-28 15:33:14 +12:00