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

567 Коммитов

Автор SHA1 Сообщение Дата
Chris Pearce d42821ee80 Bug 1304247 - Implement HTMLMediaElement.onwaitingforkeys. r=smaug
MozReview-Commit-ID: DhNV30BfksS

--HG--
extra : rebase_source : 5fab8f1b3333ff8607c0325907fbe7214234c001
2016-09-21 14:10:26 +12:00
Kilik Kuo cb76db051f Bug 1257116 - Shorten media files to make mochitest faster. r=cpearce
MozReview-Commit-ID: ArMrUBvPMct

--HG--
extra : rebase_source : 5d86c92c8cb3c6c4e3b7632b3d10f578c20fc0fa
2016-09-13 15:20:12 +08:00
Chris Pearce ee9ca0dd5e Bug 1289968 - [Part1] Ensure ClearKey doesn't assume keyIds can only be 16 bytes. r=cpearce
MozReview-Commit-ID: Hf2IQsAHa4r

--HG--
extra : transplant_source : %D1%2C%B2j%1C%F5%A7%A9%D8%0B%EEE%92%B1%DC1%A5A%BC%8B
2016-08-01 16:28:10 +12:00
Bryce Van Dyk dcc44df7e1 Bug 1300653 - Update youtube puppeteer to store snapshots of state to prevent racing. r=maja_zf
This is follow up work to the VideoPuppeteer changes that have it take snapshots
to prevent racing. For this work the motivations are the same: prevent racing by
querying a stable snapshot of video state, rather than making sequential JS
requests to the browser between which video state may change.

Much of the YouTubePuppeteer has been made internal, so the class can
encapsulate its snapshotting. The property methods have been rolled into the
snapshotted data named tuple to make it clear they're derived from snapshotted
data.

A number of broken parts of the code have been removed or reworked:
- Disabling autoplay was not working and has been removed. This is partially
  addressed by using embedded URLs (in another commit) -- embedded videos do not
  play next video automatically. However, there may be merit in reinstating a
  working version of this in future if possible - particularly for videos that
  can't be embedded, which we have some of in our tests.
- Ad skipping was not working. The getOption('ad', 'displaystate') JS call
  appears to always report an ad is not skippable even if it is. Code related to
  skipping ads has been removed for now, and ads are waited out. This may also
  be something worth revisiting if a working implementation is possible.

***
Review feedback: update YT puppeteer to use more concise calling conventions,
compatibility with changes to VideoPuppeteer.

MozReview-Commit-ID: CCxf9ItFYtl

--HG--
extra : rebase_source : 99aac08fd86d41e7fa3df9b00604dd583ca27bf8
2016-09-21 15:38:41 +12:00
Bryce Van Dyk 9746da4a07 Bug 1300653 - Update VideoPuppeteer to store state snapshots to prevent racing. r=maja_zf
The tests that use VideoPuppeteer often expect the state queried by the
puppeteer to be consistent if done closely in the code. However, this has not
been the case, as there can be significant lags in the data returning from
marionette. This means that if one line queries the current time of the
underlying video, and the very next line queries the same thing, there can be
significantly different results.

This causes issues with tests making multiple sequential checks on the
underlying video, and the state changing between checks. On test fails it means
that the information logged my be inconsistent with the state that resulted in
the test failing, as time passes between the fail check and the logging.

This patch attempts to address this by having the VideoPuppeteer store a
snapshot of state and examining that instead. This snap shot should be
internally consistent.

I've removed a large number of public members from the class, and moved a couple
of the testing functions into the class. The thinking here is that the new logic
complicates the internal state of the class, and I want to keep the interface
slim to hide that complexity.

***
Review feedback: Log interval, expected duration, stall wait time, and timeout
times in VideoPuppeteer string.
***
Review feedback: make video var script a class var instead of a staticmethod.
***
Review feedback: move _fetch_state_script to be a property on VideoPuppeteer.
***
Review feedback: simplify calling of _create_video_state_info with a dict.
Fix played docstring.
***
Review feedback: simplify _create_video_state_info using kwargs.

MozReview-Commit-ID: 6mN56bFMge0

--HG--
extra : rebase_source : a25a9a45c8dced9439360b9664b1d768100ed2be
2016-09-21 14:08:34 +12:00
Bryce Van Dyk 1342cbfe94 Bug 1305607 - Correct reading of baseURI from video element. r=maja_zf
Previous changes that I'd made broke the reporting of the baseURI on videos.
This changeset aims to fix those breakages, and also puts the baseURI on the
state snapshot.

MozReview-Commit-ID: 8YgPpHzoX1E

