Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/navigation/resources/no-referrer-helper.php |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/no-referrer-helper.php b/third_party/WebKit/LayoutTests/http/tests/navigation/resources/no-referrer-helper.php |
| index fea93dc809073b327fec6e82150e295cf2e43330..001322d394d583e6d3ff0e7d3b7b1688a41eaf80 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/navigation/resources/no-referrer-helper.php |
| +++ b/third_party/WebKit/LayoutTests/http/tests/navigation/resources/no-referrer-helper.php |
| @@ -19,7 +19,7 @@ function log(msg) |
| } |
| var consoleWindow = window.open("", "consoleWindow"); |
| - if (consoleWindow) { |
| + if (consoleWindow && consoleWindow.log) { |
|
Łukasz Anforowicz
2016/06/06 21:17:14
The new condition is necessary to check if console
|
| consoleWindow.log(document.getElementById("referrer").innerText); |
| consoleWindow.log("window.opener: " + (window.opener ? window.opener.location : "")); |
| } |