Commit Graph

417049 Commits

Author SHA1 Message Date
Tooru Fujisawa
718d9aee96 Bug 1155048 - Remove redundant return statement in CustomizableUI.jsm. r=Gijs 2015-04-16 21:55:57 +09:00
Paul Adenot
e32b404e54 Bug 1094764 - Implement AudioContext.suspend and friends. r=roc,ehsan
- Relevant spec text:
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-suspend-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-resume-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-close-Promise
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-state
    - http://webaudio.github.io/web-audio-api/#widl-AudioContext-onstatechange

- In a couple words, the behavior we want:
    - Closed context cannot have new nodes created, but can do decodeAudioData,
    and create buffers, and such.
    - OfflineAudioContexts don't support those methods, transitions happen at
    startRendering and at the end of processing. onstatechange is used to make
    this observable.
    - (regular) AudioContexts support those methods. The promises and
    onstatechange should be resolved/called when the operation has actually
    completed on the rendering thread.  Once a context has been closed, it
    cannot transition back to "running". An AudioContext switches to "running"
    when the audio callback start running, this allow authors to know how long
    the audio stack takes to start running.
    - MediaStreams that feed in/go out of a suspended graph should respectively
    not buffer at the graph input, and output silence
    - suspended context should not be doing much on the CPU, and we should try
    to pause audio streams if we can (this behaviour is the main reason we need
    this in the first place, for saving battery on mobile, and CPU on all
    platforms)

- Now, the implementation:
    - AudioNodeStreams are now tagged with a context id, to be able to operate
    on all the streams of a given AudioContext on the Graph thread without
    having to go and lock everytime to touch the AudioContext. This happens in
    the AudioNodeStream ctor. IDs are of course constant for the lifetime of the
    node.
    - When an AudioContext goes into suspended mode, streams for this
    AudioContext are moved out of the mStreams array to a second array,
    mSuspendedStreams. Streams in mSuspendedStream are not ordered, and are not
    processed.
    - The MSG will automatically switch to a SystemClockDriver when it finds
    that there are no more AudioNodeStream/Stream with an audio track. This is
    how pausing the audio subsystem and saving battery works. Subsequently, when
    the MSG finds that there are only streams in mSuspendedStreams, it will go
    to sleep (block on a monitor), so we save CPU, but it does not shut itself
    down. This is mostly not a new behaviour (this is what the MSG does since
    the refactoring), but is important to note.
    - Promises are gripped (addref-ed) on the main thread, and then shepherd
    down other threads and to the GraphDriver, if needed (sometimes we can
    resolve them right away). They move between threads as void* to prevent
    calling methods on them, as they are not thread safe. Then, the driver
    executes the operation, and when it's done (initializing and closing audio
    streams can take some time), we send the promise back to the main thread,
    and resolve it, casting back to Promise* after asserting we're back on the
    main thread. This way, we can send them back on the main thread once an
    operation has complete (suspending an audio stream, starting it again on
    resume(), etc.), without having to do bookkeeping between suspend calls and
    their result. Promises are not thread safe, so we can't move them around
    AddRef-ed.
    - The stream destruction logic now takes into account that a stream can be
    destroyed while not being in mStreams.
    - A graph can now switch GraphDriver twice or more per iteration, for
    example if an author goes suspend()/resume()/suspend() in the same script.
    - Some operation have to be done on suspended stream, so we now use double
    for-loop around mSuspendedStreams and mStreams in some places in
    MediaStreamGraph.cpp.
    - A tricky part was making sure everything worked at AudioContext
    boundaries.  TrackUnionStream that have one of their input stream suspended
    append null ticks instead.
    - The graph ordering algorithm had to be altered to not include suspended
    streams.
    - There are some edge cases (adding a stream on a suspended graph, calling
    suspend/resume when a graph has just been close()d).
