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

180 Коммитов

Автор SHA1 Сообщение Дата
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Cosmin Sabou d41320ad98 Bug 1495167 - Disable dom/media/mediasource/test/test_WaitingToEndedTransition_mp4.html on Linux for frequent failures. r=jmaher 2018-10-16 04:34:00 +03:00
Chris Peterson b5ad48a759 Bug 1336712 - dom/media: Remove test checks for Android GB (API Level 15). r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D6583

--HG--
extra : source : 8d277a0ad4e4314054b30b644c7b972ff74e7744
extra : histedit_source : 51f5fc31952641c4df66a6a1eb2a958d52997e8c
2018-09-15 00:12:47 -07:00
Jan-Ivar Bruaroey 4dc294148a Bug 1487431 - Fix typo in mediasource test_FrameSelection_mp4.html to make last two tests work. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D4798

--HG--
extra : moz-landing-system : lando
2018-08-31 20:38:59 +00:00
Jean-Yves Avenard b66c9b2ac1 Bug 1481166 - Enable SourceBuffer.changeType by default. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2770
2018-08-07 22:46:14 +02:00
Jan-Ivar Bruaroey 9d549a104e Bug 1467018 - Remove callback argument from fetchWithXHR() and once() helpers. r=bryce
MozReview-Commit-ID: DJDqKN9Opn3

--HG--
extra : rebase_source : c5dd2175398c3f5c9e5a3d6c8fb3e8868be4ce19
2018-05-25 11:25:45 -04:00
Bryce Van Dyk c9d6056854 Bug 1465409 - Change lint rules for mediasource tests to prefer no spaces for array notation. r=jya
Change rules so we enforce ["foo", "bar"] rather than [ "foo", "bar" ].

MozReview-Commit-ID: KX6wJd8jmeJ

--HG--
extra : rebase_source : 6800cf4e701a33f246418e0deb35a206af8104f4
2018-05-30 08:18:54 -04:00
Jan-Ivar Bruaroey 4439872dc0 Bug 1462990 - Use async/await in mediasource mochitests r=bryce
MozReview-Commit-ID: AIr8CLyuGb7

--HG--
extra : rebase_source : 2136b7faccc24da6b163b0edf908a198136a7638
2018-05-21 16:40:13 -04:00
Jan-Ivar Bruaroey 5017b2c432 Bug 1462990 - Use async/await in mediasource/test/mediasource.js r=bryce,jya
MozReview-Commit-ID: BnQ30DnY4mB

--HG--
extra : rebase_source : fd89494f1f5946a9b8505456ab9761d3cc1914fa
2018-05-18 10:26:11 -04:00
Jean-Yves Avenard aa3feebecc Bug 1451149 - P2. Don't fire the "stalled" event when using MSE. r=bryce
When using a media element with a Media Source, the resource fetching algorithm is to be called in "local" mode:
https://www.w3.org/TR/media-source/#mediasource-attach
"Continue the resource fetch algorithm by running the remaining "Otherwise (mode is local)" steps, with these clarifications"

https://html.spec.whatwg.org/multipage/media.html#concept-media-load-resource
Under the local mode, the steps that would cause the element to fire suspend, stalled or progress can never occur.
We only prevent the stalled event to be fired, many websites rely on the progress event to be fired (such as when the init segment has been parsed). The HTML5 media spec will be amended to clearly indicate that progress is to be fired even with mediasource

MozReview-Commit-ID: DkoQzoV0JzO

--HG--
extra : rebase_source : 1e916eee50c9935f168797bb5a92052191cda59d
2018-05-14 11:32:09 +02:00
Bryce Van Dyk d74241d1f7 Bug 1461785 - Update dom/media/mediasource/test to abide eslint rules, add .eslintrc.js. r=jya,standard8
Add .eslintrc.js to configure globals from mediasource.js and to add extra
rules to encourage use of let and const over var.

