From f20d32df103ce6bff4b3ee8691a5c263e5a63450 Mon Sep 17 00:00:00 2001 From: Matthew Horan Date: Thu, 25 Oct 2012 23:44:09 -0400 Subject: [PATCH] Set URL to about:blank on WebPage initialization --- src/WebPage.cpp | 1 + src/WebPageManager.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebPage.cpp b/src/WebPage.cpp index b26e495..de15ff2 100644 --- a/src/WebPage.cpp +++ b/src/WebPage.cpp @@ -33,6 +33,7 @@ WebPage::WebPage(WebPageManager *manager, QObject *parent) : QWebPage(parent) { resetWindowSize(); settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, true); + currentFrame()->setUrl(QUrl("about:blank")); } void WebPage::resetWindowSize() { diff --git a/src/WebPageManager.cpp b/src/WebPageManager.cpp index d2ed1fa..37b0204 100644 --- a/src/WebPageManager.cpp +++ b/src/WebPageManager.cpp @@ -100,7 +100,6 @@ void WebPageManager::reset() { m_pages.first()->deleteLater(); m_pages.clear(); createPage(this)->setFocus(); - currentPage()->currentFrame()->setUrl(QUrl("about:blank")); } NetworkCookieJar *WebPageManager::cookieJar() {