Sign in
webkit
/
WebKit
/
47b8206e2462d5a862fef65e142ae8764bd9b9e5
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
service-workers
/
service-worker
/
resources
/
fetch-canvas-tainting-double-write-worker.js
blob: 17723dcdda2f2fadb9ab0ab4a00b28c24b815234 [
file
] [
log
] [
blame
]
self
.
addEventListener
(
'fetch'
,
(
event
)
=>
{
url
=
new
URL
(
event
.
request
.
url
);
if
(
url
.
search
==
'?PNGIMAGE'
)
{
localUrl
=
new
URL
(
url
.
pathname
+
url
.
search
,
self
.
location
);
event
.
respondWith
(
fetch
(
localUrl
));
}
});