Index: third_party/WebKit/LayoutTests/imported/wpt/workers/support/WorkerLocation.js |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/support/WorkerLocation.js b/third_party/WebKit/LayoutTests/imported/wpt/workers/support/WorkerLocation.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a57e2fc6609f71b9a367b2e2a4b1059fb0ca05dd |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/support/WorkerLocation.js |
@@ -0,0 +1,12 @@ |
+var obj = new Object(); |
+obj.location = location.toString(); |
+obj.href = location.href; |
+obj.protocol = location.protocol; |
+obj.host = location.host; |
+obj.hostname = location.hostname; |
+obj.port = location.port; |
+obj.pathname = location.pathname; |
+obj.search = location.search; |
+obj.hash = location.hash; |
+ |
+postMessage(obj); |