--HG--
extra : rebase_source : 28840d1e47e9f2909eb67bc376a3a85874427149
2016-09-27 15:35:57 +13:00
Ralph Giles ac2fb54670 Bug 1300805 - Remove media.webvtt.enabled pref. r=kinetik,smaug
This API has been deployed to release for some time. There isi
no longer value to being able to quickly disable it.

MozReview-Commit-ID: Jj6CyWzP93g

--HG--
extra : rebase_source : 2dc0547229b53865a4f7cfcf7ca417eb3dec0356
2016-09-15 14:10:17 -07: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
Phil Ringnalda cd6041148f Backed out 5 changesets (bug 1302632) for forthcoming failures
Backed out changeset f2ced742d6aa (bug 1302632)
Backed out changeset 55e7962d4fc0 (bug 1302632)
Backed out changeset b20f7c887e6c (bug 1302632)
Backed out changeset 22772e4a9c72 (bug 1302632)
Backed out changeset 7d7558864a66 (bug 1302632)
2016-09-15 21:39:00 -07:00
Jean-Yves Avenard b3ae2c3e66 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 : 0aa759ceff22f0c30e650593190a4d0e85292a07
2016-09-16 11:14:07 +10:00
Carsten "Tomcat" Book c737c8cee6 Merge mozilla-central to autoland 2016-09-13 13:09:21 +02: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
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
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
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
Bryce Van Dyk 5c7d75495a Bug 1299756 - VideoPuppeteer: Use played ranges in determining time remaining. Relax playback done check. r=maja_zf
The VideoPuppeteer now uses played ranges where possible to calculate the
remaining time. It will also use the played ranges to determine the expected
duration where possible. This is more accurate than using the time when the
tests first poll the video. The first poll time was previously self._start_time,
but I've renamed this to self._first_seen_time, to reduce ambiguity -- the video
may have started playing before this time.

The playback_done function has had it's remaining time check relaxed. Previously
it was possible to skip over the window where a video would be considered
complete, that window is now expanded so that if the start threshold is passed
the video is considered played.

A concrete example: the tests could play a 90 second video, but the duration of
the test is set to 60 so only part of the video need be played back before the
test completes. If a 1 second interval was used in the tests there would be a
window between 59 to 61 seconds during which if the video were polled it would
be considered complete. However, due to latency polling may not take place in
this window, leading to racy fails. Now the tests will consider any point beyond
59 seconds to be complete.

MozReview-Commit-ID: J6DpqCbZxUg

--HG--
extra : rebase_source : 7990e4eee0bce30718b875f652c7148110cd4c3f
2016-09-01 14:51:19 +12:00
Bryce Van Dyk f3afe526e9 Bug 1299756 - Update VideoPuppeteer __str__ to output played ranges. r=maja_zf
This is a quality of life change. Since VideoPuppeteer uses, and since I plan on
using the played ranges of a video element more, it is useful to output them as
part of the str representation.

MozReview-Commit-ID: LwVPfVtFF1v

--HG--
extra : rebase_source : 1ebe4b7a7176a15f7e9300dee84103a8f6b86708
2016-09-01 10:50:05 +12:00
Bryce Van Dyk ae1691c635 Bug 1213731 - Remove unused Youtube URLs, use embedded URLs where possible. r=maja_zf
Many of the youtube URLs were not being used in tests. Many were are/also dead.
Furthermore, non-embedded links are causing issues due to the next video auto
play feature defaulting to on in youtube.

This is a quick once over to remove unused links, prune some of the dead, and
rewrite those that can be embedded to embedded URLs. In future I would like to
see the embedded links and non embedded separated into their own files. However,
theses changes are a halfway house that will not break compatibility downstream.

MozReview-Commit-ID: 4aPMNjD3LC4

--HG--
rename : dom/media/test/external/external_media_tests/urls/youtube/long3-crashes-720.ini => dom/media/test/external/external_media_tests/urls/youtube/long2-crashes-720.ini
rename : dom/media/test/external/external_media_tests/urls/youtube/long4-crashes-900.ini => dom/media/test/external/external_media_tests/urls/youtube/long3-crashes-900.ini
rename : dom/media/test/external/external_media_tests/urls/youtube/short0-10.ini => dom/media/test/external/external_media_tests/urls/youtube/short1-10.ini
rename : dom/media/test/external/external_media_tests/urls/youtube/short3-crashes-15.ini => dom/media/test/external/external_media_tests/urls/youtube/short2-crashes-15.ini
extra : rebase_source : a5abcc8d7b1f1f1e3e2b6303f91b6183f4e4d9ee
2016-08-30 18:36:16 +12:00
Bryce Van Dyk ab7cc0932e Bug 1213731 - Rework Youtube puppeteer to work with both youtube and embedded youtube. r=maja_zf
Rework the Youtube puppeteer to look up player and video element based on class
names, instead of ID. This means that the tests can work with embedded players.
This has the benefit that we can use youtube embedded links
(youtube.com/embedded/<videoId>), which do not suffer from auto play related
issues (auto play jumping to another video).

