| Summary: | Safari 16 issuing requests twice with navigationPreload enabled | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alex <vagulisal500> |
| Component: | Service Workers | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Critical | CC: | achristensen, ap, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 16 | ||
|
Description
Alex
2022-09-30 00:16:56 PDT
this is minimal reproducer
self.addEventListener('activate', event => {
event.waitUntil((async () => {
if (self.registration.navigationPreload) {
await self.registration.navigationPreload.enable();
}
})());
});
self.addEventListener('fetch', (event) => {
const request = event.request;
event.respondWith((async () => {
return await event.preloadResponse || await fetch(request);
})());
});
Thanks for the report. I believe this was fixed in https://bugs.webkit.org/show_bug.cgi?id=245788. *** This bug has been marked as a duplicate of bug 245788 *** |