Skip to content

Commit

Permalink
Avoid sending post messages to the current window as it interferes wi…
Browse files Browse the repository at this point in the history
…th testing post messages (duh).
  • Loading branch information
tobie committed Mar 13, 2013
1 parent 5c6b6b4 commit 1a0dfc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 1a0dfc2

Please sign in to comment.