Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Set URL to about:blank on WebPage initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoran committed Oct 26, 2012
1 parent 67b8a33 commit f20d32d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/WebPage.cpp
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion src/WebPageManager.cpp
Expand Up @@ -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() {
Expand Down

0 comments on commit f20d32d

Please sign in to comment.