Closed Bug 1305336 Opened 8 years ago Closed 8 years ago

Intermittent dom/media/test/test_streams_autoplay.html | TypeError: v.mozDumpDebugInfo is not a function

Categories

(Core :: Audio/Video: MediaStreamGraph, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

Details

Attachments

(5 files)

test_streams_autoplay.html doesn't use MediaTestManager. We need to set the pref ["media.test.dumpDebugInfo", true] manually.
Attachment #8794703 - Flags: review?(pehrson)
Attachment #8794704 - Flags: review?(pehrson)
Attachment #8794705 - Flags: review?(pehrson)
Attachment #8794706 - Flags: review?(pehrson)
Attachment #8794707 - Flags: review?(pehrson)
Assignee: nobody → jwwang
Priority: -- → P3
Comment on attachment 8794703 [details]
Bug 1305336. Part 1 - extract some code to a function.

https://reviewboard.mozilla.org/r/81028/#review79662

Not sure I like the startTest definition indented like that, but it does help with reading.
Attachment #8794703 - Flags: review?(pehrson) → review+
Comment on attachment 8794704 [details]
Bug 1305336. Part 2 - use 'once' handler to remove onPlayingEventFired.

https://reviewboard.mozilla.org/r/81030/#review79664
Attachment #8794704 - Flags: review?(pehrson) → review+
Comment on attachment 8794705 [details]
Bug 1305336. Part 3 - set prefs before running tests.

https://reviewboard.mozilla.org/r/81032/#review79666
Attachment #8794705 - Flags: review?(pehrson) → review+
Comment on attachment 8794706 [details]
Bug 1305336. Part 4 - create elements dynamically because pref changes only take effect for those elements that are created later.

https://reviewboard.mozilla.org/r/81034/#review79668

::: dom/media/test/test_streams_autoplay.html:24
(Diff revision 1)
>  } else {
>    function startTest() {
> -    v1.src = media.name;
> +    var v1 = document.createElement('video');
> +    var v2 = document.createElement('video');
>      v1.preload = 'metadata';
> +    v2.autoplay = true;

This should use `v2.setAttribute` to be equivalent to the old code. Though we never change the source so it shouldn't matter.
Attachment #8794706 - Flags: review?(pehrson) → review+
Comment on attachment 8794707 [details]
Bug 1305336. Part 5 - use manifestVideo() so pref changes can take effect as expected.

https://reviewboard.mozilla.org/r/81036/#review79670
Attachment #8794707 - Flags: review?(pehrson) → review+
Thanks for the review!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/77f19f37b30c
Part 1 - extract some code to a function. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/f4e6468a9856
Part 2 - use 'once' handler to remove onPlayingEventFired. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/6eaeadf49020
Part 3 - set prefs before running tests. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/bbb609d92b20
Part 4 - create elements dynamically because pref changes only take effect for those elements that are created later. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/719b68f344f5
Part 5 - use manifestVideo() so pref changes can take effect as expected. r=pehrsons
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: