| <script src="../../../../resources/common.js"></script> |
| <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() |
| { |
| try { |
| p.log("document.URL: " + relativeTestPath(document.URL)); |
| p.log("window.document.URL: " + relativeTestPath(w.document.URL)); |
| p.log("name: " + name); |
| p.log("window.name: " + w.name); |
| } catch (e) { |
| p.log("An exception was thrown: " + e.message); |
| } |
| } |
| |
| window.location = "notify-parent-done.html"; |
| </script> |