From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../support/dedicated-worker-script.js | 1 + .../support/https-subframe-dedicated.html | 21 ++++++++++++++ .../support/https-subframe-shared.html | 32 ++++++++++++++++++++++ .../support/parent-dedicated-worker-script.js | 4 +++ .../support/parent-shared-worker-script.js | 8 ++++++ .../support/shared-worker-insecure-popup.html | 15 ++++++++++ .../support/shared-worker-script.js | 5 ++++ 7 files changed, 86 insertions(+) create mode 100644 testing/web-platform/tests/secure-contexts/support/dedicated-worker-script.js create mode 100644 testing/web-platform/tests/secure-contexts/support/https-subframe-dedicated.html create mode 100644 testing/web-platform/tests/secure-contexts/support/https-subframe-shared.html create mode 100644 testing/web-platform/tests/secure-contexts/support/parent-dedicated-worker-script.js create mode 100644 testing/web-platform/tests/secure-contexts/support/parent-shared-worker-script.js create mode 100644 testing/web-platform/tests/secure-contexts/support/shared-worker-insecure-popup.html create mode 100644 testing/web-platform/tests/secure-contexts/support/shared-worker-script.js (limited to 'testing/web-platform/tests/secure-contexts/support') diff --git a/testing/web-platform/tests/secure-contexts/support/dedicated-worker-script.js b/testing/web-platform/tests/secure-contexts/support/dedicated-worker-script.js new file mode 100644 index 000000000..69ffdf344 --- /dev/null +++ b/testing/web-platform/tests/secure-contexts/support/dedicated-worker-script.js @@ -0,0 +1 @@ +postMessage(isSecureContext); diff --git a/testing/web-platform/tests/secure-contexts/support/https-subframe-dedicated.html b/testing/web-platform/tests/secure-contexts/support/https-subframe-dedicated.html new file mode 100644 index 000000000..85005df29 --- /dev/null +++ b/testing/web-platform/tests/secure-contexts/support/https-subframe-dedicated.html @@ -0,0 +1,21 @@ + + + diff --git a/testing/web-platform/tests/secure-contexts/support/https-subframe-shared.html b/testing/web-platform/tests/secure-contexts/support/https-subframe-shared.html new file mode 100644 index 000000000..5ae7cde5b --- /dev/null +++ b/testing/web-platform/tests/secure-contexts/support/https-subframe-shared.html @@ -0,0 +1,32 @@ + + diff --git a/testing/web-platform/tests/secure-contexts/support/parent-dedicated-worker-script.js b/testing/web-platform/tests/secure-contexts/support/parent-dedicated-worker-script.js new file mode 100644 index 000000000..a8447552d --- /dev/null +++ b/testing/web-platform/tests/secure-contexts/support/parent-dedicated-worker-script.js @@ -0,0 +1,4 @@ +var w = new Worker("dedicated-worker-script.js"); +w.onmessage = function (e) { + postMessage(e.data); +} diff --git a/testing/web-platform/tests/secure-contexts/support/parent-shared-worker-script.js b/testing/web-platform/tests/secure-contexts/support/parent-shared-worker-script.js new file mode 100644 index 000000000..7f999f938 --- /dev/null +++ b/testing/web-platform/tests/secure-contexts/support/parent-shared-worker-script.js @@ -0,0 +1,8 @@ +addEventListener("connect", function (e) { + var port = e.ports[0]; + port.start(); + var w = new Worker("dedicated-worker-script.js"); + w.onmessage = function (e) { + port.postMessage(e.data); + } +}); diff --git a/testing/web-platform/tests/secure-contexts/support/shared-worker-insecure-popup.html b/testing/web-platform/tests/secure-contexts/support/shared-worker-insecure-popup.html new file mode 100644 index 000000000..740679dc4 --- /dev/null +++ b/testing/web-platform/tests/secure-contexts/support/shared-worker-insecure-popup.html @@ -0,0 +1,15 @@ + + + + + diff --git a/testing/web-platform/tests/secure-contexts/support/shared-worker-script.js b/testing/web-platform/tests/secure-contexts/support/shared-worker-script.js new file mode 100644 index 000000000..faed70a5c --- /dev/null +++ b/testing/web-platform/tests/secure-contexts/support/shared-worker-script.js @@ -0,0 +1,5 @@ +addEventListener("connect", function (e) { + var port = e.ports[0]; + port.start(); + port.postMessage(isSecureContext); +}); -- cgit v1.2.3