Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index 714faf234c8f7edd64389a32e0fee3d35e547965..132049010ae4a70ccdff304ec3cb43f1995647fa 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -423,7 +423,7 @@ void HTMLFormElement::scheduleFormSubmission(PassRefPtr<FormSubmission> submissi |
LocalFrame* targetFrame = document().frame()->loader().findFrameForNavigation(submission->target(), submission->state()->sourceDocument()); |
if (!targetFrame) { |
- if (!DOMWindow::allowPopUp(document().frame()) && !UserGestureIndicator::processingUserGesture()) |
+ if (!DOMWindow::allowPopUp(*document().frame()) && !UserGestureIndicator::processingUserGesture()) |
return; |
targetFrame = document().frame(); |
} else { |