James Cheng
0b728954aa
Bug 1413427 - Part1 - Make Mochitest runs EME with https. r=cpearce,kikuo
...
MozReview-Commit-ID: 8EfJTXdQkZG
--HG--
extra : rebase_source : 74999a928db7651e370fc44a551b723c401ef9f5
2017-11-03 12:30:58 +08:00
Jean-Yves Avenard
f22c3a17b9
Bug 1391666 - P4. Remove unecessary code. r=gerald
...
It isn't possible for the End of Stream algorithm to cause an updateend event to fire. Regardless of the duration being modified.
MozReview-Commit-ID: 5RppbtjkboN
--HG--
extra : rebase_source : 6d30be7758bda59c545324358c82c47e6b0c73b1
2017-08-18 21:48:22 +02:00
Jean-Yves Avenard
aefd5c8c8a
Bug 1391666 - P1. Mochitest to verify correct behavior. r=gerald
...
We load 10s of encrypted video, which should trigger readyState being HAVE_ENOUGH_DATA
MozReview-Commit-ID: 4VRLFHSFlDs
--HG--
extra : rebase_source : 919310b00f0ec271a73e149992696bc1eec8cd5f
2017-08-19 12:12:16 +02:00
Jean-Yves Avenard
64c70317ce
Bug 1383122 - P3. Don't set src attribute to null. r=jwwang
...
Setting the src attribute to null was incorrect, per spec https://www.w3.org/TR/WebIDL-1/#es-DOMString , if null is passed, this is to be treated as ToString(null), which is "null" (https://tc39.github.io/ecma262/#sec-tostring ).
Hence setting src to null will cause a 404 error as it attempts to load "null".
To unload the element, recommended practice is:
Per spec:
https://html.spec.whatwg.org/multipage/media.html#best-practices-for-authors-using-media-elements
"by removing the element's src attribute and any source element descendants, and invoking the element's load() method."
MozReview-Commit-ID: 5Lq13CeDCSZ
--HG--
extra : rebase_source : 806bccb32fa0542ea3be3025a31da97bb331b29c
2017-07-21 19:05:54 +02:00
Chris Pearce
87ce56017f
Bug 1351124 - Factor out ClearKey license generation in EME mochitests. r=jya
...
Makes it easier to re-use in the test in the next patch.
MozReview-Commit-ID: 56Gbe8KFSgX
--HG--
extra : rebase_source : 3e2aa140dbf4faad015c1c760fc5b18de396d848
2017-07-07 10:49:42 +12:00
Chris Pearce
b7b2dab14d
Bug 1355252 - Backed out changeset c19d32e2a710. r=backout
...
MozReview-Commit-ID: 7pTa64IsIq2
--HG--
extra : rebase_source : 27ec010599614d1402e9621149cb953464ec7603
2017-05-30 10:34:13 +12:00
Chris Pearce
5064845788
Bug 1355252 - Don't assume default codecs for MP4 and WebM in EME MediaCapabilities r=jwwang
...
Step 10 of EME's "Get Supported Capabilities for Audio/Video Type" algorithm
says we can assume default codecs only if a container normatively implies a
specific set of codec and codec constraints. Our code assumes that WebM implies
Vorbis/VP8 and MP4 implies AAC/H.264, but those aren't actually normatively
required by either of these containers' specifications. So we shouldn't assume
these containers imply those codecs.
MozReview-Commit-ID: G9TDOmrjhpp
--HG--
extra : rebase_source : 2f040d76c8cb240359401fe1dc1e3eefa029d77b
2017-05-11 14:23:33 +12:00
JW Wang
1915d358a7
Bug 1359725 - add timeout to LoadInitData() in eme.js. r=gerald
...
So we can cancel the bad test as soon as possible and give a better description about the error.
MozReview-Commit-ID: ExKIK2HqJkN
--HG--
extra : rebase_source : 26391dfea33ab792cc5f0dc58fa42e6309e0c699
extra : source : 138125800895658a6feb88e3f90487d62b955f6a
2017-04-26 16:22:08 +08:00
JW Wang
0af5a6c95e
Bug 1358399. P7 - remove unused code. r=gerald
...
1. The 'onlyLoadFirstFragments' flag is not used anymore.
2. The 'noEndOfStream' flag is never set to true.
3. EMEPromiseAll has no callers.
MozReview-Commit-ID: BH3r5AvMOSN
--HG--
extra : rebase_source : dbe002d18d448d63e5b9e869f194cfbb54a498f8
extra : intermediate-source : d6a8bf58e8e29e726986d0c8e6159231dfe8aac4
extra : source : 5a899425c326ff63365a99e314a728e6a0125a7f
2017-04-22 08:22:11 +08:00
JW Wang
c71c3df555
Bug 1358399. P6 - rewrite SetupEME() using the new helper functions and fix its callers. r=gerald
...
MozReview-Commit-ID: KUXhvPIuXry
--HG--
extra : rebase_source : b067b139dd536fb84bd6b89705efae920fa5b44b
extra : intermediate-source : a36fea44e27326b83af292f23bed7ba48c3d3ab9
extra : source : 3ec2d58a8a10d1eb0f32f16bcb7835762519b4c9
2017-04-21 18:06:31 +08:00
JW Wang
4054b9864b
Bug 1358399. P2 - split SetupEME() into small functions which will be useful in next patches. r=gerald
...
MozReview-Commit-ID: 7IZUYZaSlIr
--HG--
extra : rebase_source : 57a4556b4ce0bb6e5f2fd04b812de4613bd4c31a
extra : intermediate-source : 5a336b709abeeaace6167b52d7d8c67c0c27218b
extra : source : f4e04d207b81793218d231cbec4aa8d4a0101318
2017-04-21 17:05:18 +08:00
JW Wang
c351b765ff
Bug 1358399. P1 - move "elem.crossOrigin = test.crossOrigin || false" from SetupEME() to LoadTest() to improve cohesion. r=gerald
...
The attributes are used by MaybeCrossOriginURI() which is called by LoadTest() indirectly.
MozReview-Commit-ID: LH2STpONuCE
--HG--
extra : rebase_source : 5762de80943d30064df0d4a69ebe7d36a12f308b
extra : intermediate-source : 73e455a974c9bc3609b72d3ffbbcbc6f1077f62b
extra : source : 7802185d9bcaec4f7377de94e4876d995a8ab019
2017-04-21 14:29:25 +08:00
JW Wang
bbfc0ddbdc
Bug 1358401. P4 - reject the promise with an error string in UpdateSessionFunc(). r=gerald
...
MozReview-Commit-ID: 2bFb9NBQPxk
--HG--
extra : rebase_source : 63954ce39889fcd9b5eba6a36907c6e88493b870
2017-04-21 15:35:41 +08:00
JW Wang
6ba104e8e5
Bug 1358401. P3 - reject the promise in LoadTest() when AppendTrack() fails. r=gerald
...
MozReview-Commit-ID: 2TijR5hwyLH
--HG--
extra : rebase_source : 1e162f7544a32d9543c45330d4b48884d96b37c7
extra : intermediate-source : 570e3e387db034bd9bbb782590112ce975338bf0
extra : source : 7fb31935f05579bb3b29640845284c1b32cc7e51
2017-04-19 15:30:32 +08:00
JW Wang
5e8497b518
Bug 1358401. P2 - use the 'once' handler to remove the |firstOpen| check. r=gerald
...
MozReview-Commit-ID: Ezp0dM1VXco
--HG--
extra : rebase_source : c2057a95ee851f6f6ea56799c5cda4d4f13c48b0
extra : intermediate-source : 1292faea67b556651ee2c4c43ec30eed61f8078f
extra : source : 9d0e54ec0097de7f394095fb61401cfc5ce543b8
2017-04-19 15:19:33 +08:00
JW Wang
fb2674118c
Bug 1358401. P1 - reject the promise when failing to fetch the buffer. r=gerald
...
MozReview-Commit-ID: 2ANLUx8JuFe
--HG--
extra : rebase_source : 4b003cc9149ef51987d8f4561acf709e67047ac9
extra : intermediate-source : 0b2640fad8cd7f86f636d0d75699faf381959a12
extra : source : 1dfca1cd8866065ed403d54c01234bd162addec0
2017-04-19 15:16:47 +08:00
JW Wang
ba9f942373
Bug 1340037 - per comment 11, we need to wait for all initData are processed before finishing the test to avoid "Result logged after SimpleTest.finish()". r=gerald
...
Note this patch doesn't fix the crash in comment 10 which seems to be related to ChromiumCDMParent.
MozReview-Commit-ID: CcCPYJCZ39X
--HG--
extra : rebase_source : 79c73602fcfd4651b7af0085e539853eb5e4a7da
2017-04-19 10:52:23 +08:00
Jay Harris
ade2f4947d
Bug 1340308 - Enables VP9 in MP4s in non-nightly builds when running EME tests r=cpearce
...
MozReview-Commit-ID: JKSRK1sAYTT
--HG--
extra : rebase_source : d14f432fd30af7e117066c3833b3487f9f5b44d7
2017-02-17 14:41:09 +13:00
Jay Harris
c1706f8fa9
Bug 1335543 - Calls the bail function r=jwwang
...
MozReview-Commit-ID: KzUJRCi7tsW
--HG--
extra : rebase_source : a47ec4486a9f90a56fa79c2a8f4ea1bae3b927ad
2017-02-01 10:30:03 +13:00
Chris Peterson
7ed800f024
Bug 1242321 - Remove obsolete "media.eme.apiVisible" pref. r=cpearce sr=bz
...
MozReview-Commit-ID: D31Yg1LHI5u
--HG--
extra : rebase_source : 7c608ee93025840fc4f97977feec2ca65ceee263
2017-02-01 22:10:06 -08:00
Florian Quèze
bdc1ffa608
Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws.
2017-01-30 08:10:22 +01:00
Florian Quèze
f187782ccf
Bug 1334250 - script-generated patch to avoid removeEventListener calls when a variable is used for the event name, r=jaws.
2017-01-27 10:48:00 +01:00
Florian Quèze
85611a7b6d
Bug 1331081
- script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
...
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
JW Wang
6ee4345dd8
Bug 1319356 - clean up media elements when tests are done. r=cpearce
...
MozReview-Commit-ID: CYJDwPJ5E2P
--HG--
extra : rebase_source : 47263f67046cdf6fd1194611c88fe6cda2332d6b
extra : intermediate-source : 957bad997b3b0fc292b66222226ada4ecdc43aef
extra : source : 216105eb9044ef77606b1577f815e354276ee651
2016-11-21 13:54:40 +08:00
Chris Pearce
c5076e76b0
Bug 1307019 - Testcase for encrypted MP4 without PSSH and MDSM waiting-for-CDM. r=jya
...
Tests that a fragmented MP4 file without a PSSH, but with encrypted valid
tracks with valid TENC boxes, is able to load with EME. This is a test for
the code path added in bug 1300069.
We setup MSE before starting up EME, so that we exercise the "waiting for
cdm" step in the MediaDecoderStateMachine, which was regressed in bug 1300069.
MozReview-Commit-ID: BXgdzAikWoH
--HG--
extra : rebase_source : b03910c96c8f61622ce7bc9fb7b53adc209526a4
2016-10-03 16:35:27 +13:00
Bryce Van Dyk
c3673885ce
Bug 1145011 - Add test for waitingforkey. r=jya
...
MozReview-Commit-ID: LKlDd4wkRSE
--HG--
extra : rebase_source : e7089e48d90739470686868541c9e8bfd6789dc0
2016-08-22 08:52:45 +12:00
Chris Pearce
8b28b48c65
Bug 1278198 - Fix tests to work with new EME API. r=gerald
...
MozReview-Commit-ID: WTWyYu2Zgp
--HG--
extra : rebase_source : 68208d9be13fd18aa7ff6a2f167299050d5375ed
2016-07-11 16:46:21 +12:00
Bryce Van Dyk
2de747d99b
Bug 1257716 - Add WebM Clearkey media to eme test list. r=cpearce
...
MozReview-Commit-ID: LYBmDUvboMk
--HG--
extra : rebase_source : e7715c57a1f6181c99b9e815c5fbf37f1f1410c6
2016-05-25 11:32:54 +12:00
Chris Pearce
f74bb6b010
Bug 1226430 - Remove alg from ClearKey license parser. r=gerald
2015-11-23 09:58:51 +13:00
Chris Pearce
574fb1f8bc
Bug 1189196 - Update EME mochitest to use new navigator.requestMediaKeySystemAccess. r=jwwang
2015-10-27 14:10:51 +13:00
Chris Pearce
83fed249a0
Bug 1214932 - Remove fragmented-mp4 from media prefs. r=jya
2015-10-15 14:51:28 +13:00
Chris Pearce
7f29db1d5a
Bug 1214478 - Ensure MediaKeySession.close() does not store its promise twice. r=gerald
2015-10-14 19:42:24 +13:00
Chris Pearce
a7e012482a
Bug 1207019 - Make EME mochitests specify mime types for video in MediaKeys request videoTypes, ditto for audio. r=gerald
2015-10-05 15:03:58 +13:00
JW Wang
e7914a68b6
Bug 1159171 - Enable ffmpeg on Linux platforms for media mochitests. r=jya
2015-10-01 19:40:20 +10:00
Jean-Yves Avenard
e071e87392
Bug 1207429: P1. remove media.fragmented-mp4.exposed pref. r=kentuckyfriedtakahe
2015-09-27 15:19:27 +10:00
Jean-Yves Avenard
0e79a42d2e
Bug 1185611: [MSE] P1. Remove whitelist. r=kinetik
...
We are now confident enough that MediaSource is usable by all
2015-07-31 20:09:26 +10:00
Jean-Yves Avenard
831b3f9fbd
Bug 1185814: Disable EME tests on 10.6. r=cpearce
2015-07-22 14:22:50 +10:00
Gerald Squelart
a3b7025602
Bug 1138294 - EME Mochitests with MSE stream switches, fix bug 1152151 to avoid unneeded loading. r=edwin
...
--HG--
extra : rebase_source : 904f79266380d9d46979b55d0db8e61df7c77c75
2015-06-12 10:22:46 -04:00
Boris Zbarsky
eaa2b4b2c1
Bug 1159755. Stop forcing the media.eme.apiVisible preference to be true in our test harness. r=cpearce
2015-04-30 17:36:50 -04:00
Boris Zbarsky
ecba4cbc0c
Bug 1159756. Stop forcing the media.mediasource.enabled preference to true and the media.mediasource.whitelist preference to false in the test harness. r=kinetik
2015-04-30 14:25:03 -04:00
JW Wang
a938555939
Bug 1159162 - Remove unnecessary testing prefs from media mochitests for they are defined in testing/profiles/prefs_general.js. r=kinetik.
2015-04-29 10:22:15 +08:00
Carsten "Tomcat" Book
e5f2272acf
Backed out changeset e0b9c334c95a (bug 1138294) for frequent linux m3 test failures on a CLOSED TREE
2015-04-27 17:47:08 +02:00
Gerald Squelart
31419dcd37
Bug 1138294 - EME Mochitests with MSE stream switches, fix bug 1152151 to avoid unneeded loading. r=edwin
...
--HG--
extra : rebase_source : 8a93f886168d79ee53980f75bc1e194d1bc69019
2015-04-27 09:52:46 -04:00
JW Wang
8a444e6331
Bug 1157582 - enable ffmpeg decoders on Linux in EME mochitests. r=edwin.
2015-04-27 11:41:14 +08:00
Gerald Squelart
0e79995cec
Bug 1152151 - [EME] Some tests keep working after they should have finished, part 2: Only load that each test actually needs - r=edwin
2015-04-15 10:09:25 +10:00
Gerald Squelart
dd2237503f
Bug 1152151 - [EME] Some tests keep working after they should have finished - r=edwin
2015-04-15 10:09:25 +10:00
Gerald Squelart
d84062c36d
Bug 1142379
- Encrypt audio and video tracks using separate encryption settings - r=edwin
...
--HG--
rename : dom/media/test/bipbop-frag-cenc.xml => dom/media/test/bipbop-frag-cenc-audio.xml
rename : dom/media/test/bipbop-frag-cenc.xml => dom/media/test/bipbop-frag-cenc-video.xml
2015-04-14 17:53:16 +10:00
JW Wang
14016d17d6
Bug 1153739 - Make Log() usable outside EME test cases. r=edwin.
2015-04-14 11:27:58 +08:00
Ryan VanderMeulen
b263712851
Backed out 4 changesets (bug 1152151, bug 1152153, bug 1151693) for test_eme_persistent_sessions.html timeouts on multiple platforms.
...
Backed out changeset 395ef92d464f (bug 1152153)
Backed out changeset 5b2e38cdb64d (bug 1152151)
Backed out changeset 3a63c4087b9f (bug 1151693)
Backed out changeset 88b5d5b06e02 (bug 1151693)
CLOSED TREE
2015-04-10 00:21:43 -04:00
Gerald Squelart
b1da31cf89
Bug 1152151 - [EME] Some tests keep working after they should have finished - r=edwin
2015-04-09 14:38:20 +10:00