Linting changes:
- Prefer const and let to var. This provides tighter scoping and avoids
  reassignment.
- Mozilla rules do not allow for shadowing of variables, so several tests have
  had promise lists renamed to avoid this.
- Numerous minor fixes to formatting including using double quotes, spacing,
  missing semicolons.
- Remove some unused variables.
- Arrays have spaces after opening braces and before closing braces, e.g.
  [ "foo" ], this is to be consistent with our clang-format rules.
- Fix naming of resourcePathSeen in test_MediaSource_memory_reporting.html.

MozReview-Commit-ID: 5q6oS7EWLTk

--HG--
extra : rebase_source : 9b67b294f338ca9205b52fded3af63e6c3ac9a5a
2018-05-14 10:08:59 -04:00
Jean-Yves Avenard 559fa1a1f2 Bug 1280613 - P3. Mochitests. r=bryce
MozReview-Commit-ID: 5FIe9qfNZWd

--HG--
extra : rebase_source : b8f0a01abeba4dc4356f933a29ed0595fc9884c4
2018-05-11 09:01:25 +02:00
Jean-Yves Avenard e3a0fefdd0 Bug 1456743 - P1. Create mochitest for new SourceBuffer::changeType. r=bryce
MozReview-Commit-ID: 6X8rVMhVY98

--HG--
extra : rebase_source : 52acce9508ce98c43eef6a7500355fa2465c5fe7
2018-04-30 18:59:34 +02:00
Jean-Yves Avenard acabf2903c Bug 1295886 - P15. Enable FLAC mochitest on Android. r=gerald
MozReview-Commit-ID: 83mJleAMVro

--HG--
extra : rebase_source : ba445777b70a1b700eb21eb9809fecea76609598
2017-11-02 02:56:04 +01:00
Alastor Wu 65c50bf89e Bug 1362440 - part3 : add tests. r=jya
MozReview-Commit-ID: C4mXuPsMaF4

--HG--
extra : rebase_source : 11b69bde40b1ca336e2b9272aa2ec26c0e78507d
2017-10-30 17:48:35 +08:00
Joel Maher 5ab59bd06c Bug 1401090 - Disable test_FrameSelection.html,test_HaveMetadataUnbufferedSeek.html,test_EndedEvent.html on android for frequent failures. r=me, a=test-only 2017-10-11 08:45:03 -04:00
Alastor Wu 6881f03d05 Bug 1403478 - part2 : merge 'test_SeekableBefore*' and 'test_SeekableAfter*' into 'test_SeekableBeforeAndAfter*'. r=jya
MozReview-Commit-ID: 3tfdEEV78k8

--HG--
rename : dom/media/mediasource/test/test_SeekableAfterEndOfStream.html => dom/media/mediasource/test/test_SeekableBeforeAndAfterEndOfStream.html
rename : dom/media/mediasource/test/test_SeekableAfterEndOfStreamSplit.html => dom/media/mediasource/test/test_SeekableBeforeAndAfterEndOfStreamSplit.html
rename : dom/media/mediasource/test/test_SeekableAfterEndOfStreamSplit_mp4.html => dom/media/mediasource/test/test_SeekableBeforeAndAfterEndOfStreamSplit_mp4.html
rename : dom/media/mediasource/test/test_SeekableAfterEndOfStream_mp4.html => dom/media/mediasource/test/test_SeekableBeforeAndAfterEndOfStream_mp4.html
extra : rebase_source : 98e2e7c90f9b22526889eca869160999307e0cf7
2017-09-29 11:58:44 +08:00
Alastor Wu 27e06f23ea Bug 1403478 - part1 : check v.seekable before and after calling ms.endOfStream(). r=jwwang,jya
This patch does two things,

(1) check v.seekable after calling ms.endOfStream()
As test name suggests, we check seekable after calling endOfStream()

