Граф коммитов

40946 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 50e851b877 Bug 830801 - Part 2. Remove NOMINMAX define from moz.build. r=mshal 2015-08-03 10:07:09 +09:00
Bill McCloskey 19b86227d6 Bug 1189550 - In parent process, cpmm.initialProcessData should be same as ppmm.initialProcessData (r=smaug) 2015-08-02 17:29:55 -07:00
Thomas Zimmermann eb8fc500c5 Bug 1173802: Store global NFC service in ref-counted variable, r=allstars.chh
|ClearOnShutdown| deletes pointers by assigning |nullptr|. This
patch converts |gNfcService| to a smart pointer, so that cleaning
its value during shutdown will actually destruct the instance.
2015-07-31 10:07:25 +02:00
Thomas Zimmermann d79778ce4e Bug 1173802: Replace |assertIsNfcServiceThread| with thread-safe checks, r=allstars.chh
The main thread writes the NFC thread's field in the NFC service
instance, but the function |assertIsNfcServiceThread| uses this
value on the NFC worker thread itself. Also clearing this value
happens on main, while the NFC thread still executes code. Calls
to |assertIsNfcServiceThread| can therefore fail if they occur
during an NFC shutdown.

This patch replaces the unsafe and racy |assertIsNfcServiceThread|
with the much simpler |NfcConsumer::IsNfcServiceThread|. The new
method tests the current thread against a thread pointer that has
been stored in |NfcConsumer|.
2015-07-31 10:07:25 +02:00
Thomas Zimmermann 7faf0f34f9 Bug 1173802: Clean up |NfcEventDispatcher|, r=allstars.chh
This patch moves |NfcEventDispatcher| to the namespace of |NfcConsumer|
and renames it to |DispatchNfcEventRunnable|. The NFC service is stored
in the runnable itself.
2015-07-31 10:07:25 +02:00
Thomas Zimmermann eb9063da67 Bug 1173802: Run |NfcConsumer| on NFC thread, r=allstars.chh
This patch moves NFC thread onto the NFC service thread by applying
the following changes:

 * The methods |Start| and |Shutdown| now send runnables to the NFC
   thread that start or stop an NFC consumer. After shutting down a
   cleanu-up runnable frees all resources on the main thread.

 * Received messages are forwarded directly from the I/O thread to
   the NFC thread and unpacked there. There's no intermediate hop
   over the main thread any more.

 * Similarly to receiving, packed massages are forwarded directly
   from the NFC thread to the I/O thread. No intermediate hop over
   main is required.

 * On connection errors, |NfcConsumer| sends a runnable to the main
   thread to shutdown NFC.
2015-07-31 10:07:25 +02:00
Thomas Zimmermann 4936d29059 Bug 1173802: Move NFC socket and messaging code into |NfcConsumer|, r=allstars.chh
|NfcConsumer| will encapsulates all NFC socket and messaging code. It
wil be able to run solely on the NFC worker thread.
2015-07-31 10:07:25 +02:00
Kan-Ru Chen 37be5dc5be Bug 1188639 - Fix typo in BrowserElement.webidl and add tests for it. r=yoshi,bz 2015-08-03 10:56:03 +08:00
Ryan VanderMeulen 7dc3f4954e Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-31 15:05:02 -04:00
Ryan VanderMeulen 6c087cd301 Backed out changeset 8010e0cbd228 (bug 1177871) for Windows debug test_geolocation_provider_timeout.js crashes.
CLOSED TREE

--HG--
extra : amend_source : 6f3589ee0d2a0f18438a69c9f1389ae3ee3b8933
extra : histedit_source : ace16abe5f6c53ba91085d15d4c858dd20b2894e
2015-07-31 15:00:12 -04:00
Carsten "Tomcat" Book 0141a51d55 Merge mozilla-central to mozilla-inbound 2015-08-04 13:35:10 +02:00
Kelly Davis 60e71b20d8 Bug 1187791 - Part 1 of 1 - SpeechRecognition::maxAlternatives can't throw; so, rm webidl throws specifier. r=smaug
--HG--
extra : rebase_source : c0879a3ce21fbeb701aaa18c3ab82110cc53bce7
2015-08-04 00:39:00 +02:00
JW Wang d1c5eb9e63 Bug 1189204 - activate autoplay when playing a media source. r=jya. 2015-08-04 11:17:03 +08:00
Makoto Kato 6da3448139 Bug 1190240 - Cannot compile WMFVideoMFTManager.cpp using Windows 10 SDK. r=cpearce 2015-08-04 16:03:50 +09:00
Nicholas Nethercote d98d14fa1e Bug 1189156 (part 4) - Don't use enumeration style for nsBaseHashtable::SizeOf{In,Ex}cludingThis(). r=erahm,jfkthame.
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)

--HG--
extra : rebase_source : f98420176f50990bbc5a25e35788328154cfeb00
2015-07-30 21:19:57 -07:00
Karl Tomlinson 66f210c5b0 bug 1188704 remove now unused PerformInverseFFT() variation r=rillian
--HG--
extra : rebase_source : 13b3cfce3054fce463d0e2407bd48e343952830e
2015-07-30 12:51:48 +12:00
Karl Tomlinson a4757ceda3 bug 1188704 use existing FFTBlock arrays instead of allocating and copying and scaling r=rillian
It is now no longer necessary to clear zero bins because these are zeroed
in the FFTBlock constructor.

nsTArray bounds assertions now apply.

--HG--
extra : rebase_source : 18c07ecb51f9cb3c199536fe59110093db2295d4
2015-08-03 09:28:32 +12:00
Karl Tomlinson e8e61ee28e bug 1188704 add accessor functions for setting frequency components for inverse FFT r=rillian
--HG--
extra : rebase_source : cfd4b300d5437793dc60f4e0630fa393cc234b9d
2015-07-30 12:33:04 +12:00
Karl Tomlinson d149f45532 bug 1189168 avoid main thread assertion accessing mNode in SizeOfIncludingThis() r=padenot
because the main thread is blocked during the call.

--HG--
extra : rebase_source : 5ab42bd4d8a14e66e34781456ad11c6b48dc6227
2015-07-31 12:49:07 +12:00
Honza Bambas d2501443bc Bug 1192194 - Make DOMStorageDBThead::mDBReady atomic. r=smaug
--HG--
extra : rebase_source : d4a9c888ef83efcfddf58c8e447f0f4b440a0c6a
2015-08-07 05:00:00 -04:00
Andrea Marchesini f7220514cc Bug 1186307 - part 2 - Compilation failures fixed, CLOSED TREE 2015-08-10 17:28:43 +01:00
Nicholas Nethercote 1059c1de13 Bug 1189156 (part 2) - Don't use enumeration style for nsTHashtable::SizeOf{In,Ex}cludingThis(). r=erahm.
After this change, we have ShallowSizeOf{In,Ex}cludingThis(), which don't do
anything to measure children. (They can be combined with iteration to measure
children.)

And we still have the existing single-arg SizeOf{In,Ex}cluding() functions,
which work if the entry type itself defines SizeOfExcludingThis().

--HG--
extra : rebase_source : f93de9b789c21b1b148bed9de795f663f77c9dd9
2015-07-29 01:50:52 -07:00
Chris Pearce 6e943ecdb3 Bug 1190252 - Remove use of std::ifstream in GMPChild.cpp. r=edwin 2015-08-04 16:06:50 +12:00
Chris Pearce 65798c933d Bug 1190252 - Remove std::string from GMPChild and friends. r=edwin 2015-08-04 16:06:32 +12:00
Kan-Ru Chen c39f43550c Bug 1190245 - Make frame script loading and browser-api initialization easier to follow. r=smaug
Load frame script and initialize browser-api at the end of (1) DocShell
creation (2) RemoteBrowser creation (3) SetRemoteBrowser
2015-08-04 11:10:50 +08:00
Kan-Ru Chen 309aa3cc1d Bug 1190245 - Make the MaybeCreateDocShell using code path easier to follow. r=smaug
Don't rely on MaybeCreateDocShell to set mRemoteFrame so we don't have
to call MaybeCreateDocShell in weird places. Instead we set mRemoteFrame
early in the nsFrameLoader constructor. This should still allow us to
switch default remoteness dynamically.
2015-08-04 11:10:50 +08:00
Kan-Ru Chen e547fb4623 Bug 1190245 - Separate mMessageManager creation and FrameScript loading. r=smaug 2015-08-04 11:10:49 +08:00
Wes Kocher b822a1fdfc Backed out 6 changesets (bug 1061525) for mochitest-2 failures in test_BufferedSeek_mp4.html CLOSED TREE
Backed out changeset 5e90b9dab7fa (bug 1061525)
Backed out changeset ef5ce3d6412a (bug 1061525)
Backed out changeset 19c8682665a6 (bug 1061525)
Backed out changeset b48d13edb48d (bug 1061525)
Backed out changeset fae6602192a7 (bug 1061525)
Backed out changeset 5dfbd6e73c7a (bug 1061525)
2015-08-03 19:53:33 -07:00
Nikhil Marathe 7fe3f37d58 Bug 1190478 - Hide PushEvent.data until we ship message encryption. r=mt,jst
--HG--
extra : commitid : 6i4eexsw50U
extra : rebase_source : 9147a2f5e3996d104ff40e32da3e82ca1cc3917d
2015-08-03 11:04:41 -07:00
Dan Glastonbury b1722601bf Bug 1170845 - Remove WebGL2() exclusion on instanced draw divisor check. r=jgilbert 2015-08-04 10:28:13 +10:00
Karl Tomlinson a6f86056b9 bug 1190285 only update mStateComputedTime once per iteration r=padenot
UpdateStateComputedTime(GraphTime aStateComputedTime) occurs midway during
the iteration, so there is no need to update at the end.

