Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2228)

Unified Diff: content/shell/renderer/test_runner/web_test_proxy.cc

Issue 1129203005: Also report navigation policy for createView if requested (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698