Chromium Code Reviews| Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
| diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
| index 30d22655ac34043a79a7b0e020b46aef1e801c76..dd64c4b7368ff65c871f23b596fbf76a0a0b5889 100644 |
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp |
| @@ -594,6 +594,10 @@ ResourceRequestBlockedReason FrameFetchContext::canRequestInternal(Resource::Typ |
| bool FrameFetchContext::isControlledByServiceWorker() const |
| { |
| ASSERT(m_documentLoader || frame()->loader().documentLoader()); |
| + |
| + if (getSecurityOrigin() && getSecurityOrigin()->hasSuborigin()) |
| + return false; |
|
falken
2016/09/20 04:52:52
OK the rationale for allowing .controller makes se
jww
2016/09/20 17:52:26
Yes, it was needed for the mem cache bit. Otherwis
|
| + |
| if (m_documentLoader) |
| return frame()->loader().client()->isControlledByServiceWorker(*m_documentLoader); |
| // m_documentLoader is null while loading resources from an HTML import. |