--HG--
extra : rebase_source : 82a5fb08596d16ea1926725149b2688cfdf585ec
2015-07-29 16:58:59 +12:00
Steven Englehardt 9d4063da89 Bug 1179557 - Add userContextId to originAttributes with tests. r=bholley, r=tanvi
--HG--
extra : histedit_source : 4d033ad9aef7b71c7ebbbe77242c94e9b8e94f0c
2015-07-28 17:32:00 -04:00
Ryan VanderMeulen 1b8b39ab09 Bug 909925 - Re-enable previously-disabled WebRTC crashtests on Android/B2G. 2015-07-31 14:44:37 -04:00
Brian R. Bondy 8b7c257d54 Bug 1188487 - Tests for BrowserElement mute / set volume. r=fabrice 2015-07-31 13:21:25 -04:00
Brian R. Bondy a5d6ef7cd4 Bug 1188487 - BrowserElement webidl changes for muting and setting volume. r=ehsan 2015-07-31 13:21:22 -04:00
Brian R. Bondy b96697e95d Bug 1188487 - Add API to BrowserElement to mute and set volume. r=fabrice
It's already possible to get mute/volume at the audio channel level, but
this adds it at the iframe level so that audio channels can be created
and destroyed and the setting will be preserved.
2015-07-31 13:21:18 -04:00
Boris Zbarsky dba569f117 Bug 983301 part 2. Change Promise to not be distinguishable from any other type. r=peterv 2015-07-31 13:30:55 -04:00
Boris Zbarsky 78b27415bc Bug 983301 part 1. Handle JS-to-native conversion for Promise values via calling Promise::Resolve on whatever value was passed in (except if the type is nullable and the passed-in value is null or undefined). r=peterv 2015-07-31 13:30:55 -04:00
Boris Zbarsky 57621e1167 Bug 1135961. Implement subclassing of DOM objects. r=peterv 2015-07-31 13:30:55 -04:00
Christoph Kerschbaumer f75b477899 Bug 1182539 - Use channel->ascynOpen2 in dom/base/nsDocument.cpp (r=sicking) 2015-07-31 08:58:14 -07:00
Kartikaya Gupta 223bdc4578 Bug 1187056 - Dispatch the meta tag mutation events sooner so that any meta-viewport changes can be processed before scripts continue running. r=smaug 2015-07-31 13:08:40 -04:00
Kyle Huey 8f1d6bf154 Bug 1152574: Fix console service discarding to run when it is actually safe to do so (off of inner-window-destroyed). Also add a backstop at xpcom-shutdown to discard any cycle collected messages before it is too late. r=froydnj
--HG--
extra : rebase_source : 689ed129fd8df604385dde4fe9d9477f14f2fced
2015-07-31 06:49:27 -07:00
Kit Cambridge 1afb67d0c5 Bug 1189543 - `pushManager.getSubscription()` should return `null` for nonexistent push subscriptions in workers. r=nsm
--HG--
extra : commitid : zVDx1cN50P
extra : rebase_source : 7a3be47ab508b092f083a6452239ac77839395fc
2015-07-30 15:31:48 -07:00
Aidin Gharibnavaz 3909a2ab43 Bug 1177871 - Timeout added to XHR request of WifiGeoPositionProvider. r=jdm
CLOSED TREE

--HG--
extra : histedit_source : a64c486ecc50ac086f1e47dc5a5660690e93d300
2015-07-30 07:01:00 -04:00
Hiroyuki Ikezoe 5a1cc68844 Bug 1189162 - Clamp gamepad.timestamp and VideoPlaybackQuality.creationTime. r=bz 2015-07-30 01:41:00 -04:00
Carsten "Tomcat" Book 7005e3bf85 Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2015-07-31 13:50:49 +02:00
Carsten "Tomcat" Book 7b02077e1e merge mozilla-inbound to mozilla-central a=merge 2015-07-31 12:06:51 +02:00
Wes Kocher fde3090001 Backed out changeset b9cc2c3f8bda (bug 1187247) because the patch this depends on was backed out a=backout 2015-07-30 15:23:55 -07:00
Ryan VanderMeulen 7c486ed4c2 Merge inbound to m-c. a=merge 2015-07-30 16:08:21 -04:00
Ryan VanderMeulen 6153d67abe Merge m-c to b2g-inbound. a=merge
CLOSED TREE
2015-07-30 11:57:28 -04:00
Ryan VanderMeulen bbe2cb322a Merge m-c to inbound. a=merge
CLOSED TREE
2015-07-30 11:56:41 -04:00
Marcos Caceres 2465cf3a99 Bug 1171200 - Add means of checking if a document links to a manifest. r=billm
--HG--
rename : dom/manifest/ImageObjectProcessor.js => dom/manifest/ImageObjectProcessor.jsm
rename : dom/manifest/ManifestProcessor.js => dom/manifest/ManifestProcessor.jsm
rename : dom/manifest/ValueExtractor.js => dom/manifest/ValueExtractor.jsm
2015-07-30 11:56:12 -04:00
JW Wang 17e42272cd Bug 1187817. Part 5 - assert some code in the audio thread and don't enter the monitor. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang 83eef13c75 Bug 1187817. Part 4 - move some code in Shutdown to the audio thread. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang df5724be40 Bug 1187817. Part 3 - move SetPlaying to the audio thread. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang 596da6e541 Bug 1187817. Part 2 - remove unused code. r=kinetik. 2015-07-31 13:26:06 +08:00
JW Wang d247b81f2b Bug 1187817. Part 1 - Move Set{Volume,PlaybackRate,PreservesPitch} to the audio thread. r=kinetik. 2015-07-31 13:26:06 +08:00
Michal Novotny 37d2e845d7 Bug 1137008 - Implement missing parameters of WebSocket permessage compression extension - test, r=jduell 2015-07-31 07:16:30 +02:00
Carsten "Tomcat" Book c1a0be69de Backed out changeset a093b996bafa (bug 1184867) for causing crashes @ mozilla::MediaSourceTrackDemuxer on a CLOSED TREE 2015-07-30 15:49:06 +02:00
Carsten "Tomcat" Book 516119753f Backed out changeset 4624de03e2e5 (bug 1184867) 2015-07-30 15:47:58 +02:00
Carsten "Tomcat" Book 9e504b2779 Backed out changeset 8b17cd283110 (bug 1184867) 2015-07-30 15:47:55 +02:00
Carsten "Tomcat" Book 401a15426c Backed out changeset 4b328a6f7448 (bug 1171200) for frequent asan m1 test failures on a CLOSED TREE
--HG--
rename : dom/manifest/ImageObjectProcessor.jsm => dom/manifest/ImageObjectProcessor.js
rename : dom/manifest/ManifestProcessor.jsm => dom/manifest/ManifestProcessor.js
rename : dom/manifest/ValueExtractor.jsm => dom/manifest/ValueExtractor.js
extra : amend_source : 0a9fc98e1c76d4ede43714bac63bba8b43efe5d7
2015-07-30 15:11:48 +02:00
Carsten "Tomcat" Book fe4a43c830 merge mozilla-inbound to mozilla-central a=merge 2015-07-30 15:07:27 +02:00
Ehsan Akhgari aeacbc159a Bug 1188062 - Unship Request.context; r=baku 2015-07-30 08:14:00 -04:00
Jean-Yves Avenard ceccac91fe Bug 1183196: [MSE] P3. Slightly increase debugging information. r=kentuckyfriedtakahe
Print the atom's offset, makes it easier to verify that byte ranges are properly calculated.
2015-07-30 20:42:45 +10:00
Jean-Yves Avenard fa6675ed02 Bug 1189138: [MSE] P3. Properly shift our demuxing index when data is added. r=gerald
Should frames be added before our current demuxing position, we must shift the index ; otherwise the next retrieved frames will be the wrong one.
2015-07-30 20:42:44 +10:00
Ehsan Akhgari 547404788d Bug 1188091 - Fix the exposure of Push interfaces; r=dougt,bzbarsky,nsm
Currently we don't check the dom.push.enabled pref in some cases for
some of these interfaces.  This patch unifies how all of these
interfaces are exposed to Window, Worker, and ServiceWorker.
2015-07-30 01:06:38 -04:00
Ehsan Akhgari f138803ae9 Bug 1189090 - Rework the nsISupports implementation in the ScopeCheckingGetCallback and its subclasses; r=nsm 2015-07-30 01:05:04 -04:00
Szu-Yu Chen [:aknow] ff6fc91fff Bug 1185156 - Fix bug in resuming held call. r=hsinyi 2015-07-30 11:36:27 +08:00
Wes Kocher 1ca8b1de87 Merge b2ginbound to central, a=merge 2015-07-29 20:19:12 -07:00
Alfredo Yang 1885ed42a2 Bug 1189173 - Drop frames aggressively during internal seek. r=jya
--HG--
extra : rebase_source : 2db2cf4908c764df2273a0c6f2fb572a6310b0e8
2015-07-30 00:53:00 +02:00
Hiroyuki Ikezoe 5119cec74f Bug 1178664 - Part 4 -Implement Animation.oncancel event. r=bbirtles, r=smaug
--HG--
extra : rebase_source : 2885fc984f652ecd086b9ec4f9b57190375c965c
2015-07-30 23:26:00 +02:00
Hiroyuki Ikezoe 189c64b196 Bug 1178664 - Part 3 - Implement Animation.onfinish event. r=bbirtles, r=smaug
--HG--
extra : rebase_source : d78f3a6d58f26a46dfdd726f30590bc8a4e9137d
2015-07-30 23:25:00 +02:00
Lee Salzman 78e926867a Bug 1188195 - always initialize WebGL2 BlitFramebuffer src/dst formats to some value. r=jgilbert
--HG--
extra : rebase_source : f2cdb083aa3d7f4cef565320bd1c46c5fb37df3f
2015-07-29 15:51:14 -04:00
Jean-Yves Avenard ec9948fb89 Bug 1189588: [MSE] Remove MediaSourceDemuxer::NotifyTimeRangesChanged. r=cpearce
This was an optimisation added to prevent recalculating our buffered ranges unnecessarily, but it became totally unnecessary with bug 1174981.
Additionally, it appears that there's a race in its use ; which I can't identify.
2015-07-31 14:26:17 +10:00
Nicholas Nethercote 2d56c1f52e Bug 1189156 (part 1) - Don't use enumeration style for PLDHashTable::SizeOf{In,Ex}cludingThis(). r=froydnj.
After this change, we have PLDHashTable::ShallowSizeOf{In,Ex}cludingThis(),
which don't do anything to measure children. (They can be combined with
iteration to measure children.)

This patch also removes the PL_DHashTableSizeOf{In,Ex}cludingThis() functions.
They're not necessary because the methods can be used instead.

Finally, the patch deliberately converts some SizeOfExcludingThis() calls to
SizeOfIncludingThis(). These are all done on heap pointers so this change is
valid.

--HG--
extra : rebase_source : b1d51096a8e7dcac29d7efd92e28938836ff5481
2015-07-29 22:28:20 -07:00
Brian Birtles 7f5b0ef0cf Bug 1171966 - Update SMIL animation styles only when there are pending changes; r=dholbert
Bug 960465 (specifically part 6, changeset 7d16f2fd8329) changed the way we
process animation-only style changes. This caused us to update SMIL animations
more often than is needed.

This patch adjusts this behavior to update the style from SMIL animations less
frequently by tracking when animated values have been composited without adding
the corresponding changes to a restyle tracker.
2015-07-31 13:14:46 +09:00
Andrea Marchesini d0d22b2a08 Bug 1188265 - No manual JS_ClearPendingException when StructuredCloneHelper is used, r=smaug 2015-07-31 01:38:00 +01:00
Eitan Isaacson f8946263f5 Bug 1187105 - Pause speechsynthesis on empty queue. r=smaug 2015-07-30 16:04:25 -07:00
Jessica Jong 11d3d9a5a3 Bug 1167132 - Part 15: [NetworkManager] Move network information into a separate interface (NetworkInterfaceList). r=echen 2015-07-29 02:16:00 -04:00
Jessica Jong 85c1bca780 Bug 1167132 - Part 14: [NetworkManager] Move network information into a separate interface (NetStats). r=ethan 2015-07-29 02:15:00 -04:00
Jessica Jong c0320e5ec5 Bug 1167132 - Part 11: [NetworkManager] Move network information into a separate interface (Gps). r=kanru 2015-07-29 02:12:00 -04:00
Jessica Jong f5fb1d9afa Bug 1167132 - Part 10: [NetworkManager] Move network information into a separate interface (PushService). r=nsm 2015-07-29 02:11:00 -04:00
Jessica Jong c0a47c3957 Bug 1167132 - Part 8: [NetworkManager] Move network information into a separate interface (Mms). r=btseng 2015-07-29 02:10:00 -04:00
Wes Kocher 98e5242831 Backed out changeset 2bdaed564656 (bug 1125961) for b2g emulator mochitest-21 failures starting in test_fetch_event_client_postmessage.html 2015-07-30 14:53:38 -07:00
Karl Tomlinson 6ca6918802 bug 1188704 combine scaling with copying r=rillian
--HG--
extra : rebase_source : f30aed44b66cca842a752a207ab9536e3cb395b2
2015-07-28 15:58:06 +12:00
Dan Glastonbury 72a8e61619 Bug 1184402 - Part 4: Use WebGLFormat for validation in RenderbufferStorage_base. r=jgilbert 2015-07-30 13:33:39 +10:00
Dan Glastonbury 2ff8750146 Bug 1184402 - Part 3: Add WebGL1 formats when enabling extensions. r=jgilbert 2015-07-30 13:33:38 +10:00
Dan Glastonbury 7a704c1521 Bug 1184402 - Part 2: Added luminance float effective formats 2015-07-30 13:33:37 +10:00
Dan Glastonbury 26afc943c1 Bug 1184402 - Part 1: Rename GetInfo() to GetUsage() for obtaining FormatUsageInfo. r=jgilbert 2015-07-30 13:33:36 +10:00
Wes Kocher 68bcb02c04 Merge m-c to inbound, a=merge 2015-07-29 20:20:59 -07:00
Olli Pettay b78fe270e6 Bug 1188640 - Add ChromeOnly MutationObserver.mergeAttributeRecords to speed up devtools, r=bz,bgrins
--HG--
extra : rebase_source : 67b74d33304dde9290bfef73c85885be03e14a7a
2015-07-30 00:23:47 +03:00
Wes Kocher eababa399f Bug 1150944 - Fix typo on a CLOSED TREE 2015-07-29 15:53:40 -07:00
Matt Woodrow 5f50822601 Bug 1150944 - Fix windows build bustage. CLOSED TREE 2015-07-29 18:08:07 -04:00
Karl Tomlinson 893dc9cca8 bug 1188704 simplify culling of partials r=rillian
avoiding copying and scaling components that will be zeroed.

--HG--
extra : rebase_source : a649e78254296945d89f5e03dc75e6af753e56b4
2015-07-28 08:37:21 +12:00
Karl Tomlinson a4daa97373 bug 1188704 limit number of Fourier coefficients used to halfSize earlier r=rillian
realP[halfSize] was always set to zero because numberOfPartials < halfSize + 1
was always true.

