Closed Bug 593748 Opened 14 years ago Closed 14 years ago

Media error events from resource download abort bubble out causing mochitest errors

Categories

(Core :: Audio/Video, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 464398

People

(Reporter: cpearce, Unassigned)

Details

Some mochitests report errors due to the previous test finishing before one of its media resources has completed download. If a media element's download is aborted (say if the user navigates away to a new page) the media element will dispatch an error event. However if we cancel a resource load, and then start the next mochitest, the error event dispatched when we cancel the old test's media resource load can bubble out to the mochitest window after the new test has started, causing the mochitest harness to believe that it received an error event for the currently running test. This behaviour was added in the new load algorithm update of bug 485288, and is the specified behaviour. This happens in particular on test_timeupdate_small_files, which receives an error event from the test before it test_timeupdate3 (on Linux and OSX, test_timeupdate3 is disabled on Windows, which is probably why I never noticed this failure before). Our fix is simple: put error event listeners on all video elements which stop the propagation/bubble of the error events.
Does bug 464398 fix the issue? This prevents media from raising events when in bfcache.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.