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)
Core
Audio/Video: Playback
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'
| Assignee | ||
Comment 1•9 years ago
|
||
A try build is running https://treeherder.mozilla.org/#/jobs?repo=try&revision=cb3c51169b9c0f9e12cda4f2ca21e84ea6c2e268 to see whether this change will effect any existing tests.
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•9 years ago
|
Attachment #8832302 -
Flags: review?(jwwang)
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8832302 [details]
Bug 1335543 - Calls the bail function
https://reviewboard.mozilla.org/r/108640/#review110468
good catch!
Attachment #8832302 -
Flags: review?(jwwang) → review+
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/76265c3faf1e
Calls the bail function r=jwwang
Keywords: checkin-needed
Comment 5•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•