Sign in
cobalt
/
cobalt
/
527110903c994f57b3fc64852b74e941d515b683
/
.
/
third_party
/
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
));
}
});