MozReview-Commit-ID: 9UFyL7di6gH

--HG--
extra : rebase_source : 69301bfa2b7ea9fd729742ae670ecb6e8209c4f9
2016-08-30 16:25:01 +12:00
ctai 310fb4ce18 Bug 894922 - Enable test case on windows. r=jwwang.
MozReview-Commit-ID: CaKry95yiPY

--HG--
extra : rebase_source : 8b114be0c54f7d21d7d84c5600cdbfbcfa0fcf54
2016-08-29 14:36:14 +08:00
Dan Glastonbury 0f59ea17ee Bug 1295844 - Add webm testing files to video decode suspend tests. r=gerald
Test files transcoded from gizmo.mp4 using:
ffmpeg -i gizmo.mp4 -vcodec vp9 -acodec opus gizmo.webm
ffmpeg -i gizmo.webm -vcodec copy -an gizmo-noaudio.webm

MozReview-Commit-ID: 4OB8G9NtS7A

--HG--
extra : rebase_source : e43b586371fae927d0e997064169e2e56de6b476
2016-08-17 13:04:35 +10:00
Chia-hung Tai 80a7e0d9a0 Bug 1292335 - Call mozCaptureStreamUntilEnded in loadedmetadata. r=pehrsons.
MozReview-Commit-ID: 5S3jR9V23Yn

--HG--
extra : rebase_source : 65fa7e3f76318d1149a9700fae96a55a9a395d31
2016-08-22 11:01:27 +08:00
Jean-Yves Avenard 551e91fa7d Bug 1195723: [flac] P15. Add metadata mochitest. r=kamidphish
MozReview-Commit-ID: vVAA2Gnls8

--HG--
extra : rebase_source : afea7fc313d6178fd44154202c5fcb94ad4ab1e3
2016-08-18 16:34:56 +10:00
Jean-Yves Avenard 6c04460e8c Bug 1195723: [flac] P13. Add mochitest files. r=kamidphish
MozReview-Commit-ID: 34FlM9HcTDo

--HG--
extra : rebase_source : 67ecb3f56f51be797f68cb1b1799d721854b1271
2016-08-18 15:30:52 +10:00
Dan Glastonbury 7e511c5952 Bug 1294358 - P4: Shrink video size. r=jya
Make the test videos smaller so they are visible in the mochitest
iframe.

--HG--
extra : rebase_source : f3b04136115b9cbd80eee180851ae15f2affe6f6
2016-08-22 15:30:05 +10:00
Dan Glastonbury 7650e88a66 Bug 1294358 - P3: Added test video with no audio. r=jya
--HG--
extra : rebase_source : 13de5edaf71a3ec19a5f5d697cc93683084003a5
2016-08-22 17:16:10 +10:00
dglastonbury@mozilla.com c25529b63f Bug 1294358 - P2: Add test for 'ended' event firing for suspended video. r=jwwang
--HG--
extra : rebase_source : c1d112ddb0c025e246629ab40d3ed0cca490e388
2016-08-11 09:57:52 +00:00
Dan Glastonbury 52d42c9734 Bug 1294358 - P1: Change test files to specify mime type. r=jwwang,jya
Change test files to specify the mime type of the file. This is checked
by media test manager so that changes in mochitest.ini are not needed.

MozReview-Commit-ID: 4hFQmRknBOY

--HG--
extra : rebase_source : b76a8dfe071dec320a7ebef8fc071e671278c1fa
2016-08-22 17:19:57 +10: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
Wes Kocher 24cb21d4f6 Backed out 15 changesets (bug 1195723) for various media test failures/unexpected-passes a=backout
Backed out changeset 2a3b10281c9c (bug 1195723)
Backed out changeset c3775a6225d8 (bug 1195723)
Backed out changeset ba0aeb71c672 (bug 1195723)
Backed out changeset 894061e6037e (bug 1195723)
Backed out changeset 4637f8be98bb (bug 1195723)
Backed out changeset c2664064fa55 (bug 1195723)
Backed out changeset 39908ea4c390 (bug 1195723)
Backed out changeset 3fcb5682049a (bug 1195723)
Backed out changeset 867d6507a381 (bug 1195723)
Backed out changeset c938ad9dd11c (bug 1195723)
Backed out changeset 7bdb9540b60f (bug 1195723)
Backed out changeset a4f7a73c04fa (bug 1195723)
Backed out changeset 7f86beff4263 (bug 1195723)
Backed out changeset efb6bcf743e7 (bug 1195723)
Backed out changeset 04eceefa54c7 (bug 1195723)
2016-08-22 10:07:25 -07:00
clui 7af742f74e Bug 1287594 - Allow usage of marionette harness options through mach. r=whimboo
MozReview-Commit-ID: CJwo4RsCnVg

--HG--
extra : rebase_source : bbeb924627625e43878a9af26a1d6e2f7cb6d511
2016-08-19 16:35:19 -07:00
Jean-Yves Avenard 2c74818e1f Bug 1195723: [flac] P15. Add metadata mochitest. r=kamidphish
MozReview-Commit-ID: vVAA2Gnls8

--HG--
extra : rebase_source : 842fa2a1e3f0243e3ee4ffc6631fbde46dc6f164
2016-08-18 16:34:56 +10:00
Jean-Yves Avenard 46be523297 Bug 1195723: [flac] P13. Add mochitest files. r=kamidphish
MozReview-Commit-ID: 34FlM9HcTDo

--HG--
extra : rebase_source : 3c7a112863647c7b5ae48fae23294ae2b252c77d
2016-08-18 15:30:52 +10:00
Chia-hung Tai 50f2b7866f Bug 1293015 - Call mozCapturedStreamXXX in onloadedmetadata callback. r=pehrsons.
MozReview-Commit-ID: JtY28kQVOM3

--HG--
extra : rebase_source : ddbd01eeb7ab52a5656d74e65bc62d5a2754c1e5
2016-08-15 13:24:48 +08:00
Chia-hung Tai 821ad210a3 Bug 1291953 - Call mozCapturedStreamXXX in onloadedmetadata callback. r=pehrsons.
MozReview-Commit-ID: EKFjCnn0T5q

--HG--
extra : rebase_source : 1c7668c435f3c786c24824b0efadd9b4b70c2353
2016-08-15 11:43:32 +08:00
Chia-hung Tai b20bb52a72 Bug 1292621 - Call mozCapturedStreamXXX in onloadedmetadata callback. r=pehrsons.
MozReview-Commit-ID: JRXtJyj94eW

--HG--
extra : rebase_source : 76429defd5244dd574e5189fe31b8359b6352b5c
2016-08-15 14:56:40 +08:00
ctai 36ce16e4cd Bug 608634 - Add the bug number for the todo part. r=jwwang
MozReview-Commit-ID: 7r3GMRiuTNf

--HG--
extra : rebase_source : f91d18ffdd91fe7be862bd9d7c753dc63088bba0
2016-08-17 17:37:58 +08:00
ctai 57f4a5fc0f Bug 608634 - Enable test_error_in_video_document.html in all platform. r=jwwang.
Bug 1154802 provided a workaround for this race condition. So enable it in all platform.

MozReview-Commit-ID: BS1iW4O7TsZ

--HG--
extra : rebase_source : ac825a25b195b22106ae70cb412a0b61bd846bfb
2016-08-17 17:34:07 +08:00
ctai 070831d08f Bug 608634 - Fix redundant comments. r=jwwang.
MozReview-Commit-ID: EYW8O9vZipH

--HG--
extra : rebase_source : 301427f859ff50c32bc28e243f1a606e2ad9ef7a
2016-08-17 16:17:14 +08:00
ctai 3fa6c14f4c Bug 1295478 - Enable test_empty_resource.html on Windows debug build. r=jwwang.
MozReview-Commit-ID: KUBRpLqKU5m

--HG--
extra : rebase_source : 7ba580904ca23e8fb1a0f08cab37233e7141e831
2016-08-15 17:22:20 +08:00
Kilik Kuo 4a988fcb4c Bug 1293861 - Intermittent dom/media/test/test_playback.html | bug506094.ogv, seek.yuv, bug498380.ogv, bug504613.ogv, bug523816.ogv checking networkState - got 2, expected 1. r=jwwang
MozReview-Commit-ID: 50BZ5ctp3wl

--HG--
extra : rebase_source : 9814bcd0098b20da0071ce6bb5ae9f056d09356f
2016-08-17 16:43:11 +08:00
Wes Kocher 6b3d348f17 Backed out 2 changesets (bug 1294358) for xp mda failures a=backout CLOSED TREE
Backed out changeset 886441076b5f (bug 1294358)
Backed out changeset 848141457f25 (bug 1294358)

--HG--
extra : amend_source : 393a51d18d37246cec3617fb3162478cd98b3bb2
2016-08-17 10:06:40 -07:00
Wes Kocher 6f430a404b Backed out changeset 942b01866756 (bug 1295844) for xp mda failures a=backout 2016-08-17 10:06:27 -07:00
Dan Glastonbury 0c1756a66f Bug 1295844 - Add webm testing files to video decode suspend tests. r=gerald
Test files transcoded from gizmo.mp4 using:
ffmpeg -i gizmo.mp4 -vcodec vp9 -acodec opus gizmo.webm
ffmpeg -i gizmo.webm -vcodec copy -an gizmo-noaudio.webm

