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

54913 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard 3eae3b5916 Bug 1303970: P1. MEDIA_ERR_ABORTED can be returned even if readyState is HAVE_NOTHING. r=jwwang
So change assertion accordingly.

MozReview-Commit-ID: AuaDlyF0MAL

--HG--
extra : rebase_source : 60f1b34c8320d8ad47845bfd9d8f23e27d3a8620
2016-09-20 19:36:09 +10:00
Jean-Yves Avenard 2010639f50 Bug 1304252: P3. Further error details for agnostic decoders. r=gerald
MozReview-Commit-ID: 1tb4f9xQKyr

--HG--
extra : rebase_source : 37bd772240de01d9fcb2fac765f58b27e6f86c9c
2016-09-21 13:25:00 +10:00
Jean-Yves Avenard 5b5bc32ab4 Bug 1304252: P2. Provide further error details for android decoder. r=gerald
MozReview-Commit-ID: 8xi9MBnZsfQ

--HG--
extra : rebase_source : 529c5185802b9e9a954e3993129a9c774210de7c
2016-09-21 13:22:31 +10:00
Jean-Yves Avenard 0ac98dd6e1 Bug 1304252: P1. Provide error details for ffmpeg decoder. r=gerald
MozReview-Commit-ID: A0qbYNm4CjX

--HG--
extra : rebase_source : 4c9c719e9a4310ef34b99bf491c7f76bd1e5e3e4
2016-09-21 13:21:27 +10:00
JW Wang 00c05e18ae Bug 1300714 - Don't force entering DECODING when playState becomes PLAYING. r=cpearce
For it doesn't guarantee a smooth playback with a little data buffered.

MozReview-Commit-ID: 5NNQ4Q8uz39

--HG--
extra : rebase_source : dab53162cc06ddc74cca08e910a19eff01446703
2016-09-06 16:40:30 +08:00
JW Wang 5e9751305f Bug 1303347 - add assertions for debugging if Observe() could ever happen after Unsubscribe(). r=cpearce
MozReview-Commit-ID: 9XhGYI3fTqb

--HG--
extra : rebase_source : b42dce2b15cb044871e355090dade17abf651ee9
2016-09-20 11:27:46 +08:00
Jean-Yves Avenard 4387906eae Bug 1302632: P5. Update mochitests. r=gerald
The tests expected that the error code would be MEDIA_ERR_DECODE whenever we fail to open a video. However, MEDIA_ERR_DECODE is to be used only when "An error of some description occurred while decoding the media resource, after the resource was established to be usable."

All those files have errors in their metadata. Which makes the resource unusable to start with.

Similarly, networkState would be set to  NETWORK_NO_SOURCE if the metadata couldn't be read.

MozReview-Commit-ID: KXVJmD3ZQlT

--HG--
extra : rebase_source : 1ec3d7e764d832702e662f0b650363498e0b0761
2016-09-16 11:14:07 +10:00
Jean-Yves Avenard 26629fd77e Bug 1302632: P4. Do not change network state to NETWORK_EMPTY. r=jwwang
There's no such step defined in the spec. Despite, this code can no longer be called when readyState is HAVE_NOTHING

MozReview-Commit-ID: 2fDoNHt1COp

--HG--
extra : rebase_source : d8b79acee85b00331f55153626038e26cd4a72c7
2016-09-15 16:20:43 +10:00
Jean-Yves Avenard 895efe36db Bug 1302632: P3. Provide failures details to error attribute. r=jwwang
MozReview-Commit-ID: 3eIXOF96UR4

--HG--
extra : rebase_source : eeeb298d46bd8c6957560e475b7b1c4728a392dc
2016-09-15 16:17:10 +10:00
Jean-Yves Avenard 9b10344e7c Bug 1302632: P2. Only have Description return a non-empty string in case of error. r=jwwang
Will simplify the code in the following patch, not having to perform unnecessary test.

MozReview-Commit-ID: 5zUzSZgzrG9

--HG--
extra : rebase_source : c409a70d1aa5975b1a990a884856b3b5712bc190
2016-09-14 16:49:56 +10:00
Jean-Yves Avenard 8a54c1a711 Bug 1302632: P1. Set proper error code when readyState is HAVE_NOTHING. r=jwwang
MozReview-Commit-ID: CMQkW5pPDF2

--HG--
extra : rebase_source : f0286af0b2daa2f91bbea66ab7bcf6de1a6d2207
2016-09-14 16:45:52 +10:00
Julian Hector 4946f018b4 Bug 1303275 - Fix ShmemPool code to resolve 'not declared' compiler error. r=gcp
--HG--
extra : amend_source : 7fde47fe1c2f25069f85904df7b06774129acc4b
2016-09-16 06:44:00 -04:00
Kershaw Chang 5bb5c52b40 Bug 1299040 - Implement transport builder constructor. r=smaug 2016-09-16 08:59:00 -04:00
Wes Kocher 0677d5dc43 Merge m-c to inbound, a=merge 2016-09-16 14:35:12 -07:00
Markus Stange bf8d999061 Bug 1302551 - Add AnonymousContent::SetCutoutRectsForElement to allow a more efficient find bar highlighter implementation. r=smaug
This part just sets a cutoutregion property on the element node and schedules a paint.
The next part will check for that property and create a display item for the element
in question.

MozReview-Commit-ID: EbPr8it5Lpw
2016-09-15 14:58:15 -04:00
Markus Stange f53e3f5131 Bug 1302556 - Start AnonymousContent::GetElementById iteration at mContentNode. r=smaug
This renames kid to node and starts the iteration at mContentNode instead of at mContentNode->GetFirstChild().

MozReview-Commit-ID: HFiHXZg0gLS
2016-09-13 18:19:07 -04:00
Wes Kocher 611fb66887 Backed out changeset 39da44265946 (bug 1263595) for build bustage a=backout CLOSED TREE 2016-09-16 14:19:22 -07:00
Eric Faust db0cfdc6bc Bug 1263595 - Avoid deadlock between the JIT and the gecko profiler on win64. (r=froydnj) 2016-09-15 21:35:14 -07:00
Boris Zbarsky 5afc8a9e03 Bug 1294747. Make sure we expose the expando of a [OverrideBuiltins] proxy to active JS when it gets cleared from the proxy. r=peterv
This should also fix bug 1296775 and bug 1290359.

There's a very good chance it will also fix bug 1293386, bug 1292855, bug
1289452, and bug 1303340: those would get hit if we happened to start _another_
gc after the expando died but while it was still in the Rooted.  All of them
seem to be dying under the domClass->mGetProto call, which could finish up a GC
that kills the expando and then do _another_ one, causing the Rooted to try to
mark a dead object.
2016-09-15 15:04:56 -04:00
Jim Chen 8e0ad67a7a Bug 1291375 - 5. Use Fennec bindings where needed; r=snorp
Switch include statements from GeckoView bindings to Fennec bindings
where needed.
2016-09-16 15:13:48 -04:00
Aaron Klotz 6775220daf Bug 1297549: Part 2 - Propagate changes in tab native window down to content for a11y; r=jimm
MozReview-Commit-ID: LA5yLIGufEb
2016-09-15 13:37:04 -06:00
Sebastian Hengst 548f7778a1 Backed out changeset e0d755ab4cbd (bug 1302380) for timeouts reftest with e10s invariable-declaration-XX.html on Linux 32 bit. r=backout 2016-09-16 18:55:44 +02:00
Nicolas Silva 79bb9f5c0e Bug 1284837 - Disallow implicit conversions from float to integer when creating. r=botond 2016-09-16 17:49:39 +02:00
Carsten "Tomcat" Book 08b3e66490 Merge mozilla-central to autoland 2016-09-15 12:08:47 +02:00
Alexandre Lissy f6ee6d53f2 Bug 1302641 - Update ImageBridgeChild::GetSingleton() use after 1298938 r=nical
MozReview-Commit-ID: Cs7xUcPnPoz
2016-09-14 19:01:21 +02:00
Michael Layzell 5980e6a33e Bug 1302275 - Add a way to track Constellations (Units of related similar origin browsing contexts) to nsGlobalWindow, r=billm
MozReview-Commit-ID: AjbVZHEL9WZ
2016-09-14 12:22:40 -04:00
Nathan Froyd ca183ff3cd Bug 1298149 - explicitly ignore the result of SendUpdateWindow in ContentParent::SendAsyncUpdate; r=baku
This change doesn't modify the behavior of the code, but it does silence
a clang-cl warning.
2016-09-14 19:28:26 -04:00
Andreas Pehrson c16451f7df Bug 1300600 - Use TrackIter with for loop in AudioCaptureStream. r=padenot
Let's kill TrackIter with fire!

MozReview-Commit-ID: KNDoEtX1iFk

