Skip to content

Commit 86e493f

Browse files
committed
added support for blank web pages
1 parent b2527dc commit 86e493f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/webdriver/extension_qt/web_view_util.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ bool QWebViewUtil::isUrlSupported(QWebPage* pWebPage, const std::string& url, Er
3636
}
3737

3838
bool QWebViewUtil::isUrlSupported(const std::string& url, Error **error) {
39+
// support blank page
40+
const std::string BLANK = "about:blank";
41+
if (!url.compare(BLANK))
42+
return true;
43+
3944
scoped_ptr<QNetworkAccessManager> pmanager(new QNetworkAccessManager());
4045
scoped_ptr<QContentTypeResolver> presolver(new QContentTypeResolver(pmanager.get()));
4146

0 commit comments

Comments
 (0)