Skip to content
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

scope algorithm: Delete same-origin-as-document check. #696

Merged
merged 1 commit into from
Jun 15, 2018

Conversation

mgiuca
Copy link
Collaborator

@mgiuca mgiuca commented Jun 15, 2018

This was redundant, because a) the start_url is already checked to be
same-origin-as-document, and b) the start_url is checked to be within
scope of scope (which implies they are same-origin). Thus the scope is
guaranteed to be same-origin as the document without this explicit
check.

This removes the document URL parameter to the scope algorithm.

No normative changes.

Work towards fixing #668.


Preview | Diff

This was redundant, because a) the start_url is already checked to be
same-origin-as-document, and b) the start_url is checked to be within
scope of scope (which implies they are same-origin). Thus the scope is
guaranteed to be same-origin as the document without this explicit
check.

This removes the document URL parameter to the scope algorithm.

No normative changes.
@mgiuca
Copy link
Collaborator Author

mgiuca commented Jun 15, 2018

@marcoscaceres from your Twitter it looks like you're busy for awhile. @kenchris maybe can take a look? Thanks.

Check my logic: I don't think this changes anything.

Copy link
Collaborator

@dominickng dominickng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this doesn't change anything given that scope's fallback default is directly computed from start URL (which is guaranteed to be same-origin with document URL or the document URL itself at the moment if the same origin check fails.

@mgiuca mgiuca merged commit 595ed56 into w3c:gh-pages Jun 15, 2018
@mgiuca mgiuca deleted the scope-dont-check-document branch July 5, 2018 05:15
kenchris pushed a commit to kenchris/manifest that referenced this pull request Sep 3, 2018
This was redundant, because a) the start_url is already checked to be
same-origin-as-document, and b) the start_url is checked to be within
scope of scope (which implies they are same-origin). Thus the scope is
guaranteed to be same-origin as the document without this explicit
check.

This removes the document URL parameter to the scope algorithm.

No normative changes.

Work towards fixing w3c#668.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants