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

We don't need to clear the page if we're visiting about:blank

This commit is contained in:
Joe Ferris 2012-03-16 18:54:04 -04:00
parent 5b57eee8c5
commit b3b1adf63f

View file

@ -10,7 +10,6 @@ void Reset::start(QStringList &arguments) {
Q_UNUSED(arguments); Q_UNUSED(arguments);
page()->triggerAction(QWebPage::Stop); page()->triggerAction(QWebPage::Stop);
page()->currentFrame()->setHtml("<html><body></body></html>");
page()->networkAccessManager()->setCookieJar(new NetworkCookieJar()); page()->networkAccessManager()->setCookieJar(new NetworkCookieJar());
page()->setCustomNetworkAccessManager(); page()->setCustomNetworkAccessManager();
page()->setUserAgent(NULL); page()->setUserAgent(NULL);