[Webkit-unassigned] [Bug 245866] Safari 16 issuing requests twice with navigationPreload enabled
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 30 08:02:50 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=245866
--- Comment #1 from Alex <vagulisal500 at gmail.com> ---
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);
})());
});
--
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/20220930/b439c6d7/attachment.htm>
More information about the webkit-unassigned
mailing list