[BlackBerry] WebPagePrivate::load should not check new window policy
[WebKit-https.git] / Source / WebKit / blackberry / Api / WebPage.cpp
index 36ba6e5d2a3b80294b951fcd8cfe2cf9ba9bdbd4..bf29c6a8bf9419a241ed2e3ad954be1bd5623a56 100644 (file)
@@ -705,10 +705,7 @@ void WebPagePrivate::load(const BlackBerry::Platform::String& url, const BlackBe
 
     request.setSuggestedSaveName(suggestedSaveName);
 
-    FrameLoadRequest frameRequest(m_mainFrame, request);
-    frameRequest.setFrameName("");
-    frameRequest.setShouldCheckNewWindowPolicy(true);
-    m_mainFrame->loader()->load(frameRequest);
+    m_mainFrame->loader()->load(FrameLoadRequest(m_mainFrame, request));
 }
 
 void WebPage::load(const BlackBerry::Platform::String& url, const BlackBerry::Platform::String& networkToken, bool isInitial)