Stop using NS_ERROR_DOM_TYPE_ERR in webauthn
Categories
(Core :: DOM: Web Authentication, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(2 files)
It makes us throw incorrect exceptions.
Assignee | ||
Comment 1•4 years ago
|
||
This is needed so we can actually test the fix for the bug we're fixing.
Assignee | ||
Comment 2•4 years ago
|
||
The test changes are for the following reasons:
-
Removing the "empty ArrayBuffer" test: I don't see anything obvious in the
spec that would cause that to reject before prompting the user, and in fact it
does not do that in browsers. All browsers time out on that line. -
Removing the "name is object" test: This test is wrong. Passing {} where a
string is expected in IDL will come out as the string "[object Object]" on the
other side, and that seems like a perfectly valid name. -
Removing the "name is null" test: This test is wrong. Passing null where a
string is expected in IDL will come out as the string "null" on the other side,
and that seems like a perfectly valid name. -
Removing the "name is empty" test: I don't see anything obvious in the
spec that would cause that to reject before prompting the user. -
Removing the various "icon is whatever" tests: I don't see anything obvious in the
spec that would cause that to reject before prompting the user. -
Removing the various "displayName is whatever" tests: the same reasoning as
for the coresponding "name is whatever" tests applies.
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/42547ab8bb61 part 1. Switch some webauthn tests to non-legacy promise_rejects_* functions. r=jcj https://hg.mozilla.org/integration/autoland/rev/274fbf05b895 part 2. Throw the right exception when a user.id value is too long. r=jcj
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/21348 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/21348 * Community-TC (pull_request) (https://community-tc.services.mozilla.com/tasks/groups/Q_QCZkDMTtae9legE4hZ0A)
Assignee | ||
Comment 6•4 years ago
|
||
See https://github.com/web-platform-tests/wpt/pull/21348#issuecomment-577340367 -- the webauthn tests are all mostly broken and time out in all browsers; this change is not affecting that, apart from making one of them not time out.
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/42547ab8bb61
https://hg.mozilla.org/mozilla-central/rev/274fbf05b895
Assignee | ||
Updated•4 years ago
|
Upstream PR merged by jgraham
Description
•