diff --git a/html/partitioning/ancestor-chain-partitioning.sub.https.html b/html/partitioning/ancestor-chain-partitioning.sub.https.html new file mode 100644 index 00000000000000..aee05dcddd1511 --- /dev/null +++ b/html/partitioning/ancestor-chain-partitioning.sub.https.html @@ -0,0 +1,66 @@ + + + + + + + + + + + + diff --git a/html/partitioning/resources/intercepting-worker.sub.js b/html/partitioning/resources/intercepting-worker.sub.js new file mode 100644 index 00000000000000..65c096da78ff62 --- /dev/null +++ b/html/partitioning/resources/intercepting-worker.sub.js @@ -0,0 +1,11 @@ +self.addEventListener("fetch", (event) => { + let url = new URL(event.request.url); + if (url.searchParams.has("intercept")) { + if (url.hostname == "{{hosts[][]}}") { + url.hostname = "{{hosts[alt][www]}}" + } else { + url.hostname = "{{hosts[][]}}"; + } + return event.respondWith(fetch(url)); + } +}); diff --git a/html/partitioning/resources/middle-frame.sub.html b/html/partitioning/resources/middle-frame.sub.html new file mode 100644 index 00000000000000..811271b3b86a1c --- /dev/null +++ b/html/partitioning/resources/middle-frame.sub.html @@ -0,0 +1,14 @@ + + + + + diff --git a/html/partitioning/resources/popup.sub.html b/html/partitioning/resources/popup.sub.html new file mode 100644 index 00000000000000..b6ae4359a210b0 --- /dev/null +++ b/html/partitioning/resources/popup.sub.html @@ -0,0 +1,15 @@ + + + + + diff --git a/html/partitioning/resources/popup.sub.html.headers b/html/partitioning/resources/popup.sub.html.headers new file mode 100644 index 00000000000000..e2d945d55669ec --- /dev/null +++ b/html/partitioning/resources/popup.sub.html.headers @@ -0,0 +1 @@ +Content-Security-Policy: sandbox allow-scripts; \ No newline at end of file diff --git a/html/partitioning/resources/post-storage.html b/html/partitioning/resources/post-storage.html new file mode 100644 index 00000000000000..3ca1926eaa80c4 --- /dev/null +++ b/html/partitioning/resources/post-storage.html @@ -0,0 +1,16 @@ + + + + diff --git a/html/partitioning/resources/post-storage.html.sub.headers b/html/partitioning/resources/post-storage.html.sub.headers new file mode 100644 index 00000000000000..1f73a789e4e2a5 --- /dev/null +++ b/html/partitioning/resources/post-storage.html.sub.headers @@ -0,0 +1 @@ +Access-Control-Allow-Origin: {{header_or_default(Origin, *)}} \ No newline at end of file diff --git a/html/partitioning/resources/post-storage.sub.html b/html/partitioning/resources/post-storage.sub.html new file mode 100644 index 00000000000000..6e96d21c241c80 --- /dev/null +++ b/html/partitioning/resources/post-storage.sub.html @@ -0,0 +1,21 @@ + + + + diff --git a/html/partitioning/resources/post-storage.sub.html.headers b/html/partitioning/resources/post-storage.sub.html.headers new file mode 100644 index 00000000000000..1f73a789e4e2a5 --- /dev/null +++ b/html/partitioning/resources/post-storage.sub.html.headers @@ -0,0 +1 @@ +Access-Control-Allow-Origin: {{header_or_default(Origin, *)}} \ No newline at end of file