Commit Graph

236531 Commits

Author SHA1 Message Date
Hiroyuki Ikezoe
f4d0829c0f Bug 1139254 - Use MockRegistrar in services. r=gps 2015-03-03 19:46:00 -05:00
Hiroyuki Ikezoe
11f0de3c5c Bug 1139254 - Use MockRegistrar in toolkit/mozapps. r=Unfocused 2015-03-30 02:14:00 -04:00
Hiroyuki Ikezoe
de49e6a9f1 Bug 1139254 - Use MockRegistrar in toolkit/components. r=Unfocused 2015-03-24 19:47:00 -04:00
Hiroyuki Ikezoe
da8a9901bd Bug 1139254 - Introduce a new jsm to register mock easily. r=gps 2015-03-24 19:15:00 -04:00
Tom Tromey
f1381c4ec1 Bug 979094 - Fix ending location of variable declaration. r=jimb 2015-03-27 08:38:00 -04:00
Ryan VanderMeulen
19406a3db7 Backed out changesets 490d2e6a5026 and f1bd22adbd0c (bug 1146696) for frequent mochitest-bc leaks.
CLOSED TREE
2015-03-30 11:36:59 -04:00
Mats Palmgren
eb873cb613 Bug 1148971 - Make nsITheme::GetMinimumWidgetSize return a LayoutDeviceIntSize result instead of the unit-less nsIntSize type. r=roc 2015-03-30 11:36:14 -04:00
Mats Palmgren
53e122f6fd Bug 1149035 - Make nsXULPopupManager::PopupResized take a LayoutDeviceIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 11:36:01 -04:00
Mats Palmgren
cb4958312f Bug 1149037 - Make nsLayoutUtils::ComputeSizeForDrawing* take a CSSIntSize param instead of a unit-less nsIntSize. r=roc 2015-03-30 11:35:47 -04:00
Mats Palmgren
15b6423984 Bug 1149041 - Make nsIWidget::SizeConstraints use LayoutDeviceIntSize instead of unit-less nsIntSize. r=roc 2015-03-30 11:35:25 -04:00
Ryan VanderMeulen
81943fc32d Backed out changeset 6df235c83a4a (bug 1094252) for e10s browser_locationBarExternalLoad.js failures.
CLOSED TREE
2015-03-30 11:30:25 -04:00
Nicolas Silva
fb80d223a4 Bug 1145981 - Do not crash when a DIB texture is updated without a compositor. r=jrmuizel 2015-03-27 11:16:27 +01:00
James Graham
465c777f0d Bug 1135107 - Update web-platform-tests expected data, rs=Ms2ger
This is a relatively big change because the upstream changes slightly
affected the ini file format (changing the escaping), so the metadata files
were rebuilt from scratch.
2015-03-30 16:18:54 +01:00
James Graham
da28d45b70 Bug 1135107 - Enable pointer events for pointer events tests, a=testonly 2015-03-30 16:18:53 +01:00
James Graham
edc62bfd00 Bug 1135107 - Update to version of wptrunner that allows prefs to be set, r=Ms2ger, ahal 2015-03-30 16:18:52 +01:00
Mason Chang
35e93926a6 Bug 1147953. Fix vsync adjustment time to allow negative timestamps. r=jrmuizel 2015-03-30 08:16:11 -07:00
Andrew Halberstadt
9826fc6cd8 Bug 1142050 - Add --chunk-by-runtime option to mochitest, r=jmaher
With --chunk-by-runtime enabled, test runtime data collected from automation is used to try and make all chunks take the same amount of time. So far only data for mochitest browser-chrome is added.
2015-03-26 15:21:45 -04:00
Andrew Halberstadt
f7cfc93e00 Bug 1142050 - Add buildprops platform and buildtype guess to mozinfo.py, r=ted 2015-03-13 11:09:47 -04:00
Ehsan Akhgari
f7e38de5f0 Bug 1147699 follow-up: Disable the plugin test on Mulet
Landed on a CLOSED TREE in order to fix the test bustage.
2015-03-30 10:41:06 -04:00
Sotaro Ikeda
7c19b1319e Bug 1143620 - Fix OutWindowOpened flag r=kanru 2015-03-30 07:00:42 -07:00
Marco Zehe
3d03214c5e Bug 1149118 - Expose radio group with the correct role on OS X, r=surkov 2015-03-30 15:37:09 +02:00
Jan de Mooij
ce9561ebc3 Bug 1148880 - Make Trampoline-arm.cpp compile with Clang again. r=nbp 2015-03-30 15:29:29 +02:00
Carsten "Tomcat" Book
2e988b6686 Backed out changeset bf22c9e5c5a3 (bug 1094764) for crashtest failures on a CLOSED TREE 2015-03-30 15:14:09 +02:00
Carsten "Tomcat" Book
401ed9969f Backed out changeset 513192eb7df4 (bug 1148971) for causing bc2 memory leaks 2015-03-30 15:04:09 +02:00
Carsten "Tomcat" Book
c9a6e1a8e0 Backed out changeset 9ac36968bff2 (bug 1149035) 2015-03-30 15:03:30 +02:00
Carsten "Tomcat" Book
ada1ac6461 Backed out changeset e507145a198c (bug 1149037) 2015-03-30 15:03:25 +02:00
Carsten "Tomcat" Book
84d92cdc91 Backed out changeset 9534a3d38191 (bug 1149041) 2015-03-30 15:03:19 +02:00
Neil Deakin
4443a81472 Bug 1094252, [e10s] re-enable location bar command tests, r=gijs 2015-03-30 08:53:44 -04:00
Neil Deakin
29ed098f9e Bug 1117586, [e10s] select dropdowns cannot be opened with the keyboard, r=roc 2015-03-30 08:53:44 -04:00
Ehsan Akhgari
8c31f6b805 Bug 1147699 - Part 14: Add a test for FetchEvent.request.context when intercepting loads coming from plugins; r=nsm 2015-03-30 08:42:53 -04:00
Ehsan Akhgari
c0909b1151 Bug 1147699 - Part 13: Add a test for FetchEvent.request.context when intercepting ping loads; r=nsm
This test is temporarily disabled until bug 1148064 gets fixed.
2015-03-30 08:42:51 -04:00
Ehsan Akhgari
969e778490 Bug 1147699 - Part 12: Add a test for FetchEvent.request.context when intercepting new window loads; r=nsm 2015-03-30 08:42:49 -04:00
Ehsan Akhgari
ecee2f6045 Bug 1147699 - Part 11: Add tests for FetchEvent.request.context when intercepting iframes and frames; r=nsm 2015-03-30 08:42:47 -04:00
Ehsan Akhgari
726b0f9c0d Bug 1147699 - Part 10: Add a test for FetchEvent.request.context when intercepting font loads; r=nsm 2015-03-30 08:42:46 -04:00
Ehsan Akhgari
cd383a0eb0 Bug 1147699 - Part 9: Add tests for FetchEvent.request.context when intercepting embeds and objects; r=nsm 2015-03-30 08:42:45 -04:00
Ehsan Akhgari
067494ecc7 Bug 1147699 - Part 8: Add a test for FetchEvent.request.context when intercepting a CSP report; r=nsm 2015-03-30 08:42:43 -04:00
Ehsan Akhgari
fd9023f7df Bug 1147699 - Part 7: Add a test for FetchEvent.request.context when intercepting a beacon load; r=nsm 2015-03-30 08:42:41 -04:00
Ehsan Akhgari
9d81301a88 Bug 1147699 - Part 6: Add a test for FetchEvent.request.context when intercepting a video element load; r=nsm
Note that currently our implementation incorrectly reflects this as
'audio'.  This will be fixed later.
2015-03-30 08:42:39 -04:00
Ehsan Akhgari
2ef028d2d9 Bug 1147699 - Part 5: Add a test for FetchEvent.request.context when intercepting an audio element load; r=nsm 2015-03-30 08:42:37 -04:00
Ehsan Akhgari
0ebb42b9bf Bug 1147699 - Part 4: Add a test for FetchEvent.request.context when intercepting a responsive image load; r=nsm 2015-03-30 08:42:35 -04:00
Ehsan Akhgari
a5a50019ed Bug 1147699 - Part 3: Add a test for FetchEvent.request.context when intercepting an image load; r=nsm,bzbarsky 2015-03-30 08:42:34 -04:00
Ehsan Akhgari
d4bff7230c Bug 1147699 - Part 2: Set the content policy type on FetchEvent.request based on the content policy type of the channel; r=nsm
Note that InternalRequest::SetContentPolicyType takes care of updating the
RequestContext value stored in InternalRequest too.
2015-03-30 08:42:33 -04:00
Ehsan Akhgari
cd8bb1e29a Bug 1147699 - Part 1: Move Request::mContext to InternalRequest, and determine the mapping to nsContentPolicyType; r=nsm
As the documentation in InternalRequest.h in this patch shows, the
mapping between nsContentPolicyType and RequestContext is not complete
yet.  Because the InternalRequest object needs to know the actual
nsContentPolicyType in order for FetchDriver to be able to use that
information, we can't just store the RequestContext.  Therefore, this
patch adds both of these to InternalRequest.  Once we get to a stage
where we have a complete mapping of these values, we can store only one
of them and compute the other from it.  That requires addressing all of
the TODO comments in the InternalRequest.h documentation.
2015-03-30 08:42:31 -04:00
Jon Coppeard
8c949bf377 Bug 1146696 - Fix test failures on windows cgc builds r=me 2015-03-30 13:32:31 +01:00
Paul Adenot
330db9920a 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
Eddy Bruël
2d96528d53 Bug 1092102 - Implement WorkerDebuggerGlobalScope.setImmediate;r=khuey 2015-03-30 13:54:38 +02:00
Ted Mielczarek
be20b072fd bug 1147490 - fix GLContextProviderNull. r=benwa 2015-01-28 15:10:23 -05:00
Ted Mielczarek
6fb69c3e66 bug 1085557 - Add Socorro symbol upload token file to mac and windows mozconfigs. r=coop 2015-02-27 08:58:57 -05:00
Nicolas Silva
827a9d96f1 Bug 1014355 - Init X with thread-safe mode in child processes. r=karlt 2015-03-30 13:30:36 +02:00
Mats Palmgren
bea9838586 Bug 1149041 - Make nsIWidget::SizeConstraints use LayoutDeviceIntSize instead of unit-less nsIntSize. r=roc 2015-03-30 10:37:34 +00:00