Closed Bug 1581278 Opened 5 years ago Closed 5 years ago

Add a version of Promise::MaybeReject that takes an nsresult and a error message

Categories

(Core :: DOM: Core & HTML, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 2 open bugs)

Details

Attachments

(5 files)

Or maybe we should call it MaybeRejectWithDOMException to make it clear what's going on here?

All the callsites at https://searchfox.org/mozilla-central/search?q=MaybeReject%28NS_ERROR_DOM&path= are rather suspect and maybe in need of changing to the new setup.

Type: defect → task
Blocks: 1581961
Blocks: 1581172, 927610
Attachment #9093771 - Attachment description: Bug 1581278 part 5. Stop incorrectly rejecting promises in EME. r=gerald → Bug 1581278 part 5. Stop incorrectly rejecting promises in EME. r=bryce
Pushed by bzbarsky@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0861c66c0e4c
part 1.  Implement ErrorResult overload of DetailedPromise::MaybeReject.  r=bholley
https://hg.mozilla.org/integration/autoland/rev/f3eb9ec9f7b9
part 2.  Add convenience methods for rejecting promises with various types of spec exceptions.  r=smaug
https://hg.mozilla.org/integration/autoland/rev/48603e8781d8
part 3.  Stop incorrectly rejecting promises in storage manager.  r=janv
https://hg.mozilla.org/integration/autoland/rev/7399098308aa
part 4.  Stop incorrectly rejecting promises in MediaCapabilities.  r=jya
https://hg.mozilla.org/integration/autoland/rev/dd375f633fe7
part 5.  Stop incorrectly rejecting promises in EME.  r=bryce
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/19225 for changes under testing/web-platform/tests

I can't quite tell from the logs this time what the issue is, but if it's the timeouts in encrypted-media/drm-mp4-playback-retrieve-destroy-persistent-license.https.html and similar, those predate these changes, right?

Flags: needinfo?(bzbarsky) → needinfo?(james)

An in particular, see bug 1313284.

Assignee: nobody → bzbarsky
Flags: needinfo?(james)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: