From 1a0dfc26cc07faff88cc9f2918f5a42d41432b71 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Wed, 13 Mar 2013 10:27:09 +0100 Subject: [PATCH] Avoid sending post messages to the current window as it interferes with testing post messages (duh). --- testharness.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testharness.js b/testharness.js index 68df8c6231359d..cb6145a4defef7 100644 --- a/testharness.js +++ b/testharness.js @@ -1399,7 +1399,7 @@ policies and contribution forms [3]. } } } - if (supports_post_message(w)) + if (supports_post_message(w) && w !== self) { w.postMessage({ type: "start", @@ -1445,7 +1445,7 @@ policies and contribution forms [3]. } } } - if (supports_post_message(w)) + if (supports_post_message(w) && w !== self) { w.postMessage({ type: "result", @@ -1515,7 +1515,7 @@ policies and contribution forms [3]. } } } - if (supports_post_message(w)) + if (supports_post_message(w) && w !== self) { w.postMessage({ type: "complete",