diff options
-rw-r--r-- | webkit/tools/test_shell/test_webview_delegate.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc index 0ed4780..43922d6 100644 --- a/webkit/tools/test_shell/test_webview_delegate.cc +++ b/webkit/tools/test_shell/test_webview_delegate.cc @@ -636,12 +636,9 @@ WebNavigationPolicy TestWebViewDelegate::decidePolicyForNavigation( printf("Policy delegate: attempt to load %s with navigation type '%s'", GetURLDescription(request.url()).c_str(), WebNavigationTypeToString(type)); - WebNode node = originating_node; - if (!node.isNull()) { - printf(" originating from %s", node.nodeName().utf8().data()); - for (node = node.parentNode(); !node.isNull(); node = node.parentNode()) { - printf(" > %s", node.nodeName().utf8().data()); - } + if (!originating_node.isNull()) { + printf(" originating from %s", + GetNodeDescription(originating_node, 0).c_str()); } printf("\n"); if (policy_delegate_is_permissive_) { |