--HG--
extra : rebase_source : 582307a8da4ce3fa745cfe43aceaad56374c3854
2016-09-14 15:31:21 +02:00
Jan de Mooij 919372cf5c Bug 1302448 part 3 - Rename WorkerJSRuntime to WorkerJSContext. r=baku
--HG--
extra : rebase_source : a1df9ae95f0c80f67ce21bc494bb92a20cbc5784
2016-09-14 15:48:42 +02:00
Jan de Mooij 7f794780e0 Bug 1302448 part 2 - Rename XPCJSRuntime to XPCJSContext. r=mrbkap
--HG--
rename : js/xpconnect/src/XPCJSRuntime.cpp => js/xpconnect/src/XPCJSContext.cpp
extra : rebase_source : e6b435ab1ca2739e340669195dff77c561ea573e
2016-09-14 15:48:17 +02:00
Jan de Mooij a53986bf29 Bug 1302448 part 1 - Rename CycleCollectedJSRuntime to CycleCollectedJSContext. r=mccr8
--HG--
rename : xpcom/base/CycleCollectedJSRuntime.cpp => xpcom/base/CycleCollectedJSContext.cpp
rename : xpcom/base/CycleCollectedJSRuntime.h => xpcom/base/CycleCollectedJSContext.h
extra : rebase_source : 075214b5057f151520926715b6154e99ae80a0b3
2016-09-14 15:47:32 +02:00
Carsten "Tomcat" Book 515bca4fca merge mozilla-inbound to mozilla-central a=merge 2016-09-14 15:41:48 +02:00
Carsten "Tomcat" Book 6520e60ddb Merge mozilla-central to autoland 2016-09-14 12:17:20 +02:00
Carsten "Tomcat" Book 9a2448ee1c Merge mozilla-central to mozilla-inbound 2016-09-14 12:11:09 +02:00
Carsten "Tomcat" Book d2c3fe7fd3 merge autoland to mozilla-central a=merge 2016-09-14 12:07:02 +02:00
Andi-Bogdan Postelnicu 8f2af4af11 Bug 1302658 - substitute null checks with NS_ENSURE_TRUE. r=baku
MozReview-Commit-ID: GQmfWrmhKNg

--HG--
extra : rebase_source : 50c8dbac10a8b249bccce27616159daec9d9af1a
2016-09-14 12:15:01 +03:00
Benoit Girard fab198cffc Bug 1288746 - Handle missing EGL failure IDs. r=jmuizel
MozReview-Commit-ID: Kk5vFNMdhjV

--HG--
extra : rebase_source : 8a8851b91fa045c8cb13e1aee2c8c7c62d2b0a4e
2016-09-13 14:17:29 -04:00
Ben Kelly 3ef8365a49 Bug 1300658 P6 Fix one place XHR used NS_DispatchToMainThread() directly from a worker. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly f1f3b13517 Bug 1300658 P5 Make service worker APIs use the MainThreadTaskQueue. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly c26c5533f0 Bug 1300658 P4 Make dom/fetch use the worker MainThreadTaskQueue. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly adf0d2b529 Bug 1300658 P3 Don't fail test_consoleAndBlobs.html if other console messages are received. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly e5c5dd65ac Bug 1300658 P2 Make WorkerRunnable's destined for main thread use the MainThreadTaskQueue. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly f7c726cbfd Bug 1300658 P1 Expose a main thread TaskQueue WorkerPrivate. r=baku 2016-09-13 20:14:02 -07:00
Ben Kelly f0d440f9d1 Bug 1300118 P1 Make TaskQueue deliver runnables to nsIEventTarget. r=bholley 2016-09-13 20:12:15 -07:00
George Wright 3480df735c Bug 1241865 - Disable canvas-2d-pixels memory reporter as it currently reports inaccurate values. r=nical 2016-09-13 23:03:09 -04:00
Daosheng Mu 9f5625a417 Bug 1300508 - Fix conformance fails for Windows 10; r=ethlin,jgilbert
MozReview-Commit-ID: 6kR4Xfgo2Vo

--HG--
extra : rebase_source : 741415a1d3688a37ec7a6b41f4ec71edcc7c6b2b
2016-09-13 22:25:47 +08:00
Jean-Yves Avenard 95ee05fbb7 Bug 1302465: [MSE] Schedule eviction, even if previously the source buffer was full. r=gerald
Conditions may have changed (such as currentTime moving since the last attempt). So we try again.

MozReview-Commit-ID: 2zexl1FzOd7

--HG--
extra : rebase_source : 5c21f6edc438fb012e18eda45237383fc8b83794
2016-09-14 09:28:01 +10:00
Thomas Wisniewski 3cf91c9343 Bug 918719 - Only fire one loading readystatechange per XHR, but keep the old behavior available behind the preference dom.send_multiple_xhr_loading_readystatechanges. r=smaug
--HG--
extra : rebase_source : 296943a67ae8bd3065749cc424a4379320169585
2016-09-12 22:39:01 -04:00
Thomas Wisniewski e6afa43d92 Bug 812701 - Drop the prefixed version of the Visibility API. r=bz
--HG--
extra : rebase_source : 2d989414b2ccbb9c712e711c8373bdca6f87fc4b
2016-09-13 09:56:14 -04:00
Frederik Braun fd99ac5cc2 Bug 1277248 - Add test to ensure that require-sri-for does not allow svg:scripts r=ckerschb
MozReview-Commit-ID: 1knIYZ93UeY

--HG--
extra : rebase_source : 4c1385382ecdddf80ec45d46d440b37bf4ad47c1
2016-09-13 11:05:37 +02:00
Stone Shih eddb068dd7 Bug 1297635 - Add a helper function for input to check whether input events with modifier should change the value. r=smaug, f=bevistseng
--HG--
extra : rebase_source : a5df32c01f4ee02ca2ab2a668836e87d16e8bb10
2016-09-06 14:30:00 +08:00
David Anderson 07336b7d13 Protect ImageBridgeChild's singleton with a StaticMutex. (bug 1298938 part 5, r=mattwoodrow)
--HG--
extra : rebase_source : 974ad32cfaf3ba6d1af75d8857f0a35da5aa3641
2016-09-13 16:30:57 -07:00
David Anderson 62129d7cb4 Remove racy ImageBridgeChild shutdown/creation checks. (bug 1298938 part 4, r=nical)
--HG--
extra : rebase_source : 0419df6221d59c4e9b085015d8483267fb3d446f
2016-09-13 16:30:57 -07:00
Jean-Yves Avenard 66c6aa70b2 Bug 1300292: Call SetSeekThreshold for h264 content. r=gerald
MozReview-Commit-ID: C7vADo0eo2E

