diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2013-02-03 17:58:07 -0500 |
---|---|---|
committer | Rick Waldron <waldron.rick@gmail.com> | 2013-02-03 17:58:07 -0500 |
commit | 7b50c4a711ed217767af0956043b901fa89d4671 (patch) | |
tree | 537cda450b4056be35fc8a77fb69f0b6203761d4 /test | |
parent | fd43865c6d11a8901b2780a57418f652143f250a (diff) | |
download | jquery-7b50c4a711ed217767af0956043b901fa89d4671.tar.gz jquery-7b50c4a711ed217767af0956043b901fa89d4671.zip |
Avoid potential for breakage if test suite is run in a frame
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/data/onbeforeunload.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) { |