Skip to content

Commit

Permalink
Bug 1793065 [wpt PR 36144] - Replace SAA non-fully active SecurityErr…
Browse files Browse the repository at this point in the history
…or with InvalidStateError, a=testonly

Automatic update from web-platform-tests
Replace SAA non-fully active SecurityError with InvalidStateError

See discussion on the related pull request:
privacycg/storage-access#112

Bug: 1354256
Change-Id: Ie2ac7890ae1039feca28b63239f02e476070e813
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3926236
Reviewed-by: Dominic Farolino <dom@chromium.org>
Commit-Queue: Matt Reichhoff <mreichhoff@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1053043}

--

wpt-commits: a1de4a7cd450ae83127f17c4dcb5aff1f0e1d83d
wpt-pr: 36144
  • Loading branch information
mreichhoff authored and moz-wptsync-bot committed Oct 12, 2022
1 parent ce90124 commit e017b22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ if (topLevelDocument) {
const description = "document.requestStorageAccess() call in a detached frame";
// Can't use `promise_rejects_dom` here, since the error comes from the wrong global.
return promise.then(t.unreached_func("Should have rejected: " + description), (e) => {
assert_equals(e.name, 'SecurityError', description);
assert_equals(e.name, 'InvalidStateError', description);
});
}, "[non-fully-active] document.requestStorageAccess() should not resolve when run in a detached frame");

promise_test(t => {
return promise_rejects_dom(t, 'SecurityError', RunRequestStorageAccessViaDomParser(),
return promise_rejects_dom(t, 'InvalidStateError', RunRequestStorageAccessViaDomParser(),
"document.requestStorageAccess() in a detached DOMParser result");
}, "[non-fully-active] document.requestStorageAccess() should not resolve when run in a detached DOMParser document");

Expand Down

0 comments on commit e017b22

Please sign in to comment.