(2) check the time range of v.seekable
The seekable represents the ranges of the media resource [1], so it would be changed after calling ms.endOfStream().

Before calling the endOfStream(), seekable should be [0, ms.duration)
After calling the endOfStream(), seekable should be [0, ms.buffer.end(0))

[1] https://www.w3.org/TR/html51/semantics-embedded-content.html#dom-htmlmediaelement-seekable

MozReview-Commit-ID: 56AIZYVsHhW

--HG--
extra : rebase_source : a1f1df601dc8523cd5d4e58b41cada3c79d494c1
2017-09-29 11:33:46 +08:00
Alastor Wu 5eddb6c449 Bug 1401147 - part2 : add test. r=jya
MozReview-Commit-ID: 2onCtimjuz4

--HG--
extra : rebase_source : 9e54641fbc2480895ff067e0d48f1eebba313911
2017-09-23 00:00:56 +08:00
Alastor Wu 8c76ba6b0a Bug 1400195 - remove xp constraint for tests. r=jya
MozReview-Commit-ID: BawMiEVPNFA

--HG--
extra : rebase_source : 0f653a020a2cdfaff76c8ef2ee477e02796c646b
2017-09-16 02:14:23 +08:00
Alastor Wu 97421a2047 Bug 1398139 - part4 : enable test. r=jya
Fix the fail by patch1, so we can re-enable it.

MozReview-Commit-ID: It3JkvQzAdk

--HG--
extra : rebase_source : 5ad433012750c8f6c92b16b787e87b32ee03d7a6
2017-09-15 18:05:21 +08:00
Joel Maher 7806465584 Bug 1398244 - run mochitest-media on windows 10 instead of windows 8. r=rwood 2017-09-13 05:18:46 -04:00
Jean-Yves Avenard cf6931a74f Bug 1389844 - P1. Add mochitest. r=gerald
Similar to test_PlayEventsAutoPlaying.html, but here we load 10s of data and ensure autoplaying kicks in.

MozReview-Commit-ID: ImpjFIcBIo1

--HG--
extra : rebase_source : c7d280eebeb6b3398176423b9e723696c9543c7f
2017-08-16 19:20:45 +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
Jean-Yves Avenard eb9666fa81 Bug 1383122 - P1. Amend Mochitest to ensure error doesn't occur. r=jwwang
MozReview-Commit-ID: 4xHD8KjY0XT

--HG--
extra : rebase_source : e6a8c22ee37537bcd6cdb98487796854ad116227
2017-07-21 18:44:11 +02:00
Jean-Yves Avenard fe81e074b9 Bug 1382303 - P1. Add mochitest. r=jwwang
MozReview-Commit-ID: ENSiDzd2SmW

--HG--
extra : rebase_source : fd590977e460d14cc2596116fe4ce7ee6fb76b97
2017-07-20 19:09:04 +02:00
Alfredo Yang e6b2ddf4c2 Bug 1364872 - take zero tolerance of decoding error in debug and playback test. r=jya
MozReview-Commit-ID: 9DYBfyIvGvk

--HG--
extra : rebase_source : 81c85e2f271110fe85f94fb687a60820fc37f0fa
2017-05-24 15:25:09 +08:00
Jean-Yves Avenard 2dc6972be9 Bug 1362165: P9. Update mochitests. r=jwwang
I'm not sure what this mochitest was supposed to test, but it was doing it wrong anyway.

MozReview-Commit-ID: BexSN7YgXwj

--HG--
extra : rebase_source : ee056ab1eede9381376265dffb2f171cec87b086
2017-05-26 20:54:36 +02:00
Jean-Yves Avenard 7aeaba625b Bug 1362165: P8. Fix mochitests. r=jwwang
Per spec loadedmetadata should be fired before updateend. fetchAndLoad want on the updateend event. So we can't wait for the loadedmetadata event only after updateend has been fired.

MozReview-Commit-ID: BprzynZ8t1U

--HG--
extra : rebase_source : e3281b2d68272f5dd08567bfd3189e75411a6a99
2017-05-26 10:36:23 +02:00
Jean-Yves Avenard 5c7678f322 Bug 1362165: P6. Only use sourcebuffer again once previous operation completed. r=gerald
It was incorrect to assume that once "loadeddata" event fired the sourcebuffer would be usable again. Only the "updateend" event guarantees such condition.

MozReview-Commit-ID: HcyaLWjjBlp

--HG--
extra : rebase_source : c9d7a91ecc40c633078eaa2dec635e240106dff6
2017-05-03 11:50:33 +02:00
Jean-Yves Avenard 10fa46be38 Bug 1362165: P5. Don't assume that when stalling all data has been loaded. r=gerald
The stalled event can be fired as playback is starting and data has yet to be processed.
So instead we wait for playback to reach the end.

MozReview-Commit-ID: 4W3M5tee2HD

--HG--
extra : rebase_source : 349321452f8e1cc3307e8cedb6ebf44949694661
2017-04-28 17:18:43 +02:00
Jean-Yves Avenard 6643614f8c Bug 1362165: P4. Don't assume the duration found when reading metadata will be the final one. r=gerald
When endOfStream() is called, the duration is changed to that of the last buffered frame's end time.

The ended event will only be fired if currentTime is equal to the duration. So if the duration has changed following a call to endOfStream, then playback won't be considered as ended.

MozReview-Commit-ID: DBu3LorwFTI

--HG--
extra : rebase_source : a721ac0186f609b23537b71819c63d812f89a3b6
2017-04-28 16:16:51 +02:00
Jean-Yves Avenard 3b95392a3c Bug 1362165: P3. Remove unecessary code. r=gerald
We have no need to call endOfStream here as we don't rely on the ended event being fired.
Also, there's no need to track how many update count we will get when we only use appendBuffer once.

Adding extra test to help identify where the actual failure of the test could occur.

MozReview-Commit-ID: HIu1XQpHark

--HG--
extra : rebase_source : 07f9ac856d290f1347ec4b33794dc7d20adcc4cc
2017-04-28 16:18:36 +02:00
Jean-Yves Avenard 5dd9cac21c Bug 1362165: P2. Don't expect that all data has been processed after metadata. r=gerald
Assuming that the buffered range has been updated when loadedmetadata was fired was wrong. Only once the data has been fully appended to the source buffer, can seeking complete.

MozReview-Commit-ID: LRY0PRaMEw9

--HG--
extra : rebase_source : 07dcae199c8c38e3cadc3c4ed302e4bd3a82b48b
2017-04-28 00:52:44 +02:00
Bob Clary e0fcc0bc36 Bug 1358876 - Autophone - disable perma orange tests on Android 5.1, r=jmaher. 2017-04-24 08:02:59 -07:00
Sebastian Hengst 38b7615ab3 Backed out changeset df17c800d8f2 (bug 1358876) for crash test bustage. r=backout
"AndroidVersion is not defined"
2017-04-24 17:35:37 +02:00
Bob Clary 33ee94b632 Bug 1358876 - Autophone - disable perma orange tests on Android 5.1, r=jmaher. 2017-04-24 08:02:59 -07:00
Bob Clary 5382b3e45a Bug 1352333 - sync autophone webrtc test manifests with normal webrtc manifests, r=jmaher,dminor. 2017-04-20 14:13:34 -07:00
Jean-Yves Avenard 45f18b6e83 Bug 1350932: P1. Add mochitest. r=gerald
Add an AVC3 (content provided by BBC) mochitest. We've regressed BBC playback rather regularly. Better make sure this never happens again.

MozReview-Commit-ID: 5ssaLcqiqsv

--HG--
extra : rebase_source : 27938e746822f89167f287d57c81f276198b2c5e
2017-03-28 23:39:09 +02:00
Jean-Yves Avenard 50a8a24876 Bug 1347101: P1. Re-enable mochitest. r=gerald
MozReview-Commit-ID: 4Zh3WOZiyrI

--HG--
extra : rebase_source : 3c889c37efbbe6658800533c2df500792478bcf9
2017-03-17 01:15:34 +01:00
Jean-Yves Avenard 65f007b6ab Bug 1342913: P1. Add mochitest. r=gerald
MozReview-Commit-ID: IaU4tIm0Wze

--HG--
extra : rebase_source : 99c48155ec1c846496767ed2f823c60811e968f6
2017-03-08 00:28:13 +11:00
Jean-Yves Avenard ec5692956a Bug 1346463: Disable test on windows 8 for now. r=gerald
Issue tracked in bug 1347101

MozReview-Commit-ID: 8YaMr3p8aMk

--HG--
extra : rebase_source : 0ee14327fd0d2bcb1589e35e6cf4455d5d8e7793
2017-03-14 12:39:13 +01:00
JW Wang b28f0b3829 Bug 1343459. Part 2 - remove the 'updateend' handler which might fire before we register it. r=jya
Note the race is uncovered by P1 which kinda change the order of events.

MozReview-Commit-ID: 3INYvJVUhSG

--HG--
extra : rebase_source : e378c2a437a5a729008d39570be2a9087a7eb5f7
extra : intermediate-source : 02e2ecfea068dd9f487791287064e684a15dd599
extra : source : f2f40c70a2304e3e499422f3a7c46b59b54ad1ae
2017-03-01 17:46:42 +08:00
Jean-Yves Avenard ea9131893f Bug 1345756: P1. Add mochitest. r=gerald
testing seeking to last audio frame buffered.

MozReview-Commit-ID: A4Cr4OHs8qP

--HG--
extra : rebase_source : 77b91e3777feede619efa7008489c78680c1627e
2017-03-08 23:09:52 +01:00
Wes Kocher a237e462ec Backed out 2 changesets (bug 1342913) for failures in test_ChangeWhileWaitingOnMissingData_mp4.html a=backout
Backed out changeset f770cf70a30e (bug 1342913)
Backed out changeset 7fc8016ace00 (bug 1342913)

MozReview-Commit-ID: GfZmkx9mvoZ
2017-03-09 11:07:18 -08:00
Wes Kocher eb19bf64a5 Backed out 4 changesets (bug 1345756) for failures in test_SeekToLastFrame_mp4.html a=backout
Backed out changeset ee6db88f8695 (bug 1345756)
Backed out changeset afd77992867f (bug 1345756)
Backed out changeset 83dc982bfc63 (bug 1345756)
Backed out changeset bd4999a68867 (bug 1345756)

MozReview-Commit-ID: 1J7H3EfW3fZ
2017-03-09 11:06:41 -08:00
Jean-Yves Avenard f784a126e9 Bug 1345799: [MSE] Add flac in mp4 mochitest. r=gerald
MozReview-Commit-ID: CGW7kZa7u5q

--HG--
extra : rebase_source : 98bde84747f63e8c15abd9f72eadf728947aca38
2017-03-09 13:02:57 +01:00
Jean-Yves Avenard 5d03df341f Bug 1345756: P1. Add mochitest. r=gerald
testing seeking to last audio frame buffered.

MozReview-Commit-ID: A4Cr4OHs8qP

--HG--
extra : rebase_source : 6b29a319181ca3284c264db9a1835e90875ccfa6
2017-03-08 23:09:52 +01:00
Jean-Yves Avenard 62f545f559 Bug 1342913: P1. Add mochitest. r=gerald
MozReview-Commit-ID: IaU4tIm0Wze

--HG--
extra : rebase_source : d4ed69e7addd9eaece9031195288c0f411ddea0a
2017-03-08 00:28:13 +11:00
Masatoshi Kimura 7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00