Commit 39a10dcb authored by Lukasz Anforowicz's avatar Lukasz Anforowicz Committed by Commit Bot

Skip parts of WebFrameTestClient::DidReceiveTitle if called too early.

Bug: 786692
Change-Id: I5e5d2aaef1b6e9abfc20a752df67a8eedb8a5c07
Reviewed-on: https://chromium-review.googlesource.com/791535Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519923}
parent 30110308
...@@ -452,7 +452,8 @@ void WebFrameTestClient::DidCommitProvisionalLoad( ...@@ -452,7 +452,8 @@ void WebFrameTestClient::DidCommitProvisionalLoad(
void WebFrameTestClient::DidReceiveTitle(const blink::WebString& title, void WebFrameTestClient::DidReceiveTitle(const blink::WebString& title,
blink::WebTextDirection direction) { blink::WebTextDirection direction) {
if (test_runner()->shouldDumpFrameLoadCallbacks()) { if (test_runner()->shouldDumpFrameLoadCallbacks() &&
web_frame_test_proxy_base_->web_frame()) {
PrintFrameDescription(delegate_, web_frame_test_proxy_base_->web_frame()); PrintFrameDescription(delegate_, web_frame_test_proxy_base_->web_frame());
delegate_->PrintMessage(std::string(" - didReceiveTitle: ") + title.Utf8() + delegate_->PrintMessage(std::string(" - didReceiveTitle: ") + title.Utf8() +
"\n"); "\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment