Index: content/shell/renderer/test_runner/web_test_proxy.cc |
diff --git a/content/shell/renderer/test_runner/web_test_proxy.cc b/content/shell/renderer/test_runner/web_test_proxy.cc |
index 8b3cfdee2b344823b4a4049fb54e4a0d32678120..8c632e8f4e52ef12644f0f3ef81528986d83a87e 100644 |
--- a/content/shell/renderer/test_runner/web_test_proxy.cc |
+++ b/content/shell/renderer/test_runner/web_test_proxy.cc |
@@ -901,6 +901,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()) |