-
Notifications
You must be signed in to change notification settings - Fork 180
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
Explainer change for separate rate-limits for embedded site #1457
base: main
Are you sure you want to change the base?
Changes from 5 commits
7de8374
cdf39fc
49fb85a
6185e14
8a0e156
5eab4b7
9f8600f
3e6bf34
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1875,8 +1875,14 @@ To <dfn>check if cookie-based debugging is allowed</dfn> given a | |
|
||
<h3 algorithm id="obtaining-context-origin">Obtaining context origin</h3> | ||
|
||
To obtain the <dfn export for=node>context origin</dfn> of a [=node=] |node|, return |node|'s [=node navigable=]'s | ||
[=navigable/top-level traversable=]'s [=navigable/active document=]'s [=origin=]. | ||
To obtain the <dfn export for=node>context origin</dfn> of a [=node=] |node|: | ||
|
||
1. Optionally, return the embedded origin if it exists. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that is the intention to leave it defined by the user agent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should clarify that. Otherwise, it could be interpreted as "some of the time, do this," when it really means that the implementation can choose whether it supports the notion of embedded origins, but if it does, this algorithm should be consistent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It could also apply to the case "some of the time, do this". For example, if we only want to do this for sources but not triggers. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, but the point is that the algorithm should be consistent under particular static circumstances. For example, it is not in the spirit of this specification for the implementation to generate a random number to decide whether to return the embedded origin or actual origin. |
||
1. Return |node|'s [=node navigable=]'s [=navigable/top-level traversable=]'s | ||
[=navigable/active document=]'s [=origin=]. | ||
|
||
Note: The user agent may return the embedded origin to allow separate limits | ||
for specific use cases. | ||
|
||
<h3 id="obtaining-randomized-response">Obtaining a randomized response</h3> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be helpful for people reading the spec to have some definition of
embedded origin
here, either in a note or in a link.