| Index: third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html b/third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html
|
| index 36910954824b76c7172bd33e4d6cc7fa077b7ede..4b2ea00d956d277c3e5dbeada3f5fbe90bcaa0b0 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html
|
| @@ -1,4 +1,8 @@
|
| <script>
|
| + // Capture window.window and window.opener: once this context is navigated, these properties
|
| + // always return null.
|
| + var w = window;
|
| + var o = opener;
|
| opener.accessFrame = function()
|
| {
|
| function normalizeURL(url)
|
| @@ -7,12 +11,12 @@
|
| }
|
|
|
| try {
|
| - opener.log("document.URL: " + normalizeURL(document.URL));
|
| - opener.log("window.document.URL: " + normalizeURL(window.document.URL));
|
| - opener.log("name: " + name);
|
| - opener.log("window.name: " + window.name);
|
| + o.log("document.URL: " + normalizeURL(document.URL));
|
| + o.log("window.document.URL: " + normalizeURL(w.document.URL));
|
| + o.log("name: " + name);
|
| + o.log("window.name: " + w.name);
|
| } catch (e) {
|
| - opener.log("An exception was thrown: " + e.message);
|
| + o.log("An exception was thrown: " + e.message);
|
| }
|
| }
|
|
|
|
|