Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
revert window.self, hadn't thought of the worker case - annoying though
Browse files Browse the repository at this point in the history
  • Loading branch information
darobin committed Apr 1, 2014
1 parent dcd6cde commit f1f9f91
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions testharness.js
@@ -1,3 +1,4 @@
/*global self*/
/*jshint latedef: nofunc*/
/*
Distributed under both the W3C Test Suite License [1] and the W3C
Expand Down Expand Up @@ -1465,7 +1466,7 @@ policies and contribution forms [3].
}
}
}
if (supports_post_message(w) && w !== window.self) {
if (supports_post_message(w) && w !== self) {
w.postMessage({
type: "start",
properties: this_obj.properties
Expand Down Expand Up @@ -1505,7 +1506,7 @@ policies and contribution forms [3].
}
}
}
if (supports_post_message(w) && w !== window.self) {
if (supports_post_message(w) && w !== self) {
w.postMessage({
type: "result",
test: test.structured_clone()
Expand Down Expand Up @@ -1567,7 +1568,7 @@ policies and contribution forms [3].
}
}
}
if (supports_post_message(w) && w !== window.self) {
if (supports_post_message(w) && w !== self) {
w.postMessage({
type: "complete",
tests: tests,
Expand Down Expand Up @@ -2155,8 +2156,8 @@ policies and contribution forms [3].
// current window.
var cache = forEach_windows.result_cache;
if (!cache) {
cache = [[window.self, true]];
var w = window.self;
cache = [[self, true]];
var w = self;
var i = 0;
var so;
var origins = location.ancestorOrigins;
Expand Down

0 comments on commit f1f9f91

Please sign in to comment.