MozReview-Commit-ID: 4OB8G9NtS7A

--HG--
extra : rebase_source : e43b586371fae927d0e997064169e2e56de6b476
2016-08-17 13:04:35 +10:00
Wes Kocher 45575a7f86 Merge m-c to autoland, a=merge
a=release for the webidl hook for a comment-only change

--HG--
extra : amend_source : e590e515ab273d097f88b35be0e5c999502ebdf4
2016-08-16 22:07:30 -07:00
Wes Kocher 48b8d407c8 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change

--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
ctai 6127c90007 Bug 1140675 - Enable test_bug879717.html on windows. r=jwwang.
MozReview-Commit-ID: Enl9fCqHhYN

--HG--
extra : rebase_source : 2b0345d1e2b2d8cfc31a10057daeef0708492621
2016-08-15 16:07:04 +08:00
ctai d8858a2e5e Bug 1291946 - Call mozCapturedStreamXXX in onloadedmetadata callback. r=pehrsons
MozReview-Commit-ID: 6gLa4OYT9v2

--HG--
extra : rebase_source : 11d367a49f7e2151253000f2f7519a7e2dd9a11e
2016-08-15 14:46:30 +08:00
Dan Glastonbury 323e627096 Bug 1294420 - Skip tests that use h264 on WinXP. r=gerald
Fix permafail for mda on WinXP which has no h264

MozReview-Commit-ID: 35tlO5vPTLD

--HG--
extra : rebase_source : 4d0edc219f75bd2107a3828a4df6419d7449657a
2016-08-11 21:24:12 +08:00
Dan Glastonbury 888241afbc Bug 1284177 - P2: Video decode suspend mochitests. r=jwwang
Test:
- That video decode suspends when enabled and delay is reached.
- That video decode doesn't suspend when disabled.
- That video decode doesn't suspend when video finishes before suspend delay.

These tests need to run from content process to observe the suspend
notifications via nsIObserverService, but access to gBrowser is in
chrome process in e10s. Thus, the reason for loading
background_video_chrome.js into chrome process and invoking functions
via async messages.

MozReview-Commit-ID: 2eE97FEUMPu

--HG--
extra : rebase_source : e48cc4dab54648bf0830f59f346a09ab3fb73f6e
2016-07-04 12:35:25 +10:00
Kilik Kuo b7644b831d Bug 1077294 - remove NETWORK_LOADED from the test cases. r=jwwang
MozReview-Commit-ID: 7tvTT7DVSqH

--HG--
extra : transplant_source : %DCC%1D%9E%AE%001%EB%06%A4%E5B%80%80%89%8C%E4%FCv%F6
2016-08-08 15:27:14 +08:00
Bryce Van Dyk 77cdb2b31b Bug 1211959 - Tests check if video has started using played range. r=automatedtester
Previously the tests would check if playback had started by looking at the first
recorded time, and then looking at the current time. If there were a lag it was
possible for the first recorded time to be at the end of the video (i.e.
playback already finished), in which case the video playing would not register.
This patch instead uses the played ranges from the video element. Now so long as
there is a non-empty played range we trust playback started.

MozReview-Commit-ID: 5C39A42KRdj

--HG--
extra : rebase_source : e4e8a35df3bac4c9e7765272acb6300b44b45d4e
2016-08-05 12:38:54 +12:00
Sebastian Hengst d307cb8dab Backed out changeset 4361c6f3b915 (bug 1289968) for failing encrypted-media-generate-request-disallowed-input.html. r=backout 2016-08-08 15:28:12 +02:00
Henrik Skupin 97aa5e356f Bug 1292465 - Bump firefox-puppeteer to 51.0.0. r=automatedtester
MozReview-Commit-ID: 1xEqCi0LQVQ

--HG--
extra : rebase_source : b26be31fabd4d699fc95f8d3e938bf92699a40a7
2016-08-05 11:41:48 +02:00
Bryce Van Dyk 3055f0dfe7 Bug 1293149 - Mediasource URL check should check for 'blob' instead of 'mediasource'. r=automatedtester
This behaviour changed as part of Bug 1279493, and the tests should be updated
to reflect this.

MozReview-Commit-ID: oITf0hVjKk

--HG--
extra : rebase_source : 26f54e0ac49a2f27f364c75a63851df5a85ce18f
2016-08-08 15:25:06 +12:00
Chris Pearce a41f94398b Bug 1289968 - Ensure ClearKey doesn't assume keyIds can only be 16 bytes. r=gerald
I also added more testing around ClearKey's base64 decoding, since that affected
how keyIds were handled.

MozReview-Commit-ID: 2UH1JNT4NC3

