From 7b50c4a711ed217767af0956043b901fa89d4671 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Sun, 3 Feb 2013 17:58:07 -0500 Subject: [PATCH] Avoid potential for breakage if test suite is run in a frame Signed-off-by: Rick Waldron --- test/data/onbeforeunload.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/data/onbeforeunload.html b/test/data/onbeforeunload.html index 62c424e89..ad3a1caeb 100644 --- a/test/data/onbeforeunload.html +++ b/test/data/onbeforeunload.html @@ -6,7 +6,7 @@ var payload = { event: event.type }; - return top.postMessage( JSON.stringify(payload), "*" ); + return parent.postMessage( JSON.stringify(payload), "*" ); } jQuery( window ).on( "beforeunload", function( event ) { -- 2.39.5