2015-02-27 18:22:05 +01:00
Carsten "Tomcat" Book
ef43ff7fe0 Backed out changeset cc8eb386f147 (bug 1154691) for b2g test bustage on a CLOSED TREE 2015-04-16 13:47:51 +02:00
Chris Lord
2b3b00dfd3 Bug 994541 - Enable BasicCompositor OMTC on linux. r=Bas 2015-03-12 14:01:23 +01:00
Nicolas Silva
3f0ffbe90e Bug 1155092 - Disable the test browser_PopupNotification on Linux asan. r=roc 2015-04-16 13:36:33 +02:00
Ehsan Akhgari
087743bda2 Bug 1154831 - Remove the gcc-4.6-warning-silencing code in ErrorResult::ErrorResult; r=bzbarsky 2015-04-16 07:29:31 -04:00
Andrea Marchesini
8246ba8f46 Bug 1152169 - DataStoreService should check if the first revision exists, r=bent 2015-04-16 12:25:42 +01:00
Carsten "Tomcat" Book
0978eed0db Merge mozilla-central to mozilla-inbound
--HG--
extra : rebase_source : 2d5726f46e414db50c1f956bb91dc1c6ec80c322
2015-04-16 12:46:00 +02:00
Carsten "Tomcat" Book
ad1f0f26c7 merge mozilla-inbound to mozilla-central a=merge 2015-04-16 12:35:31 +02:00
Carsten "Tomcat" Book
626f1ee6b8 merge fx-team to mozilla-central a=merge 2015-04-16 12:34:23 +02:00
Mark Hammond
6ede6ade80 Bug 1153121 - have the readinglist sync engine log existing local items if trace logging is enabled. r=adw 2015-04-16 16:16:10 +10:00
Mark Hammond
3f8a941dc8 Bug 1152698 - certain readinglist server response codes should cause the sync engine to throw/abort. r=adw 2015-04-16 16:16:10 +10:00
Phil Ringnalda
1c5973f626 Back out 364bc6209cc5 (bug 1134501) for jetpack bustage 2015-04-15 22:08:20 -07:00
Shu-yu Guo
22739fb995 Bug 1147939 - The expression decompiler can't assume that it's called directly from script. (r=bhackett) 2015-04-15 21:55:21 -07:00
Shu-yu Guo
c80aabf81b Bug 1152304 - Add displaying of block notes to dis() in the JS shell. (r=jimb) 2015-04-15 21:55:21 -07:00
Shu-yu Guo
379e27b7e6 Bug 1152304 - Record the end of block scope notes to be after emission of JSOP_POPBLOCKSCOPE. (r=jimb) 2015-04-15 21:55:21 -07:00
B2G Bumper Bot
768957820f Bumping manifests a=b2g-bump 2015-04-15 20:52:19 -07:00
B2G Bumper Bot
ea2450fc30 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/2511908f59de
Author: autolander <bug.autolander@gmail.com>
Desc: Bug 1132666 - merge pull request #28737 from jimporter:music-rtl-tiles to mozilla-b2g:master

========

https://hg.mozilla.org/integration/gaia-central/rev/6d16c741cd1a
Author: Jim <jporter@mozilla.com>
Desc: Bug 1132666 - [RTL][Music] Translated text on music tiles is not right aligned in Arabic
2015-04-15 20:50:08 -07:00
Wes Kocher
2ad739d2fc Merge m-c to b2g-inbound to prevent W3 permafail 2015-04-15 18:34:33 -07:00
Ryan VanderMeulen
d2077c9b97 Merge m-c to b2g-inbound. a=merge 2015-04-15 21:25:43 -04:00
Ryan VanderMeulen
9ee119c2bd Merge fx-team to m-c. a=merge 2015-04-15 21:23:40 -04:00
Ryan VanderMeulen
4a1793fa7f Merge inbound to m-c. a=merge 2015-04-15 21:22:31 -04:00
Jim Blandy
205761df0c Bug 1155006: Fix unified build sensitivities in js/src. r=shu
--HG--
extra : rebase_source : adc1361db68260d1e7e3ff9c12b827cf3e962b8b
extra : histedit_source : 1e4442a49e57de9213605822370b97d8c25757f0
2015-04-15 17:50:15 -07:00
Jim Blandy
08536cb66d Bug 1155006: Fix unified build sensitivities in js/src/jit. r=shu
--HG--
extra : rebase_source : 51e2461ee971845a73354c721fc9d6cbd7662f50
extra : histedit_source : 1fc6cd77738dd38c85807867edb00ba443addeb0
2015-04-15 17:48:30 -07:00
Bill McCloskey
dff23ab14d Bug 1154465 - Test for add-on compat warnings (r=gabor) 2015-04-15 20:01:13 -07:00
Bill McCloskey
9090527720 Bug 1154465 - Fix add-on shim telemetry (r=gabor) 2015-04-15 20:00:37 -07:00
Valentin Gosu
f2c9e3a737 Bug 1149913 - Disable bug 1093611. Set pref dom.url.encode_decode_hash to true r=honzab 2015-04-16 05:25:10 +03:00
Xidorn Quan
61deda4f23 Bug 1154814 - Move font rules from 'rt' to 'rtc, rt' and make text-emphasis conditional. r=heycam
--HG--
extra : source : 1e1638a97e74b38b9e6fdce36af7371a12abe9d1
2015-04-16 13:42:56 +12:00
Xidorn Quan
7d994fe0ce Bug 1153764 - Avoid explicitly doing break before when there is ruby span. r=roc
--HG--
extra : source : c4436462f86b0c33f98254b9d067c173702b666a
2015-04-16 13:42:45 +12:00
Wes Kocher
977767e8bc Merge m-c to inbound a=merge 2015-04-15 18:36:24 -07:00
Ryan VanderMeulen
2776c985cf Merge m-c to inbound. a=merge 2015-04-15 21:26:41 -04:00
B2G Bumper Bot
bddca31ac0 Bumping manifests a=b2g-bump 2015-04-15 17:37:36 -07:00
B2G Bumper Bot
2b481af036 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/e41c54c1d9be
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Merge pull request #29530 from KevinGrandon/bug_1133347_remove_old_legacy_definitions

