Index: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-parent-navigation.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-parent-navigation.html b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-parent-navigation.html |
index aaff6f66f4509ef4e535fe1ad3c183dc848a14fc..641f3b8b3c9da3bf13ce717caf46e09df85ba73a 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-parent-navigation.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-parent-navigation.html |
@@ -19,7 +19,12 @@ |
function performTest() |
{ |
- parent.location = "http://localhost:8000/security/frameNavigation/resources/navigation-changed-iframe.html"; |
+ try { |
+ parent.location = "http://localhost:8000/security/frameNavigation/resources/navigation-changed-iframe.html"; |
+ parent.postMessage("PASS", "*"); |
+ } catch(e) { |
+ parent.postMessage("FAIL", "*"); |
+ } |
} |
window.addEventListener("message", startTest, false); |