-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use InvalidStateError instead of SecurityError for fully active checks #112
Conversation
I used the relevant line:
I certainly don't have a strong opinion, however. If InvalidStateError is more common, that seems like a better approach. |
Yeah, I filed w3ctag/design-principles#395 for having some guidance on which errors are to be used in this case. I wasn't aware of the usage in the History API, so now I understand why we originally chose SecurityError. However, it looks like the majority of APIs (including the proposed history API successor) use InvalidStateError now, so I'll go ahead and merge this. Thanks! |
See discussion on the related pull request: privacycg/storage-access#112 Bug: 1354256 Change-Id: Ie2ac7890ae1039feca28b63239f02e476070e813
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}
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}
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}
…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
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} NOKEYCHECK=True GitOrigin-RevId: 803dae7978e9a0fb88489e41f71e7a84f1b2bd78
…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
@mreichhoff I noticed that InvalidStateError seems to be the most common error state for non-fully active checks, is there any particular reason we picked a SecurityError in Chromium for this?
Preview | Diff