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:
parent
67b8a3391a
commit
f20d32df10
2 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue