Index: third_party/WebKit/Source/web/WebFrame.cpp |
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp |
index 59df86f0c71e8dce1b85eb387ee2e9d37f4e6b41..8b56364cd549f6fe134d0be8e19cb1059789eb4e 100644 |
--- a/third_party/WebKit/Source/web/WebFrame.cpp |
+++ b/third_party/WebKit/Source/web/WebFrame.cpp |
@@ -110,7 +110,7 @@ bool WebFrame::swap(WebFrame* frame) { |
uniqueName); |
} |
- if (oldFrame->hasReceivedUserGesture()) |
+ if (m_parent && oldFrame->hasReceivedUserGesture()) |
frame->toImplBase()->frame()->setDocumentHasReceivedUserGesture(); |
frame->toImplBase()->frame()->getWindowProxyManager()->setGlobals(globals); |