--HG--
extra : rebase_source : 8e2c861e6b030d7e4a1378d3fafed7630324d940
2016-08-01 16:28:10 +12:00
Bryce Van Dyk fe6ac1173a Bug 1292396 - Replace Marionette context string literals with symbolic variables. r=automatedtester
MozReview-Commit-ID: 9tRUYmVsaXO

--HG--
extra : rebase_source : 2776e4984543f9f6fec69d1b33c36bd8de073013
2016-08-03 14:21:27 +12:00
Bryce Van Dyk fde8c66d92 Bug 1292394 - Update external media test dependencies. r=automatedtester
Bump deps. Previous deps resulting in failures with current builds.

MozReview-Commit-ID: BUEfDmmE00E

--HG--
extra : rebase_source : a5437a86a875531945c558fab9427c6c31059289
2016-08-01 13:43:29 +12:00
Chris Pearce 7261eef5aa Bug 1289942 - Make MediaKeyStatusMap.get() return undefined for unknown keys. r=bz
The spec requires the MediaKeyStatusMap.get(keyId) function to return an 'any'
type, which is undefined for known keys, or a MediaKeyStatus enum value for
known keys.

https://w3c.github.io/encrypted-media/#idl-def-mediakeystatusmap


MozReview-Commit-ID: 3TOFYLacZSc

--HG--
extra : rebase_source : cd067f545cdbd9352ba64fea914128201b458d9c
2016-07-28 14:03:01 +12:00
Jean-Yves Avenard 5c81ca837f Bug 1288329: [ogg] P6. Adjust mochitests. r=gerald
There are various differences between the new ogg player and the old OggReader that leads to inconsistencies on how durations are reported.

1- The old OggReader only use the end time as duration of the video, ignoring the start time of the first sample. This leads to incorrect duration calculation.
2- The OggReader do not ignore undecodable frames located at the beginning of the video, and those are used by the MDSM to calculate the start time. This leads to durations sometimes being shorter than they ought to.

MozReview-Commit-ID: 6yi1P4N6tPE

--HG--
extra : rebase_source : 93e678aa762519d27444a57f8a12d2bd569b025d
2016-07-28 22:52:08 +10:00
Eugen Sawin d4f17a5cd1 Bug 1290178 - [1.2] Add crashtest for MP3 playback with invalid XING headers. r=gerald 2016-07-29 18:30:14 +02:00
Carsten "Tomcat" Book 65ee88f5df Backed out changeset 87c09fd9a736 (bug 1290178) for crashtest failures
--HG--
extra : rebase_source : 39249bd11d69aec3a4bf1ae6263a058b3f093e01
2016-07-29 15:05:48 +02:00
Eugen Sawin f90d3dc006 Bug 1290178 - [1.1] Add crashtest for MP3 playback with invalid XING headers. r=gerald 2016-07-29 13:02:05 +02:00
Carsten "Tomcat" Book 8c47612fee merge mozilla-inbound to mozilla-central a=merge 2016-07-29 11:56:43 +02:00
Jan-Ivar Bruaroey 2982c3ee86 Bug 1286096 - Remove fakeTracks constraint. r=drno,smaug
MozReview-Commit-ID: I9ZsufufRYg

--HG--
extra : rebase_source : 6d3ace3a22ce34586da4899cc0f7b2727a5fc6e0
2016-07-11 19:27:43 -04:00
bechen b13de09ea4 Bug 1281418 - Add testcase for changing the src of TrackElement. r=rillian
MozReview-Commit-ID: A7QB9ELEfp3

--HG--
extra : transplant_source : %FE%12%B9%98%847%E2%BF%9E%B8%7D%BDT%E3%7E%F0%90%1E%25i
2016-07-19 17:01:06 +08:00
Kilik Kuo 3de7882657 Bug 1136707 - [Part1] Make pref 'media.eme.enabled' only affect practical DRMs. r=cpearce
MozReview-Commit-ID: 5XeAelzLbIc

--HG--
extra : transplant_source : J%7D%FE%B8%CC3%CF%E7%BAg%A7%3E%19%DDC%C0%EB%92%AD%C8
2016-07-27 12:04:47 +08:00
Chia-hung Tai 4a858201fa Bug 1291951 - Call mozCapturedStreamXXX in onloadedmetadata callback. r=pehrsons.
MozReview-Commit-ID: GxznOTjgNeW

--HG--
extra : rebase_source : dd1ca2147e0e8842c7575ca20de329c2440a5282
2016-08-15 14:37:01 +08:00
Dan Glastonbury 1fc6801397 Bug 1294358 - P2: Added test video with no audio. r=jwwang
This exercises the decoder update logic path that doesn't rely on
AudioSink to advance time.

MozReview-Commit-ID: EZ6lb8zsqTu

