| Index: Source/core/loader/DocumentThreadableLoader.cpp
|
| diff --git a/Source/core/loader/DocumentThreadableLoader.cpp b/Source/core/loader/DocumentThreadableLoader.cpp
|
| index 0dd30deef595fc8f16cbc923729e2a4b22fdcae5..31ca937cb8f2aaa6ea673dc1b8a1ca514ab46e3c 100644
|
| --- a/Source/core/loader/DocumentThreadableLoader.cpp
|
| +++ b/Source/core/loader/DocumentThreadableLoader.cpp
|
| @@ -112,9 +112,8 @@ DocumentThreadableLoader::DocumentThreadableLoader(Document& document, Threadabl
|
| // script in the page can read the content.
|
| //
|
| // We assume that ServiceWorker is skipped for sync requests and non-HTTP
|
| - // familiy requests and OPTIONS request by content/ code.
|
| - // FIXME: Remove OPTIONS check when we implement "HTTP fetch" correctly.
|
| - if (m_async && !request.skipServiceWorker() && request.url().protocolIsInHTTPFamily() && request.httpMethod() != "OPTIONS" && m_document.fetcher()->isControlledByServiceWorker()) {
|
| + // familiy requests by content/ code.
|
| + if (m_async && !request.skipServiceWorker() && request.url().protocolIsInHTTPFamily() && m_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.
|
|
|