Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp |
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
index 6b3b603d7c53018d4218d65de9207089a6ba5ad0..4afc8d8bf3140982b3bcac4e5c23fa721cb4eb86 100644 |
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp |
@@ -358,6 +358,9 @@ Page* ChromeClientImpl::createWindow(LocalFrame* frame, const FrameLoadRequest& |
if (!m_webView->client()) |
return nullptr; |
+ if (!frame->page() || frame->page()->defersLoading()) |
+ return nullptr; |
+ |
WebNavigationPolicy policy = effectiveNavigationPolicy(navigationPolicy, features); |
DCHECK(frame->document()); |
Fullscreen::fullyExitFullscreen(*frame->document()); |