Add checks for not potentially trustworthy and "file" origins.#219
Open
inexorabletash wants to merge 1 commit intomainfrom
Open
Add checks for not potentially trustworthy and "file" origins.#219inexorabletash wants to merge 1 commit intomainfrom
inexorabletash wants to merge 1 commit intomainfrom
Conversation
This aligns the spec with Chromium's behavior, namely that writes where the origin is not potentially trustworthy or is "file" scheme result in failure with a TypeError. Resolves #193
Member
Author
|
This PR (as currently written) is purely to align the spec text w/ Chromium behavior. That doesn't mean we should merge it though! Notably:
|
ayuishii
approved these changes
Jul 10, 2023
Collaborator
ayuishii
left a comment
There was a problem hiding this comment.
Thanks for the change!
I think this LGTM.
Member
Author
|
I looked briefly at tests just to capture Chrome's behavior - given the A manual test for |
Member
|
@bakulf @RupinMittal what do Gecko and WebKit do here? |
|
Currently, in Gecko, the CookieStore API is not available on potentially untrustworthy origins or pages loaded using the "file" scheme. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This aligns the spec with Chromium's behavior, namely that writes where the origin is not potentially trustworthy or is "file" scheme result in failure with a TypeError.
Resolves #193
Preview | Diff