1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

Set URL to about:blank on WebPage initialization

This commit is contained in:
Matthew Horan 2012-10-25 23:44:09 -04:00
parent 67b8a3391a
commit f20d32df10
2 changed files with 1 additions and 1 deletions

View file

@ -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() {

View file

@ -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() {