Skip to content
This repository
Browse code

Set URL to about:blank on WebPage initialization

  • Loading branch information...
commit f20d32df103ce6bff4b3ee8691a5c263e5a63450 1 parent 67b8a33
Matthew Horan authored October 25, 2012
1  src/WebPage.cpp
@@ -33,6 +33,7 @@ WebPage::WebPage(WebPageManager *manager, QObject *parent) : QWebPage(parent) {
33 33
   resetWindowSize();
34 34
 
35 35
   settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, true);
  36
+  currentFrame()->setUrl(QUrl("about:blank"));
36 37
 }
37 38
 
38 39
 void WebPage::resetWindowSize() {
1  src/WebPageManager.cpp
@@ -100,7 +100,6 @@ void WebPageManager::reset() {
100 100
   m_pages.first()->deleteLater();
101 101
   m_pages.clear();
102 102
   createPage(this)->setFocus();
103  
-  currentPage()->currentFrame()->setUrl(QUrl("about:blank"));
104 103
 }
105 104
 
106 105
 NetworkCookieJar *WebPageManager::cookieJar() {

0 notes on commit f20d32d

Please sign in to comment.
Something went wrong with that request. Please try again.