[wpt-sync] Sync PR 21582 - Replace some "promise_rejects(t, new FooError, stuff)" calls with pro…
Categories
(Core :: DOM: Networking, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream][necko-triaged])
Attachments
(4 files)
Sync web-platform-tests PR 21582 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/21582
Details from upstream follow.
Boris Zbarsky <bzbarsky@mit.edu> wrote:
Replace some "promise_rejects(t, new FooError, stuff)" calls with pro…
…mise_rejects_js.
This diff was generated by running:
find . -type f -print0 | xargs -0 perl -pi -e 'BEGIN { $/ = undef; } s/promise_rejects(([ \n][a-zA-Z_]+[ \n],[ \n]*)(?:new )?([A-Z][A-Za-z]*Error) *(?:())? *(, *.)/promise_rejects_js(\1\2\3/gs'
(which allows the optional "new" before "FooError" and an optional "()" after
it) and then:
Manually editing css/cssom-view/MediaQueryList-addListener-handleEvent.html
to make it get TypeError from the right global.Manually editing fetch/api/response/response-error-from-stream.html to use
promise_rejects_exactly instead of the thing it was doing with a
CustomTestError.Manually editing html/cross-origin-embedder-policy/require-corp.https.html
to use TypeError from the right global in the window.open case.Manually editing
service-workers/service-worker/controller-with-no-fetch-event-handler.https.html
to use TypeError from the right global in the subframe case.Manually editing
service-workers/service-worker/fetch-response-taint.https.html to use TypeError
from the right frame.Manually editing
service-workers/service-worker/redirected-response.https.html to get the
TypeError from the right subframe in various places.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5ad9b4d98417
https://hg.mozilla.org/mozilla-central/rev/e033e13b4666
Description
•