Skip to content

Commit

Permalink
Merge pull request #12 from tobie/fixpostmsg
Browse files Browse the repository at this point in the history
Avoid sending post messages to the current window as it interferes with ...
  • Loading branch information
jgraham committed Mar 13, 2013
2 parents 5c6b6b4 + 1a0dfc2 commit d7350e3
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 d7350e3

Please sign in to comment.