Add a version of Promise::MaybeReject that takes an nsresult and a error message
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
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.
![]() |
Assignee | |
Updated•5 years ago
|
![]() |
Assignee | |
Updated•5 years ago
|
![]() |
Assignee | |
Comment 1•5 years ago
|
||
![]() |
Assignee | |
Comment 2•5 years ago
|
||
![]() |
Assignee | |
Comment 3•5 years ago
|
||
![]() |
Assignee | |
Comment 4•5 years ago
|
||
![]() |
Assignee | |
Comment 5•5 years ago
|
||
Updated•5 years ago
|
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
Can't merge web-platform-tests PR due to failing upstream checks: Github PR https://github.com/web-platform-tests/wpt/pull/19225 * Taskcluster (pull_request) (https://tools.taskcluster.net/task-group-inspector/#/d0NCKH1CSaiicEpsU0eomA)
![]() |
Assignee | |
Comment 9•5 years ago
|
||
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?
![]() |
Assignee | |
Comment 10•5 years ago
|
||
An in particular, see bug 1313284.
Comment 11•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0861c66c0e4c
https://hg.mozilla.org/mozilla-central/rev/f3eb9ec9f7b9
https://hg.mozilla.org/mozilla-central/rev/48603e8781d8
https://hg.mozilla.org/mozilla-central/rev/7399098308aa
https://hg.mozilla.org/mozilla-central/rev/dd375f633fe7
Updated•5 years ago
|
Updated•5 years ago
|
Upstream PR merged by jgraham
Description
•