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