Bug 1133347 - Follow-up, remove old homescreen test definitions from manifest

========

https://hg.mozilla.org/integration/gaia-central/rev/50cbbf1c90a8
Author: Kevin Grandon <kevingrandon@yahoo.com>
Desc: Bug 1133347 - Follow-up, remove old homescreen test definitions from manifest r=kgrandon
2015-04-15 17:35:25 -07:00
B2G Bumper Bot
42bda1404b Bumping manifests a=b2g-bump 2015-04-15 17:02:32 -07:00
B2G Bumper Bot
8c93748f65 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/f9de193b7cb6
Author: autolander <bug.autolander@gmail.com>
Desc: Bug 1152486 - merge pull request #29444 from millermedeiros:1152486-split-view-selector to mozilla-b2g:master

========

https://hg.mozilla.org/integration/gaia-central/rev/12b0c0f0c2ed
Author: Miller Medeiros <miller@millermedeiros.com>
Desc: Bug 1152486 - [Calendar] split view selector logic into its own file
2015-04-15 17:00:16 -07:00
Wes Kocher
25448dc363 Backed out changeset 42ed856b37d9 (bug 1153382) to see if it unbreaks e10s-bc1 CLOSED TREE 2015-04-15 16:45:41 -07:00
B2G Bumper Bot
02807b9254 Bumping manifests a=b2g-bump 2015-04-15 16:32:26 -07:00
B2G Bumper Bot
ef2fef15c4 Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/36d9f5b16070
Author: autolander <bug.autolander@gmail.com>
Desc: Bug 1154588 - merge pull request #29515 from shamenchens:Bug1154588-JshintMarionetteFxa to mozilla-b2g:master

========

https://hg.mozilla.org/integration/gaia-central/rev/e48ec13b8c07
Author: Sherman Chen <shamen.chens@gmail.com>
Desc: Bug 1154588 - Fix jshint error in fxa_iac_client.js
2015-04-15 16:30:16 -07:00
B2G Bumper Bot
9e73fe72b3 Bumping manifests a=b2g-bump 2015-04-15 16:12:46 -07:00
B2G Bumper Bot
708360ef9c Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/72a50366631a
Author: David Flanagan <dflanagan@mozilla.com>
Desc: Merge pull request #29513 from davidflanagan/bug1152841

Bug 1152841 - make pdf.js viewer app handle open requests from file view... r=aus

========

https://hg.mozilla.org/integration/gaia-central/rev/755ba98f1761
Author: David Flanagan <dflanagan@mozilla.com>
Desc: Bug 1152841 - make pdf.js viewer app handle open requests from file viewers
2015-04-15 16:10:14 -07:00
Ehsan Akhgari
d89cd18a00 Bug 1149987 follow-up: Disable the broken WPT tests completely because I can't figure out how to disable just the failing tests
Landed on a CLOSED TREE
2015-04-15 18:43:00 -04:00
Ehsan Akhgari
cdb1485385 Bug 1149987 follow-up: Disable the broken WPT tests completely because I can't figure out how to disable just the failing tests
Landed on a CLOSED TREE

--HG--
extra : rebase_source : 8c93c6783bcd64a183001ccd7d5052cd232bfdbf
extra : source : f652682efd548139d3ba978d1cb3e64fe7234759
2015-04-15 18:40:38 -04:00
Boris Zbarsky
40117e1eef Bug 1154878 another followup. Update wpt tests to not expect navigator.taintEnabled() in workers, because we still have a CLOSED TREE 2015-04-15 18:18:29 -04:00
Boris Zbarsky
0f4c42d994 Bug 1154878 followup. Fix a test that expects to see navigator.taintEnabled in workers so we can reopen the CLOSED TREE. 2015-04-15 17:37:58 -04:00
David Anderson
804fa172b7 Make test_bug946632 compatible with asynchronous scrolling. (bug 1140293, r=mstange)
--HG--
extra : rebase_source : e4f027bbcef4ccf4241fd48701935d170401404f
2015-04-15 16:28:43 -04:00
Ryan VanderMeulen
165304212d Merge m-c to fx-team. a=merge 2015-04-15 15:35:46 -04:00
Ryan VanderMeulen
22018c1631 Bug 1123563 - Remove extra space that was accidentally added. a=bustage 2015-04-15 15:33:19 -04:00
Jim Chen
8d9e62e70d Bug 1072529 - Only create GeckoEditable once; r=esawin 2015-04-15 15:21:32 -04:00
Jim Chen
fb7e3dd2bd Bug 1152124 - Clear spans when initializing for newly-focused editor; r=esawin 2015-04-15 15:21:32 -04:00
Jim Chen
78dafdd131 Bug 1152123 - Handle commit/cancel composition events in GeckoEditable; r=esawin 2015-04-15 15:21:32 -04:00