gecko-dev/dom/media/test/external
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
..
docs Bug 1254732 - External Media Tests needs comprehensive API documentation. r=maja_zf,SingingTree 2016-03-21 13:17:17 -05:00
external_media_harness Bug 1300653 - Update VideoPuppeteer to store state snapshots to prevent racing. r=maja_zf 2016-09-21 14:08:34 +12:00
external_media_tests Bug 1300653 - Update youtube puppeteer to store snapshots of state to prevent racing. r=maja_zf 2016-09-21 15:38:41 +12:00
mach_commands.py Bug 1287594 - Allow usage of marionette harness options through mach. r=whimboo 2016-08-19 16:35:19 -07:00
MANIFEST.in Bug 1257983 - Fix MANIFEST.in in external-media-tests package; r=maja_zf 2016-03-18 18:32:37 -04:00
README.md Bug 1253723 - Text from README.md should be moved to http://developer.mozilla.org. r=SingingTree 2016-03-04 15:00:52 -06:00
requirements-docs.txt Bug 1260872 - The docs are not being generated correctly on readthedocs - r=whimboo 2016-03-30 17:45:23 -05:00
requirements.txt Bug 1292465 - Bump firefox-puppeteer to 51.0.0. r=automatedtester 2016-08-05 11:41:48 +02:00
setup.py Bug 1292394 - Update external media test dependencies. r=automatedtester 2016-08-01 13:43:29 +12:00

external-media-tests

Documentation for this library has moved to https://developer.mozilla.org/en-US/docs/Mozilla/QA/external-media-tests.