Closed Bug 1335543 Opened 9 years ago Closed 9 years ago

EME Tests don't bail when encountering a no key error (but it looks like the author's original intent that they do)

Categories

(Core :: Audio/Video: Playback, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: jay.harris, Assigned: jay.harris)

Details

Attachments

(1 file)

It looks like: ``` if (key) { Log(token, "found key " + key + " for key id " + idHex); outKeys.push({ "kty":"oct", "kid":id64, "k":HexToBase64(key) }); } else { bail(token + " couldn't find key for key id " + idHex); } ``` should be ``` if (key) { Log(token, "found key " + key + " for key id " + idHex); outKeys.push({ "kty":"oct", "kid":id64, "k":HexToBase64(key) }); } else { bail(token + " couldn't find key for key id " + idHex)("No key"); } ``` As bail returns a function, so nothing actually happens when invoking 'bail'
A try build is running https://treeherder.mozilla.org/#/jobs?repo=try&revision=cb3c51169b9c0f9e12cda4f2ca21e84ea6c2e268 to see whether this change will effect any existing tests.
Attachment #8832302 - Flags: review?(jwwang)
Attachment #8832302 - Flags: review?(jwwang) → review+
Keywords: checkin-needed
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: