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

Editorial: turn CORS-preflight cache into a list #744

Merged
merged 4 commits into from Aug 16, 2018

Conversation

annevk
Copy link
Member

@annevk annevk commented May 28, 2018

This grounds it a bit more in an Infra data structure.

Fixes #735.


Preview | Diff

Copy link
Collaborator

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

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

Couple of minor bugs, but otherwise LGTM

.travis.yml Outdated
script:
- curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh && bash ./deploy.sh
- make deploy
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems unrelated to the editorial stuff. Is this mostly a separate change?

fetch.bs Outdated
and either <var>request</var>'s <a for=request>method</a> is a not a
<a>CORS-safelisted method</a> or <var>request</var>'s
<ul class=brief>
<li><p>There is no <a for=cache>method cache entry match</a> for <var>request</var>'s
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove for=cache.

fetch.bs Outdated
<dt><a for=cache>url</a>
<dd><var>request</var>'s <a for=request>current url</a>
<dl>
<dt><a for=cache>serialized origin</a>
Copy link
Collaborator

Choose a reason for hiding this comment

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

In this <dl>, for=cache should be for="cache entry" (or remove the for from each item and add link-for="cache entry" to the <dl>.

fetch.bs Outdated
<dt><a for=cache>method</a>
<dd><p><var>method</var>

<dt><p><a for=cache>header name</a>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove <p>.

@annevk annevk force-pushed the annevk/cors-preflight-cache-list branch from bc86651 to 2a7f0a2 Compare August 15, 2018 17:42
@annevk
Copy link
Member Author

annevk commented Aug 15, 2018

Thanks, I think I got them all. I also dropped the .travis.yml change and will put that in a separate PR.

@annevk annevk added the clarification Standard could be clearer label Aug 16, 2018
Copy link
Collaborator

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

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

Just one change.

fetch.bs Outdated
<var>request</var> and which is not a <a>CORS-safelisted request-header</a>.
<li><p>There is at least one <a for=/>header</a> in <var>request</var>'s
<a for=request>header list</a> for whose <a for=header>name</a> there is no
<a for=cache>header-name cache entry match</a> using <var>request</var> and which is not a
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove for=cache

@annevk annevk force-pushed the annevk/cors-preflight-cache-list branch from 25e0768 to b82c39c Compare August 16, 2018 10:55
@annevk
Copy link
Member Author

annevk commented Aug 16, 2018

(I had to rebase.)

Copy link
Collaborator

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

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

Sorry, spotted one more

fetch.bs Outdated
<a>CORS-preflight cache</a> for which there is a
<a for=cache>cache match</a> for <var>request</var> and one of
<p>There is a <dfn id=concept-cache-match-header>header-name cache entry match</dfn> for
<var>headerName</var> using <var>request</var> when there is a <a>entry entry</a> in the user
Copy link
Collaborator

Choose a reason for hiding this comment

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

<a>entry entry</a> to <a>cache entry</a> I think

@annevk
Copy link
Member Author

annevk commented Aug 16, 2018

@jakearchibald sorry for the long ping-pong. I addressed all Bikeshed warnings now.

Copy link
Collaborator

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

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

LGTM!

@annevk annevk merged commit 660ac3f into master Aug 16, 2018
@annevk annevk deleted the annevk/cors-preflight-cache-list branch August 16, 2018 11:58
@annevk
Copy link
Member Author

annevk commented Aug 16, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer
Development

Successfully merging this pull request may close these issues.

None yet

2 participants