--HG--
extra : rebase_source : 51950a23633acc10fef4e514b305daa216229a19
2016-09-13 15:54:26 +10:00
Haik Aftandilian 9de1898bc2 Bug 1290619 - Content sandbox rules should use actual profile directory, not Profiles/*/ regex's; r=jimm
Passes the profile dir to the content process as a -profile CLI
option so that the correct profile dir can be used in the OS X content
sandbox rules.  Only enabled on OS X for now.

On Nightly, profile directories will now be read/write protected
from the content process (apart from a few profile subdirectories) even
when they don't reside in ~/Library.

xpcshell tests invoke the content process without providing a
profile directory. In that case, we don't need to add filesystem
profile dir. read/write exclusion rules to the sandbox.

This patch adds two new macros to the content sandbox rule set:
|profileDir| holds the path to the profile or the emptry string;
|hasProfileDir| is a boolean (1 or 0) that indicates whether or
not the profile directory rules should be added. If |hasProfileDir|
is 0, profile directory exclusion rules don't need to be added
and |profileDir| is not used.

MozReview-Commit-ID: rrTcQwTNdT

--HG--
extra : rebase_source : 3d5b612c8eb3a1d0da028eba277cd9d6f0c9ac00
2016-08-30 13:32:21 -07:00
Jean-Yves Avenard ed9868472d Bug 1301059: Do not use H264Converter when video decode is suspended. r=jya
MozReview-Commit-ID: FWvn3Xkalsl

--HG--
extra : rebase_source : 065979264f1dbf99659757e7edec5aaaf5d98e24
2016-09-07 23:59:59 +10:00
Mantaroh Yoshinaga 02a6ea7d52 Bug 1298554 - Remove the animation.id mochitest. r=birtles
MozReview-Commit-ID: 8VTAl9WO7eF

--HG--
extra : rebase_source : b9f7f257a7509ad26d839644e77b2afc7877cd2f
2016-09-12 10:23:10 +09:00
Mantaroh Yoshinaga 01b448239f Bug 1302007 part 2 - Add the test of cancelling the transition when setting display='none'. r=birtles
MozReview-Commit-ID: B6avXxpEpDw

--HG--
extra : rebase_source : 5994b803e7d41e43f53cdc38a473f518ca528ca7
2016-09-13 16:59:52 +09:00
Mantaroh Yoshinaga 4bb206baf4 Bug 1302007 part 1 - Use the promise_test in transition cancel tests. r=birtles
MozReview-Commit-ID: 7cXfwkT7kaH

--HG--
extra : rebase_source : c19372eb265fbc9d0869ac8a9ae41e05f789d5ce
2016-09-12 12:11:15 +09:00
Carsten "Tomcat" Book c737c8cee6 Merge mozilla-central to autoland 2016-09-13 13:09:21 +02:00
Carsten "Tomcat" Book f77a18b1b7 merge mozilla-inbound to mozilla-central a=merge 2016-09-13 11:57:54 +02:00
Mike Hommey 935ad653b8 Bug 1299919 - Set CPP/CXXCPP from python configure. r=chmanchester 2016-09-13 13:25:18 +09:00
Hiroyuki Ikezoe 5f5f888c4b Bug 1216843 - Part 15: Update styles when current iteration changed. r=birtles
MozReview-Commit-ID: 33JtZplxiAz
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe f98523cf02 Bug 1216843 - Part 2: Implement effect iteration composition. r=birtles, r=smaug
MozReview-Commit-ID: 6u7WtXwL3y3
2016-09-13 11:48:44 +09:00
bechen b4b74f3e7d Bug 1294833 - Seperate the three track event handlers for debugging. r=jwwang
MozReview-Commit-ID: By12tozP1eb

--HG--
extra : transplant_source : %17%D9%F2%04%F7%1F%01%DE%23%2B%02c%1DE.1%F1%0E%2B%10
2016-09-12 14:44:22 +08:00
Ho-Pang Hsu 382e637a0d Bug 1285804 - Part 2: Update and enable testcases. r=smaug, f=btseng
--HG--
extra : rebase_source : e8e6aad881cebafc686b472e524415d8c9cf156b
extra : histedit_source : 7ed1d86ee8d0c1c3175bf550b269cdf0effe2f36
2016-09-12 13:51:10 +08:00
Ho-Pang Hsu bb6962b37c Bug 1285804 - Part 1: Introduce a new message to nsIDOMWindowUtils::sendMouseEvent() for test automation. r=smaug, f=btseng
--HG--
extra : rebase_source : 60a0e28ee3c063e730844874cca6b7f002c35fe4
extra : histedit_source : 02a45d4783e7fbb8ad30847e5f49f7a0e62cfeac
2016-09-12 13:51:10 +08:00
Ho-Pang Hsu 45cd280352 Bug 1299199 - Part 2: Remove 'sendPointerEvent' from mochitest_support_external.js. f=btseng, r=smaug
--HG--
extra : rebase_source : 7b51f98b530445ee9621e1e096349d97efc27088
extra : histedit_source : 649af0d76d9303366e8475b855635a834b4bf0c4
2016-09-12 23:51:56 +08:00
Ho-Pang Hsu d606722f4c Bug 1299199 - Part 1: Replace 'sendPointerEvent()' with 'sendMouseEvent()' in testcases. f=btseng, r=smaug
--HG--
extra : rebase_source : 4d3d8874531b5eaf2efaa65db2d2a65b2548e9fc
extra : histedit_source : 26d2fecec8b9b2b6c937ebb2d74d41c954e3a127
2016-09-12 23:51:56 +08:00
Wes Kocher 06c62c6cde Merge m-c to inbound, a=merge 2016-09-12 17:22:56 -07:00
Wes Kocher c21b854efc Merge inbound to central, a=merge 2016-09-12 17:08:25 -07:00
Wes Kocher 42f4e48aee Backed out 6 changesets (bug 1300118) for frequent Windows VM Xpcshell failures a=backout CLOSED TREE
Backed out changeset 24f714ad248c (bug 1300118)
Backed out changeset 6fe61ed092e8 (bug 1300118)
Backed out changeset dd18e29b64bf (bug 1300118)
Backed out changeset 50882fb40551 (bug 1300118)
Backed out changeset 60e82c1780e5 (bug 1300118)
Backed out changeset e40df52925d5 (bug 1300118)

--HG--
extra : amend_source : 7475f45d827654abe309696d73fd86e75a497c32
2016-09-12 16:34:41 -07:00
Wes Kocher 17b9381e0b Backed out 6 changesets (bug 1300658) for frequent Windows VM Xpcshell failures a=backout
Backed out changeset 6cf3a60640cf (bug 1300658)
Backed out changeset c74062a27462 (bug 1300658)
Backed out changeset 39fbc61739ef (bug 1300658)
Backed out changeset 0b9d70b040a2 (bug 1300658)
Backed out changeset 4e921d61f036 (bug 1300658)
Backed out changeset 56496fad6494 (bug 1300658)
2016-09-12 16:34:08 -07:00
Wes Kocher 677438b338 Backed out 4 changesets (bug 1286041) for making various media tests really failure prone a=backout
Backed out changeset af4c053741f1 (bug 1286041)
Backed out changeset b5be689abefa (bug 1286041)
Backed out changeset 2aad01ffac9f (bug 1286041)
Backed out changeset 48117ed311a1 (bug 1286041)
2016-09-12 15:17:23 -07:00
Olli Pettay 20092042b7 Bug 1297367 - Call iCC slice and forgetSkippable right after paint, r=mccr8
--HG--
extra : rebase_source : ba695c6da7112da932b5b03577929ffaa94b7116
2016-09-12 14:00:15 -07:00
Ben Kelly 8df5d9263a Bug 1301519 Don't crash if GetCurrentThreadWorkerPrivate() is called during worker shutdown. r=baku 2016-09-12 06:09:32 -07:00
Carsten "Tomcat" Book 19dc112fbb Merge mozilla-central to mozilla-inbound 2016-09-12 13:22:44 +02:00
Carsten "Tomcat" Book 18abe02386 merge mozilla-inbound to mozilla-central a=merge 2016-09-12 13:07:54 +02:00
Andrea Marchesini 500a217925 Bug 1301094 - part 3 - Test for Blob+XHR+FormData+Workers, r=smaug 2016-09-12 12:19:01 +02:00
Andrea Marchesini 513886ee03 Bug 1301094 - part 2 - RemoteInputStream must be created using a ControlWorkerRunnable, r=smaug 2016-09-12 12:18:22 +02:00
Andrea Marchesini 2a473b5013 Bug 1301094 - part 1 - RemoteBlobImpl::CreateStreamHelper must be a CancelableRunnable, r=smaug 2016-09-12 12:17:08 +02:00
Morris Tseng 2af134acaf Bug 1297965 - fail-if transform_feedback test case. r=jgilbert
MozReview-Commit-ID: AGC9lu8jF0A
2016-09-12 17:39:54 +08:00
Morris Tseng fbe0056e79 Bug 1297965 - Use ANGLE for WebGL2. r=jgilbert
MozReview-Commit-ID: 83zhQ5rTdbi
2016-09-12 17:39:54 +08:00
Andrea Marchesini e222ca7109 Bug 1249739 - Improve performance in XHR in workers - part 4 - Correct cleaning cache for XHR.responseText, r=me 2016-09-12 10:59:10 +02:00
Andrea Marchesini 284e7077e7 Bug 1249739 - Improve performance in XHR in workers - part 3 - Implement XMLHttpRequestStringSnapshot, r=smaug 2016-09-12 09:06:33 +02:00
Andrea Marchesini def1f6e7db Bug 1249739 - Improve performance in XHR in workers - part 2 - Implement XMLHttpRequestString, r=smaug 2016-09-12 09:06:06 +02:00
Andrea Marchesini c9c3bfe617 Bug 1249739 - Improve performance in XHR in workers - part 1 - XHR.responseText must be cached, r=smaug 2016-09-12 09:05:42 +02:00
Ninad Bhat[:ninad101] 15dca34ea9 Bug 1301628 - Corrects misc-argument-comment. r=dzbarsky 2016-09-09 10:45:00 +02:00
Andi-Bogdan Postelnicu 3fb6fb25a2 Bug 1302109 - if mDocument is null return from PreloadURI. r=baku
MozReview-Commit-ID: FoSVrK9PT3s

--HG--
extra : rebase_source : 5ce2721bb02d4277008ee97ac4e102f6301ac198
2016-09-12 17:22:15 +03:00
Byron Campen [:bwc] 6b8b80240c Bug 1298586: Wait for an additional frame. r=drno
MozReview-Commit-ID: JWY1nRICIBh

--HG--
extra : rebase_source : dd5b9363855b1af5db4128e53bfb4afaa86c27ce
2016-09-08 16:19:05 -05:00
JW Wang 09fb09e249 Bug 1302001. Move some code to WaitForCDMState. r=kaku
MozReview-Commit-ID: RAvuVs7Ykq

--HG--
extra : rebase_source : e363f0abdc82cb560bc8f8a9460544195d46de53
2016-09-06 15:01:30 +08:00
Andrea Marchesini b5d19337d3 Bug 1287747 -GetFilesHelper must release callbacks and promises on the main-thread only, r=smaug 2016-09-11 09:56:54 +02:00
Phil Ringnalda 44d91680e6 Merge autoland and inbound to central, a=merge 2016-09-10 22:37:31 -07:00
Phil Ringnalda 63ae7b1759 Merge m-c to m-i 2016-09-10 15:36:23 -07:00
Phil Ringnalda 4ff9cb1f3b Merge m-c to autoland 2016-09-10 15:35:11 -07:00
Phil Ringnalda cb86e22f16 Bug 1285531 - Skip all webgl reftests on Android for causing memory corruption resulting in crashes, often in later non-webgl tests, a=unfortunatesituation 2016-09-10 15:03:38 -07:00
Sebastian Hengst 402cb656c2 Backed out changeset 0c9c5b508ccd (bug 1206133) for failing browser-chrome test browser_popupNotification_checkbox.js. r=backout 2016-09-10 23:41:18 +02:00
Phil Ringnalda 3748f182f6 Merge m-i to m-c, a=merge 2016-09-10 00:14:21 -07:00
Igor 60cd1e3bb7 Bug 1296180 - Replace more uses of PR_ARRAY_SIZE with mozilla::ArrayLength. r=keeler,mt 2016-09-09 13:17:52 -07:00
Alexandre Lissy be9a9e8643 Bug 1302359 - Fix Promise.Reject() typo from bug 1299072 r=jya
MozReview-Commit-ID: 42XAL3TFGIF
2016-09-13 10:32:54 +02:00
Jean-Yves Avenard 96452b1a61 Bug 1299072: P19. Pass errors when we failed to create a decoder. r=gerald
MozReview-Commit-ID: 7eMfaCQiH5r

--HG--
extra : rebase_source : d8459be09567c00fc0d1b45f729432f4c2cb6351
2016-09-13 13:07:26 +10:00
Jean-Yves Avenard 70ed5282de Bug 1299072: P18. Use MediaResult with InitPromise. r=gerald
MozReview-Commit-ID: JiLgiyxvfNC

--HG--
extra : rebase_source : 4cc453a5fe7b1e4f4b865c31a24a5feed64df7e4
2016-09-13 13:06:18 +10:00
Jean-Yves Avenard ad3b418b6d Bug 1299072: P17. Return last decoding error once threshold reached. r=gerald
MozReview-Commit-ID: JbZkoErRFla

--HG--
extra : rebase_source : 95122ed1628685c20fe2a21840faaee5dc9dd010
2016-09-13 13:03:21 +10:00
Jean-Yves Avenard 670f93312d Bug 1299072: P16. Add mochitest. r=gerald
MozReview-Commit-ID: FRb74jIAyLN

--HG--
extra : rebase_source : 70004e5ae9da8ac7fc8957a2eb3c6600c60a19d7
2016-09-13 11:15:57 +10:00
Jean-Yves Avenard 829f0d44fc Bug 1299072: P15. Provide additional error details for most remaining decoders. r=gerald
Additionally, mark non fatal decoding error as such.

Due to the complexity of WMF decoder error handling, this will be done in a follow up bug.

MozReview-Commit-ID: KHWORM8899c

--HG--
extra : rebase_source : 77ada9bb95ba4d44d1bca209e4a7d28369f24f6e
2016-09-13 11:15:36 +10:00
Jean-Yves Avenard 5b7653c571 Bug 1299072: P14. Use MediaResult between TrackBuffersManager and MediaSourceDemuxer. r=gerald
MozReview-Commit-ID: 99EopLYqjWh

--HG--
extra : rebase_source : a5c54de401dc0ef3d20b3c35a724666c152d6c0d
2016-09-12 15:44:31 +10:00
Jean-Yves Avenard 57a4871bb2 Bug 1299072: P13. Use MediaResult with TrackBuffersManager internal promises. r=gerald
MozReview-Commit-ID: AjeEAGGsetQ

--HG--
extra : rebase_source : c8b3ec6247314e53cb2c5bef1db6bb5f84d0a371
2016-09-12 15:17:16 +10:00
Jean-Yves Avenard 20dc9102e8 Bug 1299072: P12. Use MediaResult for MediaDataDemuxer promises. r=gerald
MozReview-Commit-ID: JeQrmoHbb8m

--HG--
extra : rebase_source : 1f4581e5789f18b358a6f5bb5f8595cc7a75110b
2016-09-12 12:22:20 +10:00
Jean-Yves Avenard 162fa5f03b Bug 1299072: P11. Use MediaResult with AppendBuffer promises. r=gerald
Will allow to pass detailed failure causes in a followup patch.

MozReview-Commit-ID: 5yGjzZNcYWg

--HG--
extra : rebase_source : fdd76c98900320352ee3c349de1c40df29122ca9
2016-09-12 08:54:10 +10:00
Jean-Yves Avenard 6a25692b20 Bug 1299072: P10. Pass decoding error details to media element's error attribute. r=jwwang
MozReview-Commit-ID: 49DurV9WI5S

--HG--
extra : rebase_source : 469e6ed4e222fb6d6ac34843c3c3346a044c6023
2016-09-11 00:56:09 +10:00
Jean-Yves Avenard 00e8a7dabc Bug 1299072: P9. Pass decoding error details to MediaDecoder. r=jwwang
MozReview-Commit-ID: uXWHhTozon

--HG--
extra : rebase_source : 7736b9d969dc680b08bffbc7610271d5cc0272be
2016-09-11 00:51:13 +10:00
Jean-Yves Avenard f9b88ac91f Bug 1299072: P8. Pass decoding error details through SeekTask. r=jwwang
MozReview-Commit-ID: bfsL6rBUfm

--HG--
extra : rebase_source : 3756e87e3b418983d86c0f04117ca176c7353df1
2016-09-11 00:45:34 +10:00
Jean-Yves Avenard a3d152a719 Bug 1299072: P7. Use MediaResult with MetadataPromise. r=jwwang
MozReview-Commit-ID: KrRr8wDuPNT

--HG--
extra : rebase_source : 3df3763890a55c898ca3f00dd914e3c78fe714b1
2016-09-10 19:56:50 +10:00
Jean-Yves Avenard c590867926 Bug 1299072: P6. Pass decoding error details to MDSM and relatives. r=jwwang
MozReview-Commit-ID: 4ow2nF6Syz

--HG--
extra : rebase_source : d8cc561f42ca774b3a2865042392fb4a6aea82fa
2016-09-10 16:48:53 +10:00
Jean-Yves Avenard 3108deb75c Bug 1299072: P5. Don't rely on specific error to assess recoverability. r=jwwang
MozReview-Commit-ID: KSmW2TEBO9y

--HG--
extra : rebase_source : d85ea0f63ce2ce20b50b5c1f2a9e06c612e3e909
2016-09-10 10:49:54 +10:00
Jean-Yves Avenard f4efa8be06 Bug 1299072: P4. Return extended failure details to reader. r=gerald
We provide even further details for the GMP decoder. Other decoders to follow.

MozReview-Commit-ID: 7NxJPec8xWv

--HG--
extra : rebase_source : f44120983070e5c107ecd5cafc762da90aab44bf
2016-09-10 09:56:53 +10:00
Jean-Yves Avenard ccf43e591a Bug 1299072: P3. Add MediaResult object. r=gerald
MozReview-Commit-ID: CNedjeEi6PE

--HG--
extra : rebase_source : 809450efef0f5e32cb80540881b1454545fe83b2
2016-09-10 01:23:31 +10:00
Jean-Yves Avenard 9be58da88a Bug 1299072: P1. Add message attribute to MediaError object, r=bz,Ehsan,gerald
MozReview-Commit-ID: HT6mIg4X0Sz

--HG--
extra : rebase_source : f2f0bac85df1347c0df236741efe92cac78bf969
2016-09-09 15:43:25 +10:00
Kaku Kuo 5286ffa8da Bug 1284350. Reland on top of backouts "Bug 1299065 - invisible elements in the foreground should also be recorded; r=gerald" r=kaku
Instead of "not visible", "approximately visible", and "visible" (in display port) we now have "approximately not visible", and "approximately visible" which includes "visible".
2016-08-30 14:53:04 +08:00
Thomas Wisniewski b8a8b73745 Bug 933759 - Match the spec's IDL for the XHR open method. r=baku
--HG--
extra : rebase_source : 0fec6c032b30736c8979657e3b87db5ca630df6c
2016-09-12 09:48:30 -04:00
Kannan Vijayan df8950c7af Bug 1301091 - Make FlyWeb not use gNeckoParent. Fix WebSocketChannel handling of incoming requests to server-websocket. r=billm r=michal 2016-09-09 13:41:32 -04:00
Paul Adenot ee6b91ee10 Bug 1301518 - Support mapping family 255 when playing an Opus file, for use with the Web Audio API. r=jya
MozReview-Commit-ID: AaTCp16m6ks
2016-09-09 17:10:09 +02:00
Carsten "Tomcat" Book 0f2c669a48 merge mozilla-inbound to mozilla-central a=merge 2016-09-09 12:02:43 +02:00
Carsten "Tomcat" Book 89dba842cb merge fx-team to mozilla-central a=merge 2016-09-09 12:01:21 +02:00
Phil Ringnalda 4b1303cc59 Back out 1eb6e4e4060f (bug 1296180) for Windows warning-as-error bustage
CLOSED TREE
2016-09-08 23:30:12 -07:00
Igor d42cc2cb4e Bug 1296180 - Replace more uses of PR_ARRAY_SIZE with mozilla::ArrayLengh. r=mt 2016-09-08 22:35:12 -07:00
kearwood a3d9112f3c Bug 1296446 - Do not render VR frames until a WebGLContext has returned a mirroring layer r=jgilbert
- Fixes a crash that occurred when WebVR frames were rendered prior to
  setting up the WebGLContext for mirroring back to the 2d display.

MozReview-Commit-ID: Fq4c2287KBL

--HG--
extra : rebase_source : e0e0416f1d6a5f9058c7ed89581b700f32712e72
2016-09-08 14:16:07 -07:00
Kan-Ru Chen 8d637c482f Bug 1301339 - Annotate content shutdown hang due to nested event loop in RecvShutdown. r=billm
We currently allow nested event loop to delay ContentChild::RecvShutdown
which in turn might cause content process shutdown hang. This patch
attempts to annotate the crash report that a shutdown hang was after we
have received RecvShutdown but never reach SendFinishShutdown or the
hang happened before or after RecvShutdown.

MozReview-Commit-ID: 8pGqwzLlYpK

--HG--
extra : rebase_source : 78fdec0c29ded1abbd6651c67fe5c97f63555635
2016-09-08 17:23:57 +08:00
J. Ryan Stinnett b7ca8b1d80 Bug 1301514 - Destroy browser API frame scripts during swap. r=kanru
When swapping content from <iframe mozbrowser> to <xul:browser>, we now stop the
frame scripts that implement the content side of the browser API since they are
no longer needed and can cause issues if they remain active.

MozReview-Commit-ID: JrecxA4MI93

--HG--
extra : rebase_source : cc68b975c7d82035410a647ff66eab130055ed04
2016-09-08 16:00:12 -05:00
J. Ryan Stinnett bcefcd65fe Bug 1301514 - Clarify ownership of BrowserElementIsReady. r=kanru
It wasn't immediately obvious to me that BrowserElementIsReady was correctly
guarding against re-running the browser element scripts in a frame.  After more
testing, it was working, but I've added some debug lines for future clarity.
No functionality changes in this patch.

MozReview-Commit-ID: CW4o2TsGKmj

--HG--
extra : rebase_source : 62ec06d4b75f90b3478e403906efaa2f3c3658e2
2016-09-07 17:45:13 -05:00
Alastor Wu 48bbee4b31 Bug 1290467 - part7 : enable audio competing for non-audible media. r=baku
In general, the audio competing should only be for audible media and it helps user can focus on one media at the same time. However, we hope to treat all media as the same in the mobile device.

First reason is we have media control on fennec and we just want to control one media at once time. Second reason is to reduce the bandwidth, avoiding to play any non-audible media in background which user doesn't notice about.

MozReview-Commit-ID: yB3181cmVE

--HG--
extra : rebase_source : 0f7bc1d4e9fc3f68e2085f59eb0a313d44a1c058
2016-09-09 09:50:40 +08:00
Alastor Wu 122f712890 Bug 1290467 - part1 : dispatch 'media-playback' event. r=baku
Use 'media-playback' event to control the media control interface on Fennec.

MozReview-Commit-ID: D8SU96RrkbQ

--HG--
extra : rebase_source : 16a13e3b1a450a2949cb62b77a53311797daaaf2
2016-09-09 09:49:22 +08:00
Chris Pearce e99ce4a9c7 Bug 1294003 - Ensure we destroy DXVA2Manager on main thread if DXVA init fails. r=mattwoodrow
If initializing DXVA fails, we end up destroying the DXVA2Manager on the
decode task queue. The DXVA2Manager asserts that it's destroyed on the
main thread, so we should dispatch a task to destroy it on the appropriate
thread instead of destorying it on the wrong one.


MozReview-Commit-ID: 2pbeMOm74et

--HG--
extra : rebase_source : c4a6871877747d4e04494c638d83b225decaf249
2016-09-09 16:12:50 +12:00
Shing Lyu db11558e50 Bug 1288350 - Temporary reftest list for Stylo vs Gecko test r=heycam,manishearth
--HG--
extra : rebase_source : 4772418bd2813d4e79643a833eb09e47fe893d84
2016-09-05 11:45:39 +08:00
Gerald Squelart b94f8cfb3e Bug 1301561 - Change media.decoder.heuristic.dormant.timeout to 10000 (ms) - r=jwwang
MozReview-Commit-ID: BibXsBpjIQe

--HG--
extra : rebase_source : 7e2afca18bf8e988455d2fb3eb71866f140808e5
2016-09-09 11:00:21 +10:00
Nicholas Nethercote 5622a00748 Bug 1297300 - Add missing checks to GetSpec() calls in dom/xbl/. r=bz.
--HG--
extra : rebase_source : b7279c4ce02ac111c39dc099652fe0837b98f30b
2016-09-08 14:19:01 +10:00
Nicholas Nethercote e4eb76b618 Bug 1297300 - Add missing checks to GetSpec() calls in dom/base/. r=bz.
--HG--
extra : rebase_source : 55e83aad222825b2dd1399fa42eee6b6c894d0ee
2016-09-08 14:17:58 +10:00
Matt Woodrow 99bf9b18df Bug 1301294 - Remove unnecessary nsresult return value from MediaDataDecoder interface. r=jya 2016-09-09 15:50:37 +12:00
Phil Ringnalda b33391adc0 Back out ec584a62ec26 (bug 918719) for Android failures in test_bug918719.html 2016-09-08 19:02:30 -07:00
Brad Werth 4ca89baabe Bug 1281446 - Resolved value of grid-template-columns/rows now lists removed auto-fit tracks as 0px. r=mats
--HG--
extra : rebase_source : 1590c0690945a702ab519b6aa66c90e2a2e86222
2016-09-08 08:40:06 -07:00
Eric Rahm 1336ff37a4 Bug 1287292 - Use fallible unicode conversion in XHR. r=baku
When sending a string via XHR use fallible conversion to avoid OOMing if
content provides a particularly large string.
2016-09-08 16:50:38 -07:00
Jessica Jong c51974390f Bug 1278192 - Implement the value sanitizing algorithm for <input type=week>. r=smaug
--HG--
extra : source : 6ee805904d2d54728be175ddb60466acbb78c242
2016-09-08 15:39:01 -07:00
Thomas Wisniewski 89a07725ed Bug 918719 - Only fire one loading readystatechange per XHR, but keep the old behavior available behind the preference dom.send_multiple_xhr_loading_readystatechanges. r=smaug a=smaug
--HG--
extra : source : ea777ccca86cceeb53d2fc7252bea2a3bad3e405
2016-09-08 12:01:58 -04:00
Wes Kocher c067786818 Merge m-c to inbound, a=merge CLOSED TREE 2016-09-08 15:28:31 -07:00
Wes Kocher 14246ed95a Backed out 7 changesets (bug 1298938) for mass leaks a=bustage CLOSED TREE
Backed out changeset d710b5ac1e13 (bug 1298938)
Backed out changeset df832e32e7aa (bug 1298938)
Backed out changeset 3f6883401be4 (bug 1298938)
Backed out changeset e43fc0029b90 (bug 1298938)
Backed out changeset 6dd0b4b22b23 (bug 1298938)
Backed out changeset 81e994db6b8c (bug 1298938)
Backed out changeset a757098353c6 (bug 1298938)
2016-09-08 13:28:14 -07:00
Wes Kocher b916384275 Merge inbound to m-c a=merge 2016-09-08 15:21:19 -07:00
Carsten "Tomcat" Book e3c2ddf887 Merge mozilla-central to mozilla-inbound 2016-09-08 12:42:45 +02:00
Carsten "Tomcat" Book f4a16a723a merge mozilla-inbound to mozilla-central a=merge 2016-09-08 12:01:17 +02:00
Carsten "Tomcat" Book 37712d149e merge fx-team to mozilla-central a=merge 2016-09-08 12:00:23 +02:00
Andi-Bogdan Postelnicu 308b1506f6 Bug 1301333 - mark Init as initialisation function for EventSource. r=baku
MozReview-Commit-ID: Ef8oHnmrZM8
2016-09-08 12:40:46 +03:00
James Cheng 33ba2fa9ac Bug 1300693 - adjust the indent. r=jya
MozReview-Commit-ID: 1CMzYy3jQPC

--HG--
extra : transplant_source : %5E%CB%B3%26%FA%B5I%E3L%25%0F%C2%82%12%F2%C8-%CA%E0%D7
2016-09-07 15:31:22 +08:00
Dylan Roeh a7e4e213c4 Bug 1299454 - Round event value before creating a DeviceLightEvent. r=snorp 2016-09-08 01:07:59 -05:00
David Anderson dfe373c79e Protect ImageBridgeChild's singleton with a StaticMutex. (bug 1298938 part 5, r=mattwoodrow)
--HG--
extra : rebase_source : ca2adf8e3a11e35633fdafd8a824e6528a3b7182
2016-09-08 11:29:32 -07:00
David Anderson 91559fcffe Remove racy ImageBridgeChild shutdown/creation checks. (bug 1298938 part 4, r=nical)
--HG--
extra : rebase_source : 47d1a0b3da521d81da9ffea7e259104b508b7415
2016-09-08 11:29:31 -07:00
Kannan Vijayan c06523ac3b Bug 1292639 - Ask user permission before allowing navigator.publishServer. r=mconley r=ehsan r=sebastian 2016-09-08 14:36:53 -04:00
Jeff Gilbert 06b3ddf5fd Bug 1300932 - Enable draw_buffers on ES3, but not WEBGL_draw_buffers. - r=jerry
MozReview-Commit-ID: DMUoG23WTmr
2016-09-08 11:34:32 -07:00
Ehsan Akhgari 67f68a06ad Bug 1300851 - Don't use expanded principals when creating the about:blank content viewer eagerly; r=bzbarsky 2016-09-08 14:32:28 -04:00
Nicolas Silva 56e5119c61 Bug 1301027 - Remove the matrix * point operator and replace it with TransformPoint methods. r=Bas 2016-09-08 18:26:03 +02:00
JW Wang 2487c1c0d0 Bug 1300497. Part 6 - remove the call to |SetState(DECODER_STATE_SHUTDOWN)| from DecodeError(). r=kaku
So we have only one place to transition to the SHUTDOWN state which is Shutdown().

MozReview-Commit-ID: 6MNISCea94Q

--HG--
extra : rebase_source : 3e5a2084a158fc9569b3b7d3b95033d7fe4233b2
2016-09-06 15:33:20 +08:00
James Cheng 0f5d118564 Bug 1300693 - BBCiPlayer (TV) HTML5 broken in Nightly 51.0a1. r=jya
MozReview-Commit-ID: KY0EpZGZ85A

--HG--
extra : transplant_source : %29%99%8FQ%8B%3A%D9%CC%F6o%8E%B7%82%D0I%EF%D6Y%3C%87
2016-09-06 14:16:07 +08:00
Jean-Yves Avenard dc791c944e Bug 1280023: [MSE] P2. Drop audio size threshold to 10MB. r=gerald
Following bug 1301307, exception is properly thrown when buffer is full, giving the opportunity to the JS player to adjust accordingly. Confirmed to work with YouTube with an audio threshold of only 1MB.

MozReview-Commit-ID: 77K8UPhb9zj

--HG--
extra : rebase_source : 64b75f7f563ba9d6fc0c6feeaf7c945894fd6a06
2016-09-08 21:16:14 +10:00
Jean-Yves Avenard 96b8e1d552 Bug 1280023: [MSE] P1. Never evict data in the media segment currently being played. r=gerald
MozReview-Commit-ID: 3yCHYzdavWA

--HG--
extra : rebase_source : 96d4197501d0e629130524f415e7c39b0ca82072
2016-09-08 21:00:46 +10:00
Jean-Yves Avenard be3f2c08c0 Bug 1301307: [MSE] Throw error when sourcebuffer is full and no data could be evicted. r=gerald
MozReview-Commit-ID: GWil57B0QBc

--HG--
extra : rebase_source : b1ba6f150546f2f9fe4c0b6780bce7c97c0a95bc
2016-09-08 19:58:32 +10:00
JW Wang cd7ef56af7 Bug 1300497. Part 5 - run MDSM cycles immediately in the callback of mDelayedScheduler. r=kaku
There is no point in scheduling an addition cycle to do that.
Also remove the annoying debugging message which is not helpful.

MozReview-Commit-ID: BMjeTNg6HCY

--HG--
extra : rebase_source : df1be5984072fd64070bd5da98e7e27a46c59756
extra : source : 93c2408e698b0e597b6ab8cb47255c53cf65e67d
2016-09-05 17:51:54 +08:00
JW Wang bac7dcf291 Bug 1300497. Part 4 - remove the call to ScheduleStateMachine() before |SetState(DECODER_STATE_SHUTDOWN)| and cancel mDelayedScheduler in Shutdown(). r=kaku
We don't want to run MDSM cycles anymore once shutdown begins.

MozReview-Commit-ID: 7Py20oqWNBG

--HG--
extra : rebase_source : 42793b4463593cf4efa7eae6d59c79dc528a82b2
2016-09-06 10:26:45 +08:00
JW Wang 597125576a Bug 1300497. Part 3 - move some code from FinishShutdown() to Shutdown(). r=kaku
We don't want to receive notifications from MediaEventSource or WatchManager once shutdown begins.

MozReview-Commit-ID: LiKUjOGuxyX

--HG--
extra : rebase_source : 05af4df691f174e8c4c6082bafc14c04534ce8fa
2016-09-06 10:23:02 +08:00
JW Wang 9a14792ce2 Bug 1300497. Part 2 - constify and fix the comment of IsShutdown(). r=kaku
MozReview-Commit-ID: AsZwNPAlq0d

--HG--
extra : rebase_source : 5c3b501b8f8c1ada93504f4d379bf8f581f42913
2016-09-05 16:50:06 +08:00
JW Wang f99b17804a Bug 1300497. Part 1 - assert we never escape the SHUTDOWN state. r=kaku
MozReview-Commit-ID: JDWdFAGZijm

--HG--
extra : rebase_source : 625a0e6f73b39e414a8582d4329a48b2664535c8
2016-09-05 16:38:09 +08:00
Shih-Chiang Chien db74baa4e1 Bug 1264110 - fix timing issue in test cases. r=kershaw.
MozReview-Commit-ID: 2Ia4L7EizrA

--HG--
extra : rebase_source : dda92d84e51a124d5820176d36cada7c20bfad2e
2016-09-05 18:18:11 +08:00
Jean-Yves Avenard ecc1d76946 Bug 1301068: Ensure InputExhausted is called if H264Converter drops a frame. r=gerald
MozReview-Commit-ID: LyZlzU4D58o

--HG--
extra : rebase_source : 8819e290ab46c32052cf1fc800ba49683f7db2b5
2016-09-08 00:22:06 +10:00
Jean-Yves Avenard 9b0354c08b Bug 1300296: P3. Ensure that a new or flushed decoder first h264 frame is always a keyframe. r=gerald
MozReview-Commit-ID: s0NEB8hesj

--HG--
extra : rebase_source : f1ac8aaf58861025cd2bf54d90a14b71d6504b31
2016-09-06 11:47:20 +10:00
Wes Kocher 1691a32cc5 Merge m-c to fx-team, a=merge 2016-09-07 18:08:34 -07:00
Wes Kocher 5cbc382303 Merge inbound to m-c a=merge 2016-09-07 17:54:24 -07:00
Sebastian Hengst 8325679a58 Backed out changeset a71b7098d0c6 (bug 1290914) for failure in test_findbar.xul. r=backout 2016-09-07 18:38:03 +02:00
Sebastian Hengst c32d429f6e Backed out changeset 7158434e674a (bug 1290914) 2016-09-07 18:37:24 +02:00
Carsten "Tomcat" Book 7c6c7db247 Merge mozilla-central to autoland 2016-09-07 17:26:11 +02:00
Carsten "Tomcat" Book 1c61ba654e merge mozilla-inbound to mozilla-central a=merge 2016-09-07 17:20:12 +02:00
Carsten "Tomcat" Book ebddf3b267 merge fx-team to mozilla-central a=merge 2016-09-07 17:13:53 +02:00
Mike de Boer ec93a96045 Bug 1290914 - move the matches count and highlight-all request from the findbar binding to the JS module in the content process, so it's closer to the metal. r=jaws
MozReview-Commit-ID: IgPlFro1bg9

--HG--
extra : rebase_source : 67e1f08003e26295377ffb0d17ffe902ea49970f
2016-09-07 12:03:45 +02:00
Mike de Boer 8b64dbde69 Bug 1290914 - support Element.animate() on AnonymousContent nodes through the AnonymousContent.setAnimationForElement() method. r=bz
MozReview-Commit-ID: 3Wl5yAjHGPN

--HG--
extra : rebase_source : 8668da8dba231809cf3d5c1f70394f44789f1b98
2016-09-07 12:01:17 +02:00
Matteo Ferretti 46b536cd2f Bug 1299154 - added Set/GetOverrideDPPX to restorefromHistory; r=mstange
MozReview-Commit-ID: AsyAcG3Igbn
2016-09-07 10:21:51 +02:00
William Lachance 21a99bf25f Bug 1295453 - Don't wait for data to be sent when closing socket immediately r=jdm
We can't guarantee any data will be written, it should suffice to just
make sure that the socket closes immediately and then verify that
a complete set of data wasn't read.

MozReview-Commit-ID: CHHuJEGRVgX

--HG--
extra : rebase_source : 2269b73a4497011c9604628710055a0fc08e0470
2016-09-06 15:51:51 -04:00
Masayuki Nakano a1c3cc4ad1 Bug 1296217 ContentEventHandler::OnQueryTextRectArray() should apply CSS transform to each character or line breaker rect r=smaug
Currently, ContentEventHandler::OnQueryTextRectArray() is used only in e10s mode (at caching necessary character rects in ContentCacheInChild).  Therefore, this bug occurs only in e10s mode.

ContentEventHandler::OnQueryTextRectArray() applies CSS transform only to each frame rect.  Therefore, character rect's width and height are not applied.

This patch makes the loop apply CSS transform to each character or line breaker rect (i.e., each item of charRects).  Then, we need to rewrite the lastCharRect hack.  It stores the last charRect value for computing next line breaker rect if next line breaker is caused by a block level element or something, i.e., not caused by a <br> frame.  So, when brRect is computed with lastCharRect, the loop needs to apply CSS transform of the last text frame to the following brRect because it tries to compute a caret rect immediately after the last character.  For doing this, this patch adds lastFrame which stores the last frame for lastCharRect and set it to baseFrame.  Then, at applying CSS transform to each charRect, it can apply CSS transform of expected frame.

Similarly, when brRect is computed with last text frame, this patch looks for the last text frame from lastTextContent and use it as base frame to apply to CSS transform.

MozReview-Commit-ID: 5Yr2HMrooHd

--HG--
extra : rebase_source : fa643f442036d9167a1df3a4383b0802a1729a3e
2016-09-06 11:46:31 +09:00
Wes Kocher a6dc9d6506 Merge m-c to autoland, a=merge 2016-09-06 17:36:41 -07:00
Wes Kocher 7f5dc92c8d Merge inbound to central, a=merge 2016-09-06 17:28:05 -07:00
Sebastian Hengst 8df190bd97 Backed out changeset 71b9d48efac6 (bug 1286041) for failing wpt mediasource-seek-beyond-duration.html on Linux. r=backout on a CLOSED TREE 2016-09-06 19:08:20 +02:00
Sebastian Hengst aaf35da4fc Backed out changeset 232069c62626 (bug 1286041) 2016-09-06 19:07:22 +02:00
Sebastian Hengst c150583370 Backed out changeset bb04b5569ab9 (bug 1286041) 2016-09-06 19:06:51 +02:00
Phil Ringnalda 34a0d1394b Merge m-c to m-i 2016-09-06 07:38:37 -07:00
Phil Ringnalda 3c79ba57f9 Merge m-c to autoland 2016-09-06 07:37:13 -07:00
Phil Ringnalda c0b76fe4b9 Back out 94bf7c3ec5aa (bug 1292299) for Android permaorange in test_bug704320.html 2016-09-06 07:33:31 -07:00
Carsten "Tomcat" Book 75626b7043 Merge mozilla-central to mozilla-inbound 2016-09-06 15:42:31 +02:00
Paul Adenot bf8d30bacd Bug 1286041 - Disable an assert when using winmm, on a CLOSED TREE. r=achronop
MozReview-Commit-ID: HHWIDARNPft
2016-09-06 15:34:57 +02:00
Carsten "Tomcat" Book a1c780edbb merge mozilla-inbound to mozilla-central a=merge 2016-09-06 15:28:44 +02:00
Carsten "Tomcat" Book a113face7e Merge mozilla-central to autoland 2016-09-06 15:46:44 +02:00
Andi-Bogdan Postelnicu b2e0ff7828 Bug 1300745 - remoed unused variable from CustomElementDefinition. r=baku
MozReview-Commit-ID: Ea9O9YwrIH6

--HG--
extra : rebase_source : e077745c9b0daf02e2e235e732fe3264a9b4aef4
2016-09-06 14:38:10 +03:00
Andi-Bogdan Postelnicu a67d0235f7 Bug 1300757 - log error message if SkiaGL DrawTarget fails. r=baku
MozReview-Commit-ID: EQqXFp3W79X

--HG--
extra : rebase_source : 2074a52d765f3e17e63bd413aa66c2b0cf3f2a3a
2016-09-06 15:31:08 +03:00
Andreas Pehrson 5c882b1fe8 Bug 1300529 - Remove default arguments from AudioNodeStream::Create. r=padenot
MozReview-Commit-ID: KG8PtBbJrc2

--HG--
extra : rebase_source : 4be41a0dff23a62dfa43699a1e0ebd8c429b41b7
2016-09-05 17:25:41 +02:00
Andreas Pehrson c166a2bf07 Bug 1300529 - Remove default arguments from HTMLMediaElement::CaptureStreamInternal. r=padenot
MozReview-Commit-ID: IL7odCBP74

--HG--
extra : rebase_source : 3202348010f7c22a218fd37ad745ae7332fb007c
2016-09-07 15:14:15 +02:00
JW Wang d2fd8a9859 Bug 1300479. Part 3 - extract RunStateMachine() cases to its own function. r=kaku
MozReview-Commit-ID: LNLu7X8VD3s

--HG--
extra : rebase_source : 05c6ff7546d334e32bb3f57c17298f323f5a7111
2016-09-05 15:48:37 +08:00
JW Wang 69c466b569 Bug 1300479. Part 2 - replace empty cases with the default case. r=kaku
MozReview-Commit-ID: 7iXd8UtivEn

--HG--
extra : rebase_source : 6315d9e7775aaf293da588b9bf1fa0a031c853dc
2016-09-05 15:35:55 +08:00
JW Wang 43717c4c92 Bug 1300479. Part 1 - remove the aState parameter from EnterState()/ExitState() for we always pass mState. r=kaku
MozReview-Commit-ID: 8YLxMpevEJS

--HG--
extra : rebase_source : 493069c806c4e50cd617dab4db50595f7c51e83e
2016-09-05 15:28:37 +08:00
Phil Ringnalda f61de903c4 Backed out changeset cbf25d6711b7 (bug 1291946) for timeouts in test_peerConnection_addtrack_removetrack_events.html 2016-09-05 21:41:12 -07:00
Jean-Yves Avenard 75e90695b5 Bug 1300296: P2. Don't rely on MP4 container to properly report if a frame is a keyframe. r=kentuckyfriedtakahe
There are too many cases where the MP4 is improperly muxed and frames are incorrectly reported as keyframe.
Instead we now look inside the H264 stream and check for IDR frames.

We also ensure that the first frame returned after a seek is always a true keyframe.

For plain MP4, seeking in those broken files will lead to broken A/V sync. The only way to fix this would be to check for the frame type when reading the samples table. However, this would require to read the entire stream which isn't viable.

MozReview-Commit-ID: Cpv5y7HVD0N

--HG--
extra : rebase_source : 2f92032fe39ed6ad6c2b82438f405040b5e7d30c
2016-09-04 21:33:23 +10:00
Wes Kocher ac33516b3c Merge m-c to autoland, a=merge 2016-09-07 18:07:50 -07:00
Boris Zbarsky e664d8bcd3 Bug 1299373. Scripts with an empty src attribute should not execute. r=bkelly 2016-09-07 14:21:36 -04:00
Boris Zbarsky 4e2656ef99 Bug 1300834. GC slice logging should say what process the slice is for. r=smaug 2016-09-07 14:21:36 -04:00
Kannan Vijayan f671b30c0f Backout cbe18f181112 for crashes - bug 1292639 2016-09-07 13:43:40 -04:00
Ehsan Akhgari 1348bcfdce Bug 1300884 - Remove the alarms API; r=fabrice 2016-09-07 13:26:04 -04:00
Wes Kocher 92e5271008 Backed out 17 changesets (bug 1277504, bug 1218577, bug 1218576) for ASAN bc2 failures a=backout
Backed out changeset 62009556e4ad (bug 1218576)
Backed out changeset 57f9849f0f8f (bug 1218576)
Backed out changeset 9595c56c9db2 (bug 1277504)
Backed out changeset 9d15ae92f2fa (bug 1218576)
Backed out changeset ea7282078b05 (bug 1218576)
Backed out changeset 848f4ef30978 (bug 1218576)
Backed out changeset 1b6666eb3b81 (bug 1218576)
Backed out changeset ce2a2dabb042 (bug 1218576)
Backed out changeset 3caacb5c213b (bug 1218576)
Backed out changeset c68fc5ad5ecf (bug 1218576)
Backed out changeset 1678482b2fad (bug 1218576)
Backed out changeset df28918fe236 (bug 1218576)
Backed out changeset eb5dbe28ab20 (bug 1218576)
Backed out changeset baf105cbe0c8 (bug 1218576)
Backed out changeset 7fdd6b6ab594 (bug 1218576)
Backed out changeset a0a4829d0ca0 (bug 1218577)
Backed out changeset fc16cda7781b (bug 1218576)
2016-09-07 10:18:17 -07:00
Alexandre Lissy e458f6fbc5 Bug 1301010 - Add missing Unused.h, StorageManager.h r=fabrice
MozReview-Commit-ID: 3ehLQTtBChb
2016-09-07 18:52:58 +02:00
Ehsan Akhgari 108462c57c Bug 1300831 - Avoid creating about:blank windows with expanded principals; r=bholley 2016-09-07 12:52:11 -04:00
Andrea Marchesini 8ccb3ca885 Bug 1301032 - Remove a warning when Console.cpp is compiled, r=smaug 2016-09-07 18:08:23 +02:00
Jean-Yves Avenard 747d2faea4 Bug 1294154: Handle case where WMF is unable to determine time and duration. r=mattwoodrow
The WMF decoder doesn't handle well the case where a single frame was given to decode.
When draining, the output is a correctly decoded frame but with a time of 0 and a duration set at 1/30th.
This is a workaround

MozReview-Commit-ID: JbjgNmPXKIM

--HG--
extra : rebase_source : f25a1fd503678383265ec5053b41f3116ff52da0
2016-09-02 20:49:17 +10:00
Carsten "Tomcat" Book d98e95abb8 Merge mozilla-central to autoland 2016-09-08 12:51:52 +02:00
James Cheng 2f0406881b Bug 1300693 - adjust the indent. r=jya
MozReview-Commit-ID: 1CMzYy3jQPC

--HG--
extra : rebase_source : 53da0e6ca26eea3d05fae8029402f91711e3fe48
2016-09-07 15:31:22 +08:00
James Cheng 50efc725a2 Bug 1300693 - BBCiPlayer (TV) HTML5 broken in Nightly 51.0a1. r=jya
MozReview-Commit-ID: KY0EpZGZ85A

--HG--
extra : rebase_source : 511b76f9130522dee82154a24a8842061726c0e5
2016-09-06 14:16:07 +08:00
Brian Grinstead 61d266e2c8 Bug 1298230 - Use a more descriptive Syntax Error when querySelector / querySelectorAll fails;r=bz
MozReview-Commit-ID: DtIlA8ocMh0
2016-08-31 15:31:59 -07:00
Mike Conley b56cf3f8af Bug 1298219 - Don't fire oop-browser-crashed event if the browser has already flipped remoteness and moved on. r=billm
We currently make the initial browser in a window remote by default. If early
on in the session, that one remote browser goes away (and the content process
was still booting), there's about 5 seconds before the shutdown kill timer
will take that content process out for not quitting fast enough.

There are some cases during startup where the content process is waiting
on information from the parent, so it cannot respond to the request to
quit in time. The parents shutdown kill timer goes off, and the shutdown
kill occurs.

In this bug, what's happening is that the initial browser flips remoteness
from remote to non-remote when it goes to about:sessionrestore. This starts
the shutdown kill timer. The content process runs out of time, and the
shutdown kill timer fires, killing the content process. The TabParent::ActorDestroy
method (which still exists, even though the browser is no longer remote),
interprets this as an abnormal shutdown, and bubbles the oop-browser-crashed
event to the associated <xul:browser>, which causes the page to browser to
about:tabcrashed, when it had already loaded about:sessionrestore.

This patch makes it so that the TabParent::ActorDestroy method first checks
to ensure that the associated remote frameloader is still the one that the
frameloader owner cares about. If not (because, say, the remoteness has
flipped and a new non-remote frameloader has been created), then the
event is not fired, since the user has moved on.

MozReview-Commit-ID: G4jmR6lMMFl

--HG--
extra : rebase_source : 7e752d9854d6c17b2b346cc986c0fbad00292848
2016-08-31 18:23:40 -04:00
Bryce Van Dyk 9340a1c2d5 Bug 1300442 - Housekeeping and QoL changes: code style, extra logging on VP. r=maja_zf
- Use format() instead of old style formatting (%s, etc).
- Remove unneeded positional args on format strings.
- Break some long lines for pep8 conformance.
- Use brackets instead of \ to continue long lines.
- Log interval on video puppeteer.
- Remove an unneeded media source check. We have explicit media source checks
in tests, and the media source prefix has changed, rendering the check broken.

MozReview-Commit-ID: 4FPVoOD0P5B

--HG--
extra : rebase_source : 3bfdc4a5aee5c419e4ccacc923ec539cbaa1d14f
2016-09-05 11:02:07 +12:00
Wes Kocher 371d1cf853 Backed out 2 changesets (bug 1298219) for asan bc5 crashes a=backout
Backed out changeset 98b0e9b88212 (bug 1298219)
Backed out changeset 5948ae1f4218 (bug 1298219)
2016-09-06 14:40:32 -07:00
Nathan Froyd bfce0c9a55 Bug 1300124 - make MurmurHash3.cpp compile with clang-cl; r=bkelly
Including headers inside anonymous namespaces, especially standard headers,
is super-unusual; let's just move the header to the toplevel instead.

MozReview-Commit-ID: CNykWQA5ndY

--HG--
extra : rebase_source : e5011cd18c1a0d31d4ae15ae3f3697eafac5f575
2016-09-06 15:46:01 -04:00
Mike Conley b43b848475 Bug 1298219 - Don't fire oop-browser-crashed event if the browser has already flipped remoteness and moved on. r=billm
We currently make the initial browser in a window remote by default. If early
on in the session, that one remote browser goes away (and the content process
was still booting), there's about 5 seconds before the shutdown kill timer
will take that content process out for not quitting fast enough.

There are some cases during startup where the content process is waiting
on information from the parent, so it cannot respond to the request to
quit in time. The parents shutdown kill timer goes off, and the shutdown
kill occurs.

In this bug, what's happening is that the initial browser flips remoteness
from remote to non-remote when it goes to about:sessionrestore. This starts
the shutdown kill timer. The content process runs out of time, and the
shutdown kill timer fires, killing the content process. The TabParent::ActorDestroy
method (which still exists, even though the browser is no longer remote),
interprets this as an abnormal shutdown, and bubbles the oop-browser-crashed
event to the associated <xul:browser>, which causes the page to browser to
about:tabcrashed, when it had already loaded about:sessionrestore.

This patch makes it so that the TabParent::ActorDestroy method first checks
to ensure that the associated remote frameloader is still the one that the
frameloader owner cares about. If not (because, say, the remoteness has
flipped and a new non-remote frameloader has been created), then the
event is not fired, since the user has moved on.

MozReview-Commit-ID: G4jmR6lMMFl

--HG--
extra : rebase_source : 7e752d9854d6c17b2b346cc986c0fbad00292848
2016-08-31 18:23:40 -04:00
Chun-Min Chang 50ceb41bab Bug 1299061 - Expose the browser that the request was originated in; r=smaug
MozReview-Commit-ID: 2iFQiYeoxBh

--HG--
extra : rebase_source : c516a7d8cc70c85c0303e27d07854808fe9192aa
2016-08-31 20:56:17 +08:00
Kan-Ru Chen 78c48f9b6d Bug 1300512 - Remove OptionalContentId and replace it with Maybe<ContentParentId> in IndexedDB. r=janv
MozReview-Commit-ID: 6Cjlej1TwCY

--HG--
extra : rebase_source : 2a9990e842a05a2e75b473f6d038b946bf59fc5e
2016-09-05 18:31:21 +08:00
KuoE0 f426111737 Bug 1300492 - Fix typo in PresentationDeviceManager::GetAvailableDevices, r=smaug
MozReview-Commit-ID: DVs5uJUA6H5

--HG--
extra : rebase_source : ce54fd38d8c5781e9103b45d1fd0848b2c59255c
2016-09-05 16:52:59 +08:00
Carsten "Tomcat" Book 656d6db419 Merge mozilla-central to mozilla-inbound 2016-09-07 17:21:27 +02:00
Michael Layzell e12728495c Bug 1018486 - Part 9: Changes to account for modifications to clang plugin, r=ehsan
MozReview-Commit-ID: EPQMbfHYxUK
2016-09-07 10:50:47 -04:00
Michael Layzell c47fca1cd7 Bug 1018486 - Part 1: Changes in dom/, r=baku
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Tom Tung 44ef4d812f Bug 1187335 - P7 - A test for serviceworker and sharedworker on webconsole. r=bkelly. 2016-08-29 16:48:54 +08:00
Tom Tung db38e2111a Bug 1187335 - P6 - Support script/css to set integrity metadata to serviceWorker. r=bkelly. r=francois. 2016-09-07 10:30:21 +08:00
Tom Tung a167b66e90 Bug 1187335 - P4 - Integrate fetch and cache with SRI & add nsIConsoleReportCollector to show console report. r=bkelly. 2016-09-07 10:20:23 +08:00
cku 52058e0fbc Bug 1289011 - Part 3. Handle view-box. r=heycam
MozReview-Commit-ID: 3GsivsTYPYK

--HG--
extra : rebase_source : 814a758605418893de60c2cb677ff4ee06671fe8
2016-08-30 10:27:30 +08:00
Alex Chronopoulos 04d69510e8 Bug 1286041 - Ignore AudioContext state change to Suspended when in Closed. r=padenot
MozReview-Commit-ID: 2VCBMCdx5xz
2016-09-06 13:40:36 +02:00
ctai 1d7c721cfc Bug 1300871 - Rollback to use original duration in video case. r=jesup
MozReview-Commit-ID: 2gK8vvBKtkC

--HG--
extra : rebase_source : 1e1d2f01a1f39685365a7df061eba53c094eb10d
2016-09-08 13:46:48 +08:00
Alfredo.Yang 2488fefb27 Bug 1240412 - add VP9-in-MP4 support to Rust demuxer. r=rillian
MozReview-Commit-ID: 1Yq8OOV3kvM

--HG--
extra : rebase_source : d6ee4404eafef8a476767ebfd17a195f81dcf275
2016-08-29 14:37:22 +08:00
Wes Kocher f9c7432e12 Merge m-c to fx-team, a=merge 2016-09-08 15:29:40 -07:00
Mike de Boer f52eb8430c Bug 1290914 - move the matches count and highlight-all request from the findbar binding to the JS module in the content process, so it's closer to the metal. r=jaws
MozReview-Commit-ID: INYobXmrVj5
2016-09-08 22:38:55 +02:00
Mike de Boer 3e295e6280 Bug 1290914 - support Element.animate() on AnonymousContent nodes through the AnonymousContent.setAnimationForElement() method. r=bz
MozReview-Commit-ID: 39QPaCea7Dx
2016-09-08 22:38:53 +02:00
Andi-Bogdan Postelnicu 59bbadfe2d Bug 1297075 - initialise with default value showAccelerators| and |showFocusRings|. r=baku
MozReview-Commit-ID: EB6F5RvoR9o

--HG--
extra : rebase_source : c746e4874acfb8e2679c01941dfecc96de9c9b10
2016-08-22 17:06:31 +03:00
Andi-Bogdan Postelnicu 1ccbe1644f Bug 1301033 - add assert cx on generated code in order to prevent false-positive from static analysis tools. r=baku
MozReview-Commit-ID: ELTP8E3zRNf

--HG--
extra : rebase_source : e50e2bbb7414b44a38c4bfbbad976ad65c516394
2016-09-07 15:32:02 +03:00
Carsten "Tomcat" Book bf5be9e9d9 Backed out changeset 87880c0f7336 (bug 1300703) on request from jya 2016-09-07 14:14:31 +02:00
Henry Chang 6ea7c1b598 Bug 1229639 - Part 2: Test case. r=ckerschb
MozReview-Commit-ID: GbofB6JoFil

--HG--
extra : rebase_source : dc4ac339817a052f687179988e28ec02764bd3e7
2016-09-06 18:30:12 +08:00
Henry Chang f9eeeb2620 Bug 1229639 - Part 1: Match CSP host source with percent-decoded URI. r=ckerschb
MozReview-Commit-ID: CSGeoSR2qw8

--HG--
extra : rebase_source : f64cb0b9cab61ec09faa29139f72d28272fbbedb
2016-09-06 18:29:26 +08:00
Andi-Bogdan Postelnicu d8fd5713a3 Bug 1300769 - call ConstructPrototype only if mType is NS_HANDLER_TYPE_XUL. r=mrbkap
MozReview-Commit-ID: H7vS03mVj4s

--HG--
extra : rebase_source : 045747d04c04ba589f5b1e7c4a371bc727613fb4
2016-09-07 11:01:51 +03:00
Jean-Yves Avenard 5d2aa966ca Bug 1300703: [webm] Use default duration if known. r=kinetik
MozReview-Commit-ID: J18IdDGkL62

--HG--
extra : rebase_source : fa1e1fdba214f0a0f70656f0523bc76f2cfe5662
2016-09-06 17:23:38 +10:00
Chris Pearce c34ab00fb4 Bug 1274498 - Refuse to play H.264 files which have one or more dimensions less than 48 pixels. r=jya
We've had large numbers of shutdown hangs with the Windows H.264 decoder stuck
calling IMFTransform::ProcessOutput(), blocking shutdown. I can reproduce this
with videos with dimensions less than 32 pixels.

Chrome also encountered this with the WMF decoder:
https://bugs.chromium.org/p/chromium/issues/detail?id=373288

The WMF H.264 Decoder is documented to have a minimum resolution of 48x48 pixels.

So this patch causes us to reject H.264 files with either width or height less
than 48 pixels.

I have been able to play files down to 34x34 pixels on Windows 10, but it seems
safest to just follow the what's documented in MSDN, and reject files that are
smaller than the documented minimum.

MozReview-Commit-ID: 5peP6UGnAaB

--HG--
extra : rebase_source : 6e29812642bc3f8ca0f5b39b36064a6d50e09ea7
2016-09-07 14:16:29 +12:00
John Lin 077d1abae1 Bug 1297307 - Add extra video duration element for EOS sample. r=snorp
MozReview-Commit-ID: 4QUTABCNT06

--HG--
extra : rebase_source : db9a186de79d9fe6a307ffb125f980609224dfdc
2016-08-30 17:40:49 +08:00
Jeremy Chen c6d0429830 Bug 1297306 - part6:replace NS_STYLE_CLEAR_* with StyleClear enum class. r=xidorn
After using enum class, a switch-case warning in CombineBreakType is caught.
This is one of such kind safty checks that we would like to gain.
Fix it by adding default case for switch-case in CombineBreakType.

MozReview-Commit-ID: BdS3LPN6qzX

--HG--
extra : rebase_source : 17f24a0d482ed6eb51b23e6942d0ac1c87375e0b
2016-09-07 10:20:17 +08:00
Jeremy Chen e42a48e81d Bug 1297306 - part5:create enum constructors for EnumTable. r=baku
Enable nsAttrValue::EnumTable to be initialized with enum. So, we could get rid
of the castings in EnumTable. Fix EnumTable initialization comment.

For those untyped enumerations, declare them with uint8_t, as to other typed
enumerations with type size larger than int16_t, force casting to int16_t.

Use {nullptr,0} instead of {0} to represent the last entry.

MozReview-Commit-ID: 7Dma3Apkmxj

--HG--
extra : rebase_source : b2289866c4c33d80c8e170727bf109d018d92f67
2016-09-07 10:20:17 +08:00