-
Notifications
You must be signed in to change notification settings - Fork 336
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
Add a prefetch
initiator
#659
Conversation
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.
Happy to land this when the CSP PR is ready.
fetch.bs
Outdated
@@ -917,6 +919,16 @@ not always relevant and might require different behavior. | |||
<td>"<code>manifest</code>" | |||
<td><code>manifest-src</code> | |||
<td>HTML's <code><link rel=manifest></code> | |||
<tr> | |||
<td>"<code>prefetch</code>" | |||
<td>"" |
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.
rowspan=2 for this td and the next? And then remove the from the next row?
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.
updated. Let me know if this is what you had in mind
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.
I guess the only thing that remains here is Akamai signing up. Thanks for working on this!
<td rowspan=2><code>prefetch-src</code> | ||
<td>HTML's <code><link rel=prefetch></code> | ||
<tr> | ||
<td>"<code>prerender</code>" |
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.
Reading through w3c/webappsec-csp@91adc4a, prefetch-src should also be listed for prerender?
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 is (that's what the "rowspan=2" is all about)
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.
Ah, right. Nevermind me, all good!
Looks great, thanks for driving this Yoav! |
@annevk - Finally managed to sign the participant agreement on behalf of Akamai. Apologies for the delay. Can you please verify me to appease the bots? |
Done, though I think @domenic needs to flip some switch to make it propagate (I'm happy to learn how btw). Are the tests for this web-platform-tests/wpt#9013? Do we have a follow-up issue for dns-prefetch and such that came up in the issue? |
Yeah. We cannot test the
I'll try to get to it this week (if I won't, it'll probably be at the end of April, due to travel...) |
Follow-up is #683. I think we should file browser bugs since CSP doesn't have that as a policy. Then this can land. |
Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f
@mikewest added a bunch of tests to https://github.com/w3c/web-platform-tests/tree/master/content-security-policy/prefetch-src and I just added tests to make sure the destination is "" at web-platform-tests/wpt@b3312d9 @annevk - is that enough to land this? Or are more tests needed? |
@yoavweiss great, though we already had sufficient tests to land. The one thing lacking here is impl bugs: https://github.com/whatwg/meta/blob/master/MAINTAINERS.md#handling-pull-requests. |
The initiator is not exposed on Request, correct? So does implementation here mainly mean something for CSP behavior? |
Yes. |
Yeah, implementation means implementing |
@wanderview There's already https://bugzilla.mozilla.org/show_bug.cgi?id=1449374 but I'm not sure if it should be converted to an "implement |
@yoavweiss I recommend filing a more clear bug about implementing prefetch-src under Core::DOM:Security. |
@wanderview on it! :) |
@wanderview Filed https://bugzilla.mozilla.org/show_bug.cgi?id=1457204 but don't seem to have permissions to change components |
WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=185070 (even though prefetch is not shipped in Safari atm) Edge bug: I sent out https://twitter.com/yoavweiss/status/989729796895653888 which people say should work. Alternatively @patrickkettner said he'd open one. |
Thanks @yoavweiss! |
Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f Reviewed-on: https://chromium-review.googlesource.com/1029858 Commit-Queue: Yoav Weiss <[email protected]> Reviewed-by: Charlie Harrison <[email protected]> Reviewed-by: Yutaka Hirano <[email protected]> Cr-Commit-Position: refs/heads/master@{#554341}
Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f Reviewed-on: https://chromium-review.googlesource.com/1029858 Commit-Queue: Yoav Weiss <[email protected]> Reviewed-by: Charlie Harrison <[email protected]> Reviewed-by: Yutaka Hirano <[email protected]> Cr-Commit-Position: refs/heads/master@{#554341}
Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f Reviewed-on: https://chromium-review.googlesource.com/1029858 Commit-Queue: Yoav Weiss <[email protected]> Reviewed-by: Charlie Harrison <[email protected]> Reviewed-by: Yutaka Hirano <[email protected]> Cr-Commit-Position: refs/heads/master@{#554341}
…tonly Automatic update from web-platform-testsAlign Request.destination to spec Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f Reviewed-on: https://chromium-review.googlesource.com/1029858 Commit-Queue: Yoav Weiss <[email protected]> Reviewed-by: Charlie Harrison <[email protected]> Reviewed-by: Yutaka Hirano <[email protected]> Cr-Commit-Position: refs/heads/master@{#554341} -- wpt-commits: 3c940291e9e8c30e8c7c401426160e3531639403 wpt-pr: 10657
…tonly Automatic update from web-platform-testsAlign Request.destination to spec Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f Reviewed-on: https://chromium-review.googlesource.com/1029858 Commit-Queue: Yoav Weiss <yoavyoav.ws> Reviewed-by: Charlie Harrison <csharrisonchromium.org> Reviewed-by: Yutaka Hirano <yhiranochromium.org> Cr-Commit-Position: refs/heads/master{#554341} -- wpt-commits: 3c940291e9e8c30e8c7c401426160e3531639403 wpt-pr: 10657 UltraBlame original commit: b60142c1cc9a01efbb27b591c1828015ffa0a6cb
…tonly Automatic update from web-platform-testsAlign Request.destination to spec Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f Reviewed-on: https://chromium-review.googlesource.com/1029858 Commit-Queue: Yoav Weiss <yoavyoav.ws> Reviewed-by: Charlie Harrison <csharrisonchromium.org> Reviewed-by: Yutaka Hirano <yhiranochromium.org> Cr-Commit-Position: refs/heads/master{#554341} -- wpt-commits: 3c940291e9e8c30e8c7c401426160e3531639403 wpt-pr: 10657 UltraBlame original commit: b60142c1cc9a01efbb27b591c1828015ffa0a6cb
…tonly Automatic update from web-platform-testsAlign Request.destination to spec Currently `Request.destination` is set to "unknown" prefetch, but that was recently changed: Issue: whatwg/fetch#658 PR: whatwg/fetch#659 This CL aligns the destination values to the spec change. Bug: 832105 Change-Id: Ib9f21dcc6cf0ace27b7a810d3670cddc45b3b74f Reviewed-on: https://chromium-review.googlesource.com/1029858 Commit-Queue: Yoav Weiss <yoavyoav.ws> Reviewed-by: Charlie Harrison <csharrisonchromium.org> Reviewed-by: Yutaka Hirano <yhiranochromium.org> Cr-Commit-Position: refs/heads/master{#554341} -- wpt-commits: 3c940291e9e8c30e8c7c401426160e3531639403 wpt-pr: 10657 UltraBlame original commit: b60142c1cc9a01efbb27b591c1828015ffa0a6cb
Closes #658
Preview | Diff