--HG--
extra : rebase_source : 819b04a56032d810231a16fa0dd139cf82ef8ddf
2015-07-30 10:08:15 +12:00
Ehsan Akhgari 51c93c7eea Bug 1192252 - Add a helper RAII class for managing the cleanup in nsFrameLoader::SwapWithOtherLoader; r=smaug 2015-08-07 12:36:57 -04:00
Ehsan Akhgari 4db099dbd2 Bug 1191491 - Do not dispatch an audio-playback notification when swapping browsers; r=smaug
We send a pagehide event during swapping docshell frame loaders, and
before this patch we would not be able to differentiate this event with
the one that we send when navigating away from a page, so we would
incorrectly dispatch an audio-playback notification indicating that
audio playback has stopped.  This patch adds a flag to the root docshell
when the frame loader swapping is in progress and disables the above
behavior when that flag is set.
2015-08-07 12:18:24 -04:00
Jean-Yves Avenard fce87bada5 Bug 1141139: Enable low latency decoding on Windows. r=cpearce 2015-08-07 23:12:01 +10:00
Jean-Yves Avenard 3a47f38c9e Bug 1191142: [MSE] P2. Round removed buffered intervals. r=gerald
Calculating intersections between two interval sets with different fuzz can lead to useless tiny intervals which could cause CheckNextInsertionIndex to fail.
2015-08-07 23:12:00 +10:00
Jean-Yves Avenard 875b5b12be Bug 1191142: [MSE] P1. Don't discard data if we can't detect type. r=gerald 2015-08-07 23:12:00 +10:00
Jean-Yves Avenard aa36da29fe Bug 1192097: [MSE] P3. Add logging for when insertion index is reset. r=gerald 2015-08-07 23:12:00 +10:00
Jean-Yves Avenard 7c0c6f9e9b Bug 1192097: [MSE] P2. Abort current operation when mediasource is detached. r=gerald
Should a playback error occurs, the MediaSource element will be closed and will detach its sourcebuffers. Cancel any pending operations going in the sourcebuffers.
2015-08-07 23:11:59 +10:00
Jean-Yves Avenard 3ce206b23e Bug 1192097: [MSE] P1. Error when we detect invalid/incoherent data. r=gerald
Additionally, prevent assert due to incorrectly creating MozPromise (aka MediaPromise)
2015-08-07 23:11:59 +10:00
Carsten "Tomcat" Book f9d9368a83 Backed out changeset b9c50a97ee3e (bug 1182946) for m3 mulet test failures in test_SeekableAfterEndOfStreamSplit.html on a CLOSED TREE 2015-08-07 14:57:25 +02:00
Jan Gerber bf5e1cfc83 Bug 1190379: Use AndroidDecoderModule for VP8/9. r=jya 2015-08-07 21:48:01 +10:00
Jan Gerber 8da0ca76c8 Bug 1182946: [MSE] Re-enable webm mediasource tests. r=jya,r=karlt 2015-08-07 21:44:10 +10:00
Carsten "Tomcat" Book a82b036146 Merge mozilla-central to mozilla-inbound 2015-08-07 13:18:35 +02:00
Jan Gerber dff9f9bff0 Bug 1185792: [webm] P2. AndroidDecoderModule requires API 16 or later. r=snorp 2015-08-07 19:31:42 +10:00
Jan Gerber 833434e663 Bug 1185792: [webm] P1. Make MediaInfo.mFrame nsIntRect for visible area. r=jya 2015-08-07 19:31:38 +10:00
Jan-Ivar Bruaroey c84f148731 Bug 1189030 - Add pref "media.peerconnection.ice.relay_only" (default=false). r=jesup
--HG--
extra : transplant_source : 1%D5%AC%F1%FA%EB%0B%C2%90%8A%83DtVz-L%2C%CC%14
2015-07-30 10:48:27 -04:00
Benjamin Chen 30220220b3 Bug 1070110 - Ensure the testcase will receive at least 2 blob. r=jwwang 2015-08-06 15:25:37 +08:00
Jan-Ivar Bruaroey 8e674f7ed3 Bug 1187775 - skip host and reflexive ICE candidates if relay-only. r=bwc
--HG--
extra : transplant_source : d%FBJ%BB%8B%BA%C8S%EE%C8%EB%8E%C3%9B%E9wA%8A%A8%86
2015-08-05 08:22:55 -04:00
Jan-Ivar Bruaroey 3a173c04fa Bug 1187775 - Plumb RTCConfiguration.iceTransportPolicy down to NrIceCtx. r=smaug, r=bwc
--HG--
extra : transplant_source : %8D%E4%F6%CCY%D4M%9E8%21%2A%13Wz%88%D4d%02v4
2015-07-30 10:11:52 -04:00
Sean Lin b7aa8f88e2 Bug 1140275 - System messages shouldn't be sent to app pages not registered in manifests. r=fabrice
--HG--
extra : rebase_source : 37a8736aba727b0ace601fd9e5bcd78c97b69bc8
2015-08-03 01:05:00 +02:00
Bob Owen e00cc89ee9 Bug 1185529: On Windows, ensure that NPAPI child window has the correct parent before setwindow is called. r=jimm 2015-08-07 08:48:16 +01:00
JW Wang 1eeb02fdc2 Bug 1191171 - Add SetVolume() to DecodedStream. r=roc. 2015-08-07 10:29:31 +08:00
Karl Tomlinson 0ffb72d8eb bug 1188704 trim unnecessary extra basic waveform coeffient r=rillian
The built-in waveforms are all odd and so realP[halfSize] was zero, and it
would have been ignored in createBandLimitedTables even if it was non-zero.
imagP[halfSize] was ignored as it was not involved in the inverse FFT.

This returns the code to that prior to
https://hg.mozilla.org/mozilla-central/diff/5377bce3b478/content/media/webaudio/blink/PeriodicWave.cpp#l1.276

--HG--
extra : rebase_source : 1bfa9eefc7dd269a64a98cdfdd4cbf76fa207dc4
2015-07-27 23:55:06 +12:00
Karl Tomlinson 0ebb28aa85 bug 1188704 redefine halfSize as fftSize / 2 r=rillian
There are no behavior changes here, just the change in meaning of the variable.