--HG--
extra : rebase_source : 36f8b33b1aaaba40ca378a4da4d9dfda311c571c
2016-08-11 16:49:36 +08:00
Dan Glastonbury 656c547539 Bug 1294358 - P1: Add test for 'ended' event firing for suspended video. r=jwwang
MozReview-Commit-ID: EQFpQYePTCI

--HG--
extra : rebase_source : c70db71f2eeda1be5d1bf172a648148a2c9a1f6a
2016-08-11 16:40:45 +08:00
Chris Pearce cc5deae96d Bug 1282142 - Add testcase ensuring persistent-usage-record MediaKeySessions are unsupported by ClearKey. r=gerald
MozReview-Commit-ID: vbnJT5PGGv

--HG--
extra : rebase_source : 880d9c972519faef9ed2aa3635e6cae441fb2ff6
extra : amend_source : 6c179a5b4481604dee820a4c45ee75f562851237
2016-07-22 13:42:31 +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
Andrew McCreight 623b56a3f1 Bug 1287143 - Remove the window argument to SpecialPowers.exactGC(). r=jmaher
Cu.forceCC() is the same as DOMWindowUtils.cycleCollect(), but does
not require a window.
2016-07-19 13:13:00 +08:00
Alastor Wu c1e061c2ec Bug 1283803 - part5 : fix the fail test. r=rillian
MozReview-Commit-ID: LgjDpvW2rQj

--HG--
extra : rebase_source : d8e88bb44acdca26ae415d81a4b50d203b78f51d
2016-07-19 17:07:41 +08:00
Carsten "Tomcat" Book f93a6047fb merge mozilla-inbound to mozilla-central a=merge 2016-07-01 11:17:36 +02:00
Chris Pearce 0405241de4 Bug 1283666 - Remove code to handle obsolete MediaKeySystemConfiguration attributes. r=jwwang
MozReview-Commit-ID: 1T3DH0JVstQ

--HG--
extra : source : f2d2fd02cdba4bd5c3c60c4005c852c3ee12ee9e
2016-07-01 11:26:29 +12:00
Anjana Vakil 103527a1ff Bug 1258505 - Rewrite Marionette mach commands to avoid parse_args; r=maja_zf
Given the implementation of BaseMarionetteArguments.parse_known_args,
remove call to parser.parse_args in Marionette mach commands
(marionette-test, session-test,
firefox-ui-update, firefox-ui-functional,
external-media-tests).
Instead, create an argparse.Namespace from the already-parsed
arguments, and pass this to parser.verify_usage.

MozReview-Commit-ID: 20agrkhwlLF

--HG--
extra : rebase_source : 32b0df89c1fbc52af57884d6ba764502b64ac590
2016-06-29 18:55:32 +02: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
bechen c2f769c9f2 Bug 1278151 - Fix CompareCuesByTime for the web-platform/meta/html/semantics/embedded-content/media-elements/interfaces/TextTrack/cues.html. r=rillian
MozReview-Commit-ID: KLGqF55DnhI

--HG--
extra : rebase_source : f8e9c2358bab95e332990afdc600148899ee04a7
2016-06-21 16:26:35 +08:00
Henrik Skupin 8287873300 Bug 1280055 - Bump Firefox Puppeteer to 50.0.0 . r=maja_zf
MozReview-Commit-ID: 99DhMpOlnNB

--HG--
extra : rebase_source : aa7f2073e069eb12064c1b0acb81e3feee0a765f
2016-06-20 21:56:57 +02:00
bechen feac509453 Bug 1276530 - Fix test_texttrackevents_video.html. r=rillian
MozReview-Commit-ID: Gn11D3I0MRb

--HG--
extra : transplant_source : %B0%83%11%19m%870%98%90%14%2A%82%D3f%B0%C1%8A%B5Cw
2016-06-17 17:08:09 +08:00
Alastor Wu 0aa0671885 Bug 1276831 - part2 : modify test. r=rillian
MozReview-Commit-ID: L7NF8Wu7dSF

--HG--
extra : rebase_source : 49f996ec3158ecb051f87c9a5829cfc2f807ec29
2016-06-15 16:51:23 +01:00
Alastor Wu 3e5a369ad1 Bug 1276130 - part2 : modify test. r=rillian
MozReview-Commit-ID: 1q8MywAMYx5

--HG--
extra : rebase_source : a15b65960547d59702990fd781897a61f09b3025
2016-06-14 16:48:47 +01:00
Alastor Wu 4aae6261d7 Bug 1278164 - part2 : modify test. r=rillian
MozReview-Commit-ID: 25vgl3t1ssj

--HG--
extra : rebase_source : 766da34d9964021bdf86e7c1b4785d6f2fec2d4b
2016-06-14 13:04:33 +01:00
Henrik Skupin ba658af935 Bug 1280017 - Fix version requirement specifier for external media tests. a=bustage
MozReview-Commit-ID: Izpe97GtzWp
2016-06-15 06:59:45 +01:00
Kaku Kuo bf4a3e54b3 Bug 1276272 - part 4 - modify the mochitest; r=jwwang
MozReview-Commit-ID: 9DUpKblMbTz

--HG--
extra : rebase_source : eb1c236b882f1b8fd40e441215c918cef585e2a9
2016-06-05 22:15:49 +08:00
Sebastian Hengst 639bb51f2a Backed out changeset bb5ef5c3c8ac (bug 1276130) 2016-06-14 17:20:27 +02:00
Henrik Skupin d9381df1a4 Bug 1280017 - Fix firefox-puppeteer requirement for external media tests. r=maja_zf
MozReview-Commit-ID: 6ihokx6fZQC

--HG--
extra : rebase_source : c2464335512d6d24c8f0f1a939c5460860671a3c
2016-06-14 13:07:56 +01:00
Alastor Wu d5d01b8ae2 Bug 1276130 - part2 : modify test. r=rillian
MozReview-Commit-ID: 1q8MywAMYx5

--HG--
extra : rebase_source : a4d84a9495ea3d5b35b6931816cacfa7c560861f
2016-06-14 14:39:46 +01:00
Sebastian Hengst 78236e0ee7 Backed out changeset 7373932c9e56 (bug 1276831) 2016-06-14 14:33:33 +02:00
Sebastian Hengst cbb3d7682d Backed out changeset eb956a4232b0 (bug 1276130) 2016-06-14 14:33:08 +02:00
Alastor Wu c490bb0ab3 Bug 1276130 - part2 : modify test. r=rillian
MozReview-Commit-ID: 1q8MywAMYx5

--HG--
extra : rebase_source : 6cf25684586d88944b21b32d73374e6e54df27ba
2016-06-14 12:13:30 +01:00
Alastor Wu 2eb3eefbd1 Bug 1276831 - part2 : modify test. r=rillian
MozReview-Commit-ID: L7NF8Wu7dSF

--HG--
extra : rebase_source : 33560a5a197bc829e3d5f45b11ce0be8bbf5a9da
2016-06-14 11:59:16 +01:00
Alastor Wu 4e7e9eb905 Bug 1276833 - part2 : modify test. r=rillian
MozReview-Commit-ID: 27N9am5Lb5K

--HG--
extra : rebase_source : cc75f4453125ff02af304bf8115e5e43a98df543
2016-06-14 11:51:48 +01:00
Alastor Wu 49626a0d11 Bug 1276832 - part3 : modify test. r=rillian
MozReview-Commit-ID: 6dmwFneZR2B

--HG--
extra : rebase_source : e5e986490f207aea525b14299b0d3dbcea0973d3
2016-06-14 11:47:45 +01:00
Bryce Van Dyk b9cf980ca2 Bug 1276643 - Correct variables used in error logging. Formatting for pep8. r=maja_zf
MozReview-Commit-ID: 1VKUYwxOsQC

--HG--
extra : rebase_source : 0055ae20ec0c1eb10bd2c7a949bdf5f77ce87f28
2016-06-07 15:13:20 +12:00
bechen aa321b3d28 Bug 1242599 - testcase. r=rillian
MozReview-Commit-ID: Bkl13cdT2CA

--HG--
extra : rebase_source : e405d058a7836fd897ef5a62f696477048d65981
2016-06-02 15:37:19 +08:00
Alastor Wu 6d9e2d48b4 Bug 1276830 - part3 : modify tests. r=rillian
MozReview-Commit-ID: 9imko6c1Z4R

--HG--
extra : rebase_source : 6d0e0873ffdc28a13ce3e498f73ba1c81aa8b9fb
2016-06-06 10:12:42 +08:00
Bryce Van Dyk 2c618f7655 Bug 1276643 - External media tests reset widevine GMP. r=maja_zf
Make the EME mixin also reset the widevine GMP. This gives us some
widevine downloader coverage, as well as meaning that EME tests that
rely on widevine should work.

MozReview-Commit-ID: AyeeLu2lJRK

--HG--
extra : transplant_source : %13ck%EA%AD%8F%B8.%E5%A0%EC%2C%B4%40h%E0s%0C%1D%B4
2016-05-30 15:21:51 +12:00
Alastor Wu 8a88aa984a Bug 1276129 - part4 : add webvtt tag r=rillian
MozReview-Commit-ID: 8J7Yzq0EL9r

--HG--
extra : rebase_source : 7390257bfaf32518f473450d6e125ef22f6e5d22
2016-06-02 11:10:00 +08:00