Chromium Code Reviews| Index: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
| diff --git a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
| index 771b58faf7f62be69e84f8f9d051d97d1d7976cd..0cf11bf28b20eb3d48fcfeda872ecefc75e049e7 100644 |
| --- a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
| +++ b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp |
| @@ -193,9 +193,9 @@ DocumentThreadableLoader::DocumentThreadableLoader(Document& document, Threadabl |
| // return a opaque response which is from the other origin site and the |
| // script in the page can read the content. |
| // |
| - // We assume that ServiceWorker is skipped for sync requests and non-HTTP |
| - // familiy requests by content/ code. |
| - if (m_async && !request.skipServiceWorker() && request.url().protocolIsInHTTPFamily() && document.fetcher()->isControlledByServiceWorker()) { |
| + // We assume that ServiceWorker is skipped for sync requests by content/ |
|
lazyboy
2015/12/21 05:57:16
I've removed the http family protocol check and up
|
| + // code. |
| + if (m_async && !request.skipServiceWorker() && document.fetcher()->isControlledByServiceWorker()) { |
| ResourceRequest newRequest(request); |
| // FetchRequestMode should be set by the caller. But the expected value |
| // of FetchRequestMode is not speced yet except for XHR. So we set here. |