[Webkit-unassigned] [Bug 226382] New: Prefetching cross-origin subresources for the current page gives double fetch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 28 11:29:02 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226382
Bug ID: 226382
Summary: Prefetching cross-origin subresources for the current
page gives double fetch
Product: WebKit
Version: Safari 14
Hardware: Mac (Intel)
OS: macOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jeff.t.kaufman at gmail.com
When a page makes a cross-origin prefetch it's not used on that page. To reproduce:
1. Turn on Develop > Experimental Features > LinkPrefetch (tested in Version 14.1)
2. Visit https://www.jefftk.com/test/prefetch/prefetch-nested
3. See that bg.css, log.js, and hello-world are immediately fetched
4. After waiting five seconds, see that they are fetched a second time (confirmed with server logs)
I tried adding "as=" attributes, without effect: https://www.jefftk.com/test/prefetch/prefetch-nested-as
It looks to me like the document is used for prefetching if I navigate to it instead of putting it in an iframe (https://www.jefftk.com/test/prefetch/prefetch-navigate). This one does make some sense: if you prefetch a document you could plausibly either want to navigate the whole page to it, or navigate an iframe. Chrome handles this the same way as Safari, while Firefox does the opposite; I've filed https://github.com/whatwg/html/issues/6723
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210528/31b5616a/attachment.htm>
More information about the webkit-unassigned
mailing list