Closed Bug 1081251 Opened 10 years ago Closed 9 years ago

EME mochitests can pass even if the plugin crashes (e.g., ASAN)

Categories

(Core :: Audio/Video, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox37 --- fixed
firefox38 --- fixed

People

(Reporter: jld, Assigned: jwwang)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

It is possible for the mochitest content/media/test/test_encryptedMediaExtensions.html to pass even if the EME plugin container crashes while processing the test data.

This is more of a problem on ASAN builds, because they disable the crash reporter, and the test harness doesn't know that it's possible for a crash to happen without a minidump (this is now bug 1081229), but it seems worthwhile to make the test stricter independently of that.
JW: Can you take this too? It follows on from bug 1082203. You'll need to detect crashes and fail the test in the test_eme* tests.
Assignee: nobody → jwwang
Btw, I can't find the file test_encryptedMediaExtensions.html anymore...
test_eme_playback.html is pretty much the same as test_encryptedMediaExtensions.html...
I think all we need to do here is go through the EME mochitests and ensure that every <video> or <audio> element using EME has an "error" event handler on it.
Summary: content/media/test/test_encryptedMediaExtensions.html can pass even if the plugin crashes (e.g., ASAN) → EME mochitests can pass even if the plugin crashes (e.g., ASAN)
We can have SetupEME() return a video element with 'error' handler registered by default so new test cases will not forget to register one.
(In reply to JW Wang [:jwwang] from comment #5)
> We can have SetupEME() return a video element with 'error' handler
> registered by default so new test cases will not forget to register one.

Sounds good.
register error handlers for all media elements in EME mochitests.
Attachment #8546508 - Flags: review?(cpearce)
Attachment #8546508 - Flags: review?(cpearce) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/c645dd3b5468
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Attached patch Beta patchSplinter Review
Patch for beta branch as part of EME platform uplift.
Comment on attachment 8572326 [details] [diff] [review]
Beta patch

Requesting retroactive approval for Beta landing as part of EME platform uplift.
Attachment #8572326 - Flags: approval-mozilla-beta?
Comment on attachment 8572326 [details] [diff] [review]
Beta patch

Previously approved as part of the EME platform landing on Beta.
Attachment #8572326 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: