Closed
Bug 786331
Opened 13 years ago
Closed 13 years ago
WebGL tests that use video can loop indefinitely
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
FIXED
mozilla19
People
(Reporter: padenot, Assigned: padenot)
Details
(Whiteboard: webgl-conformance)
Attachments
(1 file, 2 obsolete files)
|
2.40 KB,
patch
|
bjacob
:
review+
|
Details | Diff | Splinter Review |
In the webgl conformance tests that use video elements (example: [1]), the tests are ran on "playing", and the video has a loop attribute. In that case, "playing" is fired every time we loop. Also, when the video is paused because it is buffering (which happens a lot even in local on try), it also fires a "playing" event.
That means the tests can be run multiple time (with multiple value being an high enough number to cause a timeout in the tests harness), and run an infinite number of time when ran outside the harness (making debugging rather painful).
An easy fix would be to set the |video.src| to null when we passed the tests, to ensure that "playing" will not fire.
This has been triggered by upcoming changes to the media element, and causes intermittent failures.
[1]: http://mxr.mozilla.org/mozilla-central/source/content/canvas/test/webgl/conformance/textures/tex-image-and-sub-image-2d-with-video.html?force=1
Comment 1•13 years ago
|
||
Thanks a lot! We should fix the tests and upstream the fix. Are you writing the patch for our copy of the tests? I have no experience whatsoever coding for the video element.
Updated•13 years ago
|
Whiteboard: webgl-conformance
| Assignee | ||
Comment 2•13 years ago
|
||
I have a patch sitting somewhere. I'll make sure it works properly (and fixes all the occurrences of this pattern) and attach it here.
| Assignee | ||
Comment 3•13 years ago
|
||
This patch fixes the two occurences I found.
It's green on try: https://tbpl.mozilla.org/?tree=Try&rev=5d9493c46563.
Attachment #656293 -
Flags: review?(bjacob)
Comment 4•13 years ago
|
||
Comment on attachment 656293 [details] [diff] [review]
WebGL tests that use video can loop indefinitely. r=
Review of attachment 656293 [details] [diff] [review]:
-----------------------------------------------------------------
Wouldn't it make more sense to remove the event listener?
Attachment #656293 -
Flags: review?(bjacob)
Comment 5•13 years ago
|
||
Btw, sorry for being so nitpicky. The reason why I am is we're going to try to upstream it.
| Assignee | ||
Comment 6•13 years ago
|
||
This seems indeed cleaner.
Attachment #657470 -
Flags: review?(bjacob)
| Assignee | ||
Updated•13 years ago
|
Attachment #656293 -
Attachment is obsolete: true
| Assignee | ||
Comment 7•13 years ago
|
||
Even better with a semicolon at the end.
Attachment #657471 -
Flags: review?(bjacob)
| Assignee | ||
Updated•13 years ago
|
Attachment #657470 -
Attachment is obsolete: true
Attachment #657470 -
Flags: review?(bjacob)
Updated•13 years ago
|
Attachment #657471 -
Flags: review?(bjacob) → review+
Updated•13 years ago
|
Whiteboard: webgl-conformance → webgl-conformance webgl-test-needed
| Assignee | ||
Comment 8•13 years ago
|
||
Status: NEW → ASSIGNED
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → paul
Comment 9•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment 10•13 years ago
|
||
Merged upstream (a slightly different patch as it had changed):
https://github.com/KhronosGroup/WebGL/pull/98
Whiteboard: webgl-conformance webgl-test-needed → webgl-conformance
You need to log in
before you can comment on or make changes to this bug.
Description
•