Index: Source/web/ChromeClientImpl.cpp |
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp |
index 02981d26942d9e9f0e867f561dee83b2f6a51b3c..54af0ae072068f2a5d8708441fefc7dc68511066 100644 |
--- a/Source/web/ChromeClientImpl.cpp |
+++ b/Source/web/ChromeClientImpl.cpp |
@@ -223,7 +223,8 @@ Page* ChromeClientImpl::createWindow(Frame* frame, const FrameLoadRequest& r, co |
if (policy == WebNavigationPolicyIgnore) |
policy = getNavigationPolicy(); |
- DocumentFullscreen::webkitCancelFullScreen(frame->document()); |
+ ASSERT(frame->document()); |
+ DocumentFullscreen::webkitCancelFullScreen(*frame->document()); |
WebViewImpl* newView = toWebViewImpl( |
m_webView->client()->createView(WebFrameImpl::fromFrame(frame), WrappedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shouldSendReferrer == NeverSendReferrer)); |