--HG--
extra : rebase_source : 9bae9f29a27430e9074dc0337773313140af9ba2
2015-07-27 22:41:31 +12:00
David Anderson ac8c6304a9 Use the same graphics device parameters across processes. (bug 1183910 part 7, r=mattwoodrow) 2015-08-02 13:59:33 -07:00
Xidorn Quan 815ed861e5 Bug 1188322 - Always hide menubar as well as dock for fullscreen on OS X whatever the screen is. r=mstange
--HG--
extra : source : 9beba24463ba85ab0ca12d0c80786a9d7915f208
2015-08-07 13:49:12 +10:00
JW Wang 4312487e6f Bug 1192109 - Fix insufficient includes in MediaEventSource.h. r=kinetik. 2015-08-07 11:11:18 +08:00
Brian Birtles 1b304dcec6 Bug 1181392 part 10 - Remove KeyframeEffect::IsFinishedTransition; r=dbaron 2015-08-07 12:29:36 +09:00
Brian Birtles f5d2835cea Bug 1181392 part 3 - Remove use of IsFinishedTransition in KeyframeEffectReadOnly; r=dbaron
KeyframeEffectReadOnly uses IsFinishedTransition to exclude finished transitions
from certain tests. This check, however, is redundant in each case.
This is because any effect marked as IsFinishedTransition will have the
following properties:
- owning animation's PlayState() == Finished or Idle
- animation phase = after or null
- progress = null (this is because transitions don't fill forwards)
2015-08-07 12:29:35 +09:00
Brian Birtles 4561c8eda3 Bug 1181392 part 2 - Remove use of IsFinishedTransition from Animation::ComposeStyle; r=dbaron
Animation::ComposeStyle uses IsFinishedTransition to skip doing work for
transitions that have run their course. We can, however, generalize this to
cover all animations that are not currently contributing to the animated
style--that is animations that are not "in effect".

We need to add this check *after* we update aNeedsRefreshes since an animation
that is not "in effect" because it has a delay and no backwards fill (in this
case it will have a play state of "running") still needs refreshes.
2015-08-07 12:29:35 +09:00
Brian Birtles 78f8287b7d Bug 1181392 part 1 - Remove use of IsFinishedTransition from Animation::CanThrottle; r=dbaron
Previously we used IsFinishedTransition so that if the only animations present
are finished transitions we could throttle the tick. In fact, this probably
shouldn't even be necessary since we shouldn't be calling CanThrottle if
AnimationCollection::mNeedsRefreshes is false. However, so long as we're
performing this test it turns out we can generalize this further and throttle
ticks for all finished animations that are not newly finished, regardless of
whether they are running on the compositor or not (although this method won't
be called unless the animation property could be run on the compositor anyway).

This method is somewhat confusing. For one, it is not strictly limited to
animations that are running on the compositor. It appears to only return true
when the animation is running on the compositor but the mIsRunningOnCompositor
flag doesn't get cleared when the animation finishes (bug 1151694). As a result
this method also deals with animations that are now running on the main thread.
This patch makes us deal with such animations more consistently.

This patch also reworks this method so that it's hopefully a little easier to
follow and a little more consistent since I spent several hours trying to
understand the different combinations of inputs this method could take and what
question it was trying to answer.
2015-08-07 12:29:35 +09:00
Nicholas Nethercote 0a97485195 Bug 1190735 - Remove nsITimer.TYPE_REPEATING_PRECISE. r=froydnj.
--HG--
extra : rebase_source : e4424bde52b0f90adbd328071f62b89193098d34
2015-08-04 17:30:53 -07:00
JW Wang c1624b854e Bug 1191173 - Mirror MediaDecoder::mSameOriginMedia in MDSM. r=jya. 2015-08-06 18:05:30 +08:00
Jean-Yves Avenard 616e6d2dd6 Bug 1188131: Don't rely on MediaResource type to detect media format. r=cpearce
This information is often wrong and non-existent with MSE. Let the PDM decides later based on the metadata.
This prevent hardware acceleration to be turned on leading to extremely high CPU usage on high definition videos.
2015-08-07 12:19:49 +10:00
Ben Kelly c7e4c1b91c Bug 983301 Add a test for FetchEvent.respondWith(5). r=bz 2015-08-06 18:12:14 -07:00
Wes Kocher 83a7cbf448 Merge m-c to inbound, a=merge 2015-08-06 18:11:16 -07:00
David Anderson 1af4366a28 Remove the backend flag to TextureClient::CreateForDrawing. (bug 1183910 part 9, r=mattwoodrow) 2015-08-06 17:27:36 -07:00
Brian Birtles 774abfc8fe Bug 1180125 part 2 - Move AnimationCommon classes out of CSS namespace; r=dbaron
The long-term plan is to drop the mozilla::css namespace altogether. Before we
go to much further with refactoring code in AnimationCommon, we should drop
usage of the mozilla::css namespace. Specifically, this patch moves the
CommonAnimationManager and AnimValuesStyleRule classes to the mozilla namespace.
2015-07-29 10:57:39 +09:00
Brian Birtles 0d79f0c537 Bug 1180125 part 1 - Queue and dispatch CSS animation events as a separate step; r=dbaron
This patch prepares the way for script-generated events by making
event dispatch a separate process that happens after sampling animations.
This will allow us to sample animations from their associated timeline
(removing the need for a further manager to tracker script-generated
animations).

Furthermore, once we sample animations from timelines the order in which they
are sampled is likely to be more or less random so by making event dispatch at
separate step, we have an opportunity to sort the events and dispatch in
a consistent and sensible order. It also ensures that event callbacks will
not be run until all animations (including transitions) have been updated
ensuring they see a consistent view of timing properties.

This patch only affects event handling for CSS animations. Transitions will
be dealt with in a subsequent patch.
2015-07-29 10:57:39 +09:00
Christoph Kerschbaumer 5dfe6ac07d Bug 1188637 - Use channel->ascynOpen2 in dom/base/EventSource.cpp (r=sicking) 2015-08-04 20:06:19 -07:00
Christoph Kerschbaumer e5e3756c82 Bug 1182543 - Use channel->ascynOpen2 in dom/plugins/base/nsPluginHost.cpp - simplifications in instanceowner (r=sicking) 2015-08-04 20:06:03 -07:00
Christoph Kerschbaumer 221df08158 Bug 1182543 - Use channel->ascynOpen2 in dom/plugins/base/nsPluginHost.cpp (r=sicking) 2015-08-04 20:05:37 -07:00
Nikhil Marathe 84fedf8359 Bug 1190661 - Send push only to child processes when in e10s mode. r=smaug
Earlier, the in-process child process message manager and any content process
child process message managers received the push event. This is because
broadcastAsyncMessage is used, but on e10s we want ServiceWorkers to run in the
child process, so the push should only be dispatched to it. This patch
introduces a list of child process listeners in the PushService (running on the
parent). PushServiceChildPreload sends a message to the PushService iff it is
running in a child process. If there are non-zero child listeners, the
PushService will send a message to all of them, otherwise it will fall back to
broadcastAsyncMessage.

We currently do not add support for precise targeting of child processes. This
is because until Bug 1182117 is fixed, all child process ServiceWorkerManagers
maintain all the service worker registrations internally. Yes this is a bug,
but that is the way things are right now. This makes it impossible to
distinguish which child should handle the notification for a given origin.
Considering we don't ship multi-process e10s, I would like to land this right
now.

When Bug 1182117 is fixed, we can remove this code since the
ServiceWorkerManager will manage registrations in the parent, and it will know
which child process is running which ServiceWorker.

--HG--
extra : commitid : Dgfkg4LqLPK
extra : rebase_source : e64a4f1c757b05fe2939a338c1ad8d14f4015a90
2015-07-30 20:00:21 -07:00
JW Wang 9bafca0886 Bug 1187214. Part 2 - add test cases for MediaEventSource. r=kinetik. 2015-08-05 10:24:13 +08:00
Kelly Davis d6c0476fde Bug 1185235 - Implement SpeechRecognition::maxAlternatives. r=smaug 2015-07-26 23:02:00 -04:00
Matt Woodrow d2d5e5b9a3 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Matt Woodrow c666419307 Bug 1150944 - Remove objects that have been unlinked by the cycle collector from the demotable context list. r=ehsan 2015-07-29 16:35:55 -04:00
Wes Kocher ec1078c65a Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Bruce Sun bdf2608dfb Bug 1181478 - Expose BluetoothGattServer object in BluetoothAdapter. r=btian, r=mrbkap, a=me
--HG--
extra : amend_source : d12e5a977854f40855e15de393b0499c6df4356a
extra : histedit_source : 1aec0f3cc99814111843cde3e082de5ac4d31542
2015-07-24 16:32:35 +08:00
JW Wang 646d8bce1b Bug 1187214. Part 1 - Implement MediaEventSource. r=kinetik. 2015-07-24 09:03:11 +08:00
Ehsan Akhgari 778c91d13d Bug 1190082 - Rename media-playback and the related stuff to audio-playback; r=smaug
Given that we only dispatch this for audio, media-playback sounds
like a misnomer.
2015-08-04 21:07:41 -04:00
Ehsan Akhgari 672483ef08 Bug 1190023 - Ensure that muting a media element dispatches the media-playback event, and also include the muted state in computing whether a media element is actively playing audio; r=cpearce 2015-08-04 20:07:41 -04:00
Ehsan Akhgari 9e8a849881 Bug 1190040 - Do not dispatch media-playback notifications for media elements that do not have an audio track; r=baku 2015-08-04 19:38:51 -04:00
Birunthan Mohanathas 7315345693 Bug 1191100 - Remove XPIDL signature comments in .cpp files. r=ehsan
Comment-only so DONTBUILD.
2015-08-04 16:17:36 -07:00
Ehsan Akhgari f674124112 Bug 1190083 follow-up: Restore the alphabetical order, DONTBUILD 2015-08-04 18:33:29 -04:00
Ehsan Akhgari d18fe288a5 Bug 1190083 - Rename mozbrowsermediaplaybackchange to mozbrowseraudioplaybackchange; r=fabrice
--HG--
rename : dom/browser-element/mochitest/browserElement_MediaPlayback.js => dom/browser-element/mochitest/browserElement_AudioPlayback.js
rename : dom/browser-element/mochitest/test_browserElement_oop_MediaPlayback.html => dom/browser-element/mochitest/test_browserElement_inproc_AudioPlayback.html
rename : dom/browser-element/mochitest/test_browserElement_inproc_MediaPlayback.html => dom/browser-element/mochitest/test_browserElement_oop_AudioPlayback.html
2015-08-04 18:31:14 -04:00
Rithesh Shenthar 551ffaeff6 Bug 1182626 - Steeplechase_long tests need to be enhanced to run for 3 hours. r=drno
--HG--
extra : transplant_source : QgF%A0%9F%0Bd%22%18%015%C35t%DB%A5qq%24%B4
2015-07-24 14:04:03 -07:00
Kyle 8d63b8b86a Bug 1136428 - Change implementation of WebGLContext::DrawBuffers such that it goes through GLScreenBuffer to change the draw buffer. Added a variable to GLScreenBuffer to cache the draw buffer mode. r=jgilbert 2015-07-31 15:56:32 -04:00
Kyle c12f8736f7 Bug 1136428 - Create a different set and restore path of the draw buffer state in WebGLContext::ForceClearFramebufferWithDefaultValues depending on whether or not the default framebuffer is being used. r=jgilbert 2015-07-29 15:01:26 -04:00
Kyle 7cd4e122ce Bug 1136428 - Ensure we never create more than the amount supported of color attachments in WebGLFrameBuffer or try to get an attachment point higher than the supported number. r=jgilbert 2015-08-05 16:45:44 -04:00
Ryan VanderMeulen 98a48482f1 Bug 1048624 - Cleanup and refactor the media crashtest manifests and re-enable some disabled tests that now pass. 2015-08-05 08:44:14 -04:00
Aryeh Gregor 80ea0a3e53 Bug 1190823 - Move OwningNonNull.h to xpcom/base/; r=froydnj
--HG--
rename : dom/bindings/OwningNonNull.h => xpcom/base/OwningNonNull.h
2015-08-05 15:28:27 +03:00
Andre Natal 4c53ec9f8d Bug 1180113 - Add arpa model into gecko for g2p generation. r=smaug
Signed-off-by: Andre Natal <anatal@gmail.com>
2015-08-05 00:35:00 +02:00
Benjamin Chen af73e8302b Bug 1048926 - fix and enable the testcase because the preload action is PRELOAD_NONE on mobile platform. r=jwwang 2015-08-04 16:50:40 +08:00
Eugen Sawin 0a159166d5 Bug 1190897 - Add MP3Demuxer logging. r=kinetik 2015-08-05 13:39:52 +02:00
Carsten "Tomcat" Book 9e4356a394 Merge mozilla-central to mozilla-inbound 2015-08-05 13:19:38 +02:00
Benjamin Chen 79aedbb1cb Bug 1097498 - Wait fence for the graphic buffer. r=sotaro 2015-07-23 17:54:08 +08:00
Albert Crespell f718e9cb41 Bug 1177236 - Usage alert doesn't work when tethering is enabled. r=ethan 2015-07-24 13:16:02 +02:00
Thomas Zimmermann 66fa98429a Bug 1187249: Cleanup BluetoothInterfaceHelpers.{cpp,h}, r=shuang
This patch moves the last conversion function to Bluetooth's daemon
backend and removes the files BluetoothInterfaceHelpers.{cpp,h}.
2015-07-30 10:34:51 +02:00
Thomas Zimmermann 518504fa87 Bug 1187249: Move Bluetooth init operators to ipc/hal, r=shuang 2015-07-30 10:34:51 +02:00
Thomas Zimmermann 59844436d8 Bug 1183249: Move PDU helper functions to ipc/hal, r=shuang 2015-07-30 10:34:51 +02:00
Thomas Zimmermann 2a71f700c8 Bug 1187249: Move |DaemonSocketPDUHeader| to hal/ipc, r=shuang 2015-07-30 10:34:51 +02:00
Shian-Yow Wu e696b31466 Bug 1069081 - Part 1: Always cache fd in JAR cache except Windows. r=mwu 2015-07-30 16:05:57 +08:00
Thomas Zimmermann 2f7aeaeba9 Bug 1187872: Remove HAL backend from Bluetooth, r=shuang
Bluedroid's HAL backend has been superseded by the Bluetooth daemon, and
already been unused in current releases. This patch removes the code from
Gecko.
2015-07-30 09:09:26 +02:00
Karl Tomlinson db58db72fb bug 1190285 share ThreadedDriver interval update code r=padenot
--HG--
extra : rebase_source : bb977d7080dbb69d2c485efdf8148f8933f84b0c
2015-07-23 17:15:49 +12:00
Karl Tomlinson 4ca41a6841 bug 1190285 move GraphTime definition to avoid GraphDriver.h includes r=padenot
--HG--
extra : rebase_source : 18cc48140505eff426483c08c1dd4c9c3c0aa909
2015-07-23 11:48:47 +12:00
Jessica Jong a6382e8e7e Bug 1167132 - Part 7: [NetworkManager] Move network information into a separate interface (MobileConnection). r=echen 2015-07-22 19:32:00 -04:00
Jessica Jong 6c109160ec Bug 1167132 - Part 6: [NetworkManager] Move network information into a separate interface (RadioInterface). r=echen 2015-07-29 02:06:00 -04:00
Jessica Jong 928b9eed74 Bug 1167132 - Part 5: [NetworkManager] Move network information into a separate interface (Tethering). r=echen 2015-07-29 02:05:00 -04:00
Jessica Jong faef349af0 Bug 1167132 - Part 4: [NetworkManager] Move network information into a separate interface (DataCall). r=echen 2015-07-29 02:04:00 -04:00
Karl Tomlinson 0c346a395e bug 1190285 move GetIntervalForIteration() from base class to ThreadedDriver, where it is used r=padenot
--HG--
extra : rebase_source : c34ce851b40d8057ff5ca97cdd5f6f703f8a2af0
2015-07-23 11:30:02 +12:00
Karl Tomlinson fdab75f3a4 bug 1190285 remove unused HaveEnoughBuffered r=padenot
--HG--
extra : rebase_source : 87bfcfb201f57e441adaefccf379c04cad0a2736
2015-07-31 18:54:05 +12:00
Karl Tomlinson 20bf85f5cd bug 1190285 remove unused DispatchWhenNotEnoughBuffered r=padenot
--HG--
extra : rebase_source : 68f91e0b11ecd0c70d6848c7a505b0208c885d0b
2015-07-31 18:46:04 +12:00
Karl Tomlinson 14f2250058 bug 1190285 remove unused GetCurrentTime() r=padenot
--HG--
extra : rebase_source : d976d69b6fd6d6584b6a43214b203608357c7c55
2015-07-23 17:31:32 +12:00
Jean-Yves Avenard 38f40fd819 Bug 1190019: [MSE] P2. Remove cycle between TrackBuffersManager and MediaSourceDemuxer. r=gerald 2015-08-04 16:19:15 +10:00
Jean-Yves Avenard 8905370e55 Bug 1190019: [MSE] P1. Remove cycle between SourceBuffer and TrackBuffersManager. r=cpearce
Instead we use a a ref-counted attribute holder to store those arguments.
2015-08-04 16:19:14 +10:00
Jean-Yves Avenard 7097957d08 Bug 1189776: Store our audio decode time in TimeUnits. r=cpearce
Decode time were stored in number of samples ; which could cause integer overflow when performing the conversion.
2015-08-04 16:19:14 +10:00
Aryeh Gregor 2311382621 Bug 1191305 - Alphabetize some includes; r=froydnj 2015-08-06 15:45:21 +03:00
Jeremy Chen b253b6b253 Bug 1181418 - Send selectionEditable info to app_text_selection_dialog. r=tlin, r=kanru, sr=smaug
--HG--
extra : commitid : DO8T9n6MMXa
extra : amend_source : d359d938905e00a8a4d6c5cebf0bee14b7527b6e
2015-07-31 04:34:00 +08:00
Jean-Yves Avenard 34f14685e5 Bug 1190258: [MSE] P3. Use actual allocated size rather than logical size when calculating eviction rate. r=gerald
This makes eviction slightly more aggressive and ensure we are actually under the memory threshold.
2015-08-06 18:48:45 +10:00
Jean-Yves Avenard 2517b3c491 Bug 1190258: P2. Don't use a FallibleTArray as backend for MediaRawData. r=njn
MediaRawData is often kept to store small data that is unlikely to change over the lifetime of the MediaRawData.
The use of nsTArray as memory backend comes at a cost of much greater memory allocated than required.

Additionally, a MediaRawData was configured to allocate a minimum size of 4kiB.
While this made sense for our past use of MediaRawData, the new MSE keeps big arrays of them to keep audio and video samples.
Combined with the nsTArray overheads, our actual memory use was 22 times greater than thought.
A source buffer allow 100MiB worth of samples, resulting in an actual memory usage of 2.2GiB.
2015-08-06 18:48:45 +10:00
Jean-Yves Avenard 8c8e3b2a70 Bug 1190258: P1. Use getter to access MediaRawData mData and mSize member. r=cpearce 2015-08-06 18:48:44 +10:00
Carsten "Tomcat" Book 2df123b59f Backed out 1 changesets (bug 1153499) for test failures in browser_force_refresh.js
Backed out changeset 252814d5e628 (bug 1153499)
2015-08-06 09:47:38 +02:00
Carsten "Tomcat" Book 7d6f90f702 Backed out 2 changesets (bug 1191107, bug 1180273) for causing xpcshell and m-oth testfailures on a CLOSED TREEi IGNORE IDL
Backed out changeset c5f710ed8718 (bug 1191107)
Backed out changeset d98d82f9981b (bug 1180273)
2015-08-06 08:39:05 +02:00
Cykesiopka d93ee984a0 Bug 1124649 - Part 1 - Add specific error messages for various types of STS and PKP header failures. r=keeler,hurley
--HG--
extra : rebase_source : 8210ed5f89cec8c42d5a78b9101f1c54d91e04c6
2015-08-05 07:51:00 +02:00
Nikhil Marathe f545f1c3eb Bug 1191495 - Relax PushManager callback assertions. r=kitcambridge
--HG--
extra : commitid : 4K4ciVH8oHB
extra : rebase_source : d68782c9d9984a08faa0c3a33197a599dc5b52e6
extra : histedit_source : a666d3f7fc6c503379f962cf40f551b52450470e
2015-08-05 15:32:19 -07:00
Matt Woodrow 501c8bec02 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Matt Woodrow 8d1da3c19e Bug 1150944 - Remove objects that have been unlinked by the cycle collector from the demotable context list. r=ehsan 2015-07-29 16:35:55 -04:00
Robert O'Callahan e0c16e6fbc Bug 1184842. Preparse class attribute values in Element::BeforeSetAttr. r=peterv
--HG--
extra : commitid : KVTSQfwhBot
extra : rebase_source : da0c24026074356610f77d81fa87861cd82f4c8f
2015-08-01 17:46:15 +12:00
Robert O'Callahan efd3df82d6 Bug 1184842. Add aNewValue to nsIMutationObserver::AttributeWillChange. r=peterv
--HG--
extra : commitid : 8C2GnpowyCS
extra : rebase_source : 3f2948df48fe13f65425345f7b674e4e4869c861
2015-07-25 18:05:19 +12:00
Robert O'Callahan a1da6d11df Bug 1184842. Pass preparsed attribute values to nsNodeUtils::AttributeWillChange. r=peterv
--HG--
extra : commitid : DTJHf8BqlZS
extra : rebase_source : 36b264f69be235b9095bf95634bd263f6124a711
2015-07-22 15:53:35 +12:00
Robert O'Callahan d5d49432af Bug 1184842. Allow BeforeSetAttr to preparse aValue. r=peterv
We will pass the preparsed value into AttributeWillChange.

--HG--
extra : commitid : HCiY4DRKWkC
extra : rebase_source : aa17a819a20578322380d388299279e4e41a690b
2015-08-01 17:14:06 +12:00
Robert O'Callahan 1e49288224 Bug 1184842. Pass aOldValue to all mutation observers. r=peterv
--HG--
extra : commitid : CYjyQn3BAqb
extra : rebase_source : ef153c7cf1e08a058d8de6a76dbe7dc343a299fb
2015-07-25 18:01:19 +12:00
Robert O'Callahan 4339caede4 Bug 1184842. Add aOldValue parameter to nsNodeUtils::AttributeChanged. r=peterv
--HG--
extra : commitid : KqRNGrLrGkl
extra : rebase_source : 232a10b649b7c580a0ad3afa0a11a09cdb8b907d
2015-07-21 16:13:53 +12:00
Robert O'Callahan 27590d7e61 Bug 1184842. Make SetAttrAndNotify use the real old value instead of aOldValue when possible. r=bz
--HG--
extra : commitid : Kmg02dVtOG1
extra : rebase_source : 2cb6231765a2f914be9733a54698c665afcbb85c
2015-07-25 17:57:13 +12:00
Robert O'Callahan 34bc743227 Bug 1184842. Change nsAttrAndChildArray::SetAndTakeAttr to nsAttrAndChildArray::SetAndSwapAttr. r=peterv
--HG--
extra : commitid : 5EYBuEzNOek
extra : rebase_source : 52da7c8f8693834a9639f5ac65b758fb223c6f03
2015-07-22 14:09:41 +12:00
Wes Kocher 0dde3fdf2e Backed out 2 changesets (bug 1190252) for windows gtest permafails
Backed out changeset 880fc4c49f7e (bug 1190252)
Backed out changeset ba77cb6046b7 (bug 1190252)
2015-08-03 16:00:53 -07:00
Tanvi Vyas dca6e7eb28 Bug 1181683 - Update test_anchor_ping.html to disable mixed active content blocking. ping is now considered mixed active so the mixed content pings in this test would get blocked and fail without this change. r=ttaubert 2015-08-03 15:25:24 -07:00
Tanvi Vyas 87164ced3c Bug 1181683 - Mark ping and beacon as blockable mixed content instead of optionally blockable. r=smaug 2015-08-03 15:25:21 -07:00
Matt Woodrow 0b5c881576 Bug 1061525 - Part 5: Make the OSX video decoders output NV12 format MacIOSurfaces. r=jya 2015-08-03 17:57:46 -04:00
Jeff Gilbert f0e28e9429 Bug 1188540 - Forward texture-related functions to WebGLTexture. - r=kamidphish 2015-08-03 14:34:46 -07:00
Chris Pearce 6c02d1d89d Bug 1190252 - Remove use of std::ifstream in GMPChild.cpp. r=edwin 2015-08-04 09:07:19 +12:00
Chris Pearce 598bc62ffb Bug 1190252 - Remove std::string from GMPChild and friends. r=edwin 2015-08-04 09:07:02 +12:00
Fernando Jimenez 5d630742c6 Bug 1180148 - Clear service workers registered for a site when clearing the cookies and stored data is not working in b2g. r=baku 2015-08-03 22:51:07 +02:00
Ryan VanderMeulen afb6ed296c Merge m-c to inbound. a=merge 2015-08-03 15:03:34 -04:00
Christoph Kerschbaumer 5d6e8c751f Bug 1152574 - Do not report aborted XHR requests in web console (r=sicking) 2015-07-20 13:59:19 -07:00
Olli Pettay a2c1faa15b Bug 1183954, Don't leak nsStructuredCloneContainer (use of 'auto' is error prone), r=leak 2015-08-02 12:34:26 +03:00
Nikhil Marathe 97ea06c0c0 Bug 1188686 - Clear push subscriptions when forgetting about site. r=kitcambridge
--HG--
extra : commitid : 4z3omFAziAN
extra : transplant_source : %0A%E7%85%26%EE9%CE%95%0C/%AC%7E%89%ED%08%9A%3C%99mA
2015-07-29 11:33:48 -07:00
Nikhil Marathe 839a3bc3fb Bug 1183954 - Fix Notification.data structured cloning on workers. r=robertbindar,mccr8
Rather than store a non-thread-safe refcounted nsIStructuredCloneContainer, store the base64 representation.
Caches a jsval the first time an attempt to access data is made from content script.

--HG--
extra : commitid : Ijd82LTJaYo
extra : rebase_source : f82e837842037ea02efae3a0fc9b2b35c2a0d7d0
2015-07-30 12:44:14 -07:00
Xidorn Quan 7624cf6395 Bug 1164725 - Convert flags in nsIDocument into bit fields. r=smaug
--HG--
extra : source : 49e416beae3c398890d13eb8690b9fa90ed79135
2015-08-01 10:49:19 +10:00
Blake Kaplan 59fc460073 Bug 1189964 - Fix bustage. r=bustage CLOSED TREE
--HG--
extra : amend_source : c36fd335a82e19124f639c572b2348e612d104a1
2015-07-31 17:09:28 -07:00
Blake Kaplan b22c011fa8 Bug 940206 - Implement Navigator.registerContentHandler and Navigator.registerProtocolHandler for e10s. r=dao 2015-07-31 17:03:37 -07:00
Blake Kaplan 3f28e2523e Bug 1189964 - Fix a crash handling drags on dying windows. r=smaug 2015-07-31 17:03:37 -07:00
Jan Gerber 15e7adedaf Bug 1187247: [MSE] P2. Enable WebM in MediaSource. r=jya 2015-08-01 08:34:00 +10:00
Jan Gerber 2f85d4858f Bug 1187247: [MSE] P1. Continue parsing MediaSegment if buffer starts with SimpleBlock/Block. r=kinetik
Apply to WebM streams.
2015-08-01 08:33:59 +10:00
Eric Rahm dee06cb8d2 Bug 1183845 - Only send activation event if document is non-null. r=bz 2015-07-31 13:23:15 -07:00
Jesse Ruderman 7ed9e0fe1b Bug 1024259: Use NS_FREE_PERMANENT_DATA more consistently. r=mccr8 2015-07-31 12:11:48 -07:00
Andrea Marchesini 7655790d94 Bug 1185820 - XMLHttpRequest::Open() in worker should count the recursion using a uint32_t and not a boolean. r=khuey 2015-07-29 16:10:15 -04:00
JW Wang bd3eec1d91 Bug 1191170 - Move DecodedStreamData from the header to its source file. r=roc. 2015-07-19 21:25:08 +08:00
Nikhil Marathe 970731b146 Bug 1153499 - Enable push and sw prefs. r=dougt,ehsan
--HG--
extra : commitid : GQaiqrErWLz
extra : rebase_source : 3f01566803616b221b883b51ab079d8868e8e502
extra : source : 06a05093fc417449b9458fa88105e863acddef8d
2015-07-15 13:12:44 -07:00
Nikhil Marathe 25e263af21 Bug 1144660 - client.focus() adds window interaction checks and directly uses DOMServiceWorkerFocusClient to focus window. r=ehsan,dao
client.focus() now directly uses the DOMServiceWorkerFocusClient event. The
platform popup checking is not available on service workers. Instead each
worker maintains a counter of if it is allowed to interact with windows. This
counter is currently only incremented by the notificationclick event and
dropped after the event has been dispatched.

Since acquiring a client is an async operation most service workers will
perform in notificationclick, an additional extension is granted after the event
during which the service worker may focus a client. This extension is only granted
if the script invokes NotificationEvent.waitUntil() at which point the timer begins.
The extension is terminated when the Promise passed to waitUntil() is fulfilled, or
the timer expires, whichever comes first.

--HG--
extra : commitid : 5wavKTRZWcy
extra : rebase_source : fc8ab4ef6c9bf384b5525b0bc979b3cedc4e1d6c
2015-07-23 08:30:27 -07:00
Nikhil Marathe 744a8d6f14 Bug 1144660 - Make KeepAliveHandler threadsafe refcounted. r=ehsan
This works because KeepAliveHandler only holds nsMainThreadPtrHolder<> which is
itself thread safe.  It has assertions that the PromiseNativeHandler overrides
are only called on the worker and these assertions are satisfied.

--HG--
extra : commitid : Kqgfb87dkFH
extra : rebase_source : 56371d2993c681d99814535a4b5289330763f9c3
2015-08-05 20:58:10 -07:00
Ryan VanderMeulen f6bdd4e7a5 Merge m-c to inbound. a=merge 2015-08-06 15:47:49 -04:00
Christoph Kerschbaumer 1c05a94924 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource (r=sicking,ehsan) 2015-08-06 11:17:24 -07:00
Blake Kaplan 9b31f6bcfe Bug 661604 - Re-enable this test because it works now. rs=wchen and try 2015-08-06 10:35:49 -07:00
Kit Cambridge ca276a1334 Bug 1189543 - `pushManager.getSubscription()` should return `null` for nonexistent push subscriptions in workers. r=nsm
--HG--
extra : commitid : 7aBSevBFA0O
extra : rebase_source : 04558d29d557dabaf807ff5b066e25e06a1462f5
2015-08-06 10:15:00 -07:00
Nikhil Marathe ea58277c0d Bug 1153499 - Enable push and sw prefs. r=dougt,ehsan
--HG--
extra : commitid : GLh29700Ofi
extra : rebase_source : 850c4534d62d9db98b890a5239c8f5c647baa8ef
extra : source : 06a05093fc417449b9458fa88105e863acddef8d
2015-07-15 13:12:44 -07:00
Xidorn Quan bf52d07f9d Bug 1191148 - Don't count fullscreen request handled if we don't change the document state. r=smaug
--HG--
extra : source : 33ad58fdc763e3c6d647b6aec100d2ab9d893316
2015-08-06 15:37:48 +10:00
Xidorn Quan 0ccaf44f6f Bug 1190669 part 3 - Introduce new fullscreen reason which exits fullscreen without fullscreen transition, and use it for ExitFullscreenInDocTree. r=smaug
--HG--
extra : source : fe0671e7ebf0891ff5b81d62f1d2d4331da0210a
2015-08-06 15:37:48 +10:00
Xidorn Quan 0de82461de Bug 1190669 part 2 - Move the part which runs script from ExitFullscreenInDocTree to a runnable, and protect it with AddScriptRunner. r=smaug
--HG--
extra : source : 4f830d2b84892df9703b129e4d1e3266326e2f69
2015-08-06 15:37:48 +10:00
Xidorn Quan b5ca06175b Bug 1190669 part 1 - Remove helper function SetWindowFullScreen and its helper runnable. r=smaug
All of the callsites of this helper function has a synchronous event
dispatch which indicates the AddScriptRunner in that helper function
makes no sense.

Also it seems that most of the callsites are actually safe to run
script, except ExitFullscreenInDocTree() which may be called from
Element::UnbindFromTree(). It'll be fixed in the following patch.

--HG--
extra : source : 3de765275da21719bdc57f2ddba5328efba17524
2015-08-06 15:37:48 +10:00
Xidorn Quan b7de5ae0ad Bug 1191112 part 3 - Don't touch the widget anymore if it has been destroyed during the fullscreen transition. r=smaug
--HG--
extra : source : c07ef0526ac1098a949e91bbf3cf4f34de577e2e
2015-08-06 15:37:48 +10:00
Xidorn Quan 62dc5a030c Bug 1191112 part 1 - Clear pending fullscreen requests on page close. r=smaug
--HG--
extra : source : 0eaa6634bfeb27a0aed6e90a01fe9783bace4773
2015-08-06 15:37:48 +10:00
JW Wang d032d87d0f Bug 1189624 - Have AudioSink listen to MediaQueue events to know whether to continue playback. r=kinetik. 2015-08-06 10:16:49 +08:00
JW Wang c13d97710a Bug 1188257 - Use MediaEventSource for MediaQueue to do the job. r=cpearce. 2015-08-06 10:14:15 +08:00
Dan Glastonbury 88074e14d9 Bug 1184402 - Reset format usage authority on context lose/restore. r=jgilbert 2015-08-06 10:30:51 +10:00
Wes Kocher de08e9e79c Merge m-c to inbound, a=merge 2015-08-05 16:47:52 -07:00
Olli Pettay 8ebd3b10ac Bug 1190921 - Broadcastchannel keeps its containing iframe in memory when it has a user defined property, r=khuey
--HG--
extra : rebase_source : 233d08a93763a93eb1393b20c26da965efb6a07a
2015-08-06 01:26:00 +03:00
Christoph Kerschbaumer cb37e46dd2 Bug 1191107 - Split TYPE_XMLHTTPREQUEST and TYPE_DATAREQUEST for EventSource - IGNORE IDL (r=sicking,ehsan) 2015-08-05 12:58:05 -07:00
Wes Kocher 5e90ccec17 Backed out 3 changesets (bug 1191495, bug 1153499, bug 1144660) for mochitest-push crashes
Backed out changeset 8917e7323399 (bug 1191495)
Backed out changeset 13ed6f60d3f9 (bug 1144660)
Backed out changeset 95bd6642e4b1 (bug 1153499)
2015-08-05 15:18:05 -07:00
Nikhil Marathe 0d07229d06 Bug 1190703 - Relax scope resolution assertion in ServiceWorkerContainer::Register. r=bkelly
--HG--
extra : commitid : 2VyBa3KOyIV
extra : rebase_source : 81940c62d45ce34df1ce60f33ac90f762acee937
extra : amend_source : d0c955ca481b3a473d698176fea9aed407443ff4
2015-08-05 14:33:50 -07:00
Nikhil Marathe 4f39cda39b Bug 1191495 - Relax PushManager callback assertions. r=kitcambridge
--HG--
extra : commitid : E9vbMNHj3TZ
extra : rebase_source : 816d8318a127beec799b648640057e21f77c647b
2015-08-05 13:21:08 -07:00
Nikhil Marathe 9c77fa0bcd Bug 1144660 - client.focus() adds window interaction checks and directly uses DOMServiceWorkerFocusClient to focus window. r=ehsan,dao
client.focus() now directly uses the DOMServiceWorkerFocusClient event. The
platform popup checking is not available on service workers. Instead each
worker maintains a counter of if it is allowed to interact with windows. This
counter is currently only incremented by the notificationclick event and
dropped after the event has been dispatched.

Since acquiring a client is an async operation most service workers will
perform in notificationclick, an additional extension is granted after the event
during which the service worker may focus a client. This extension is only granted
if the script invokes NotificationEvent.waitUntil() at which point the timer begins.
The extension is terminated when the Promise passed to waitUntil() is fulfilled, or
the timer expires, whichever comes first.

--HG--
extra : commitid : 5DUAOg4j41K
extra : rebase_source : 775d36e41c3d3b62e5189b032220fa2469ac237d
extra : source : 8300859f8e9751ca663f96fae3375dfda8b2ad13
2015-07-23 08:30:27 -07:00
Nikhil Marathe 4d3d992a72 Bug 1153499 - Enable push and sw prefs. r=dougt,ehsan
--HG--
extra : commitid : JbPfHDqXUbo
extra : rebase_source : c1114f39f003e9109da73ab49e30b73826ef8f04
extra : source : 06a05093fc417449b9458fa88105e863acddef8d
2015-07-15 13:12:44 -07:00
Jed Davis f9cdea85fa Bug 1101100 - Multiprocess-enable nsWebBrowserPersist. r=billm
The high-level overview is that the parts of nsWebBrowserPersist which
access the DOM have been factored out (as WebBrowserPersistLocalDocument)
and abstracted (nsIWebBrowserPersistDocument) such that they can be
implemented in the cross-process case using IPC.
2015-08-05 14:25:39 -07:00