Commit cfb07325 authored by jochen's avatar jochen Committed by Commit bot

Also report navigation policy for createView if requested

If a link has target=_blank we don't navigate to it, but create a new tab,
and then navigate to it. To be able to write a layout test for the policy used to create the new tab, I need to dump it here too

BUG=454222
R=mkwst@chromium.org

Review URL: https://codereview.chromium.org/1129203005

Cr-Commit-Position: refs/heads/master@{#330307}
parent fd17d0e9
......@@ -896,6 +896,12 @@ bool WebTestProxyBase::CreateView(blink::WebLocalFrame* frame,
const blink::WebString& frame_name,
blink::WebNavigationPolicy policy,
bool suppress_opener) {
if (test_interfaces_->GetTestRunner()->shouldDumpNavigationPolicy()) {
delegate_->PrintMessage("Default policy for createView for '" +
URLDescription(request.url()) + "' is '" +
WebNavigationPolicyToString(policy) + "'\n");
}
if (!test_interfaces_->GetTestRunner()->canOpenWindows())
return false;
if (test_interfaces_->GetTestRunner()->shouldDumpCreateView())
......
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