blob: 7a2e874c28632f1880e8e19ec39236dd6fdc60b5 [file] [log] [blame]
// This worker intercepts a request for EMBED/OBJECT and responds with a
// response that indicates that interception occurred. The tests expect
// that interception does not occur.
self.addEventListener('fetch', e => {
if (e.request.url.indexOf('embedded-content-from-server.html') != -1) {
e.respondWith(fetch('embedded-content-from-service-worker.html'));
}
});