Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# https://sebsg.github.io/
# https://nicolas-macbeth.github.io/
14 changes: 14 additions & 0 deletions deeplink.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,19 @@
<li><a href="googlechromes://www.google.com/search?q=why+is+the+sky+blue&oq=why+is+the+sky+bl&gs_lcrp=EgZjaHJvbWUqBwgAEAAYgAQyBwgAEAAYgAQyBggBEEUYOTIHCAIQABiABDIHCAMQABiABDIHCAQQABiABDIHCAUQABiABDIHCAYQLhiABDIHCAcQABiABDIHCAgQABiABDIHCAkQABiABNIBCDI3NDNqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8">Chrome Scheme Search Results</a></li>
<li><a href="googlechromes://ChromeExternalAction/OpenNTP?darkModeFromOriginApp=true">Chrome NewTab Scheme</a></li>
<li><a href="googlechromes://ChromeExternalAction/DefaultBrowserSettings">Chrome DBSetting Scheme</a></li>

<div>Canary Versions</div>
<li><a href="googlechromes-canary://www.lapresse.ca">Chrome Scheme Lapresse URL</a></li>
<li><a href="googlechromes-canary:">Chrome Scheme No URL Page</a></li>
<li><a href="googlechromes-canary://www.google.com/search?q=why+is+the+sky+blue&oq=why+is+the+sky+bl&gs_lcrp=EgZjaHJvbWUqBwgAEAAYgAQyBwgAEAAYgAQyBggBEEUYOTIHCAIQABiABDIHCAMQABiABDIHCAQQABiABDIHCAUQABiABDIHCAYQLhiABDIHCAcQABiABDIHCAgQABiABDIHCAkQABiABNIBCDI3NDNqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8">Chrome Scheme Search Results</a></li>
<li><a href="googlechromes-canary://ChromeExternalAction/OpenNTP?darkModeFromOriginApp=true">Chrome NewTab Scheme</a></li>
<li><a href="googlechromes-canary://ChromeExternalAction/DefaultBrowserSettings">Chrome DBSetting Scheme</a></li>

<div>Auto-redirect deeplink tests</div>
<li><a href="redirect0.html">Deeplink 0ms Test</a></li>
<li><a href="redirect50.html">Deeplink 50ms Test</a></li>
<li><a href="redirect200.html">Deeplink 200ms Test</a></li>
<li><a href="redirect500.html">Deeplink 500ms Test</a></li>
<li><a href="redirect1000.html">Deeplink 1000ms Test</a></li>
</body>
</html>
21 changes: 21 additions & 0 deletions iframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>

<head>
<title>iframe</title>
</head>

<body>

<h1>Same-origin iframe</h1>
<iframe src="two_sentences.html" title="iframe" height="50px" width="99%"></iframe>

<h1>YouTube-hosted (x-origin) iframe</h1>
<iframe width="560" height="315" src="https://www.youtube.com/embed/Vhh_GeBPOhs?si=gxA_VtRJqrzyQa09"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>

</body>

</html>
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ <h1>Table of contents:</h1>
<li><a href="two_sentences.html">A page with two sentences to test boundaries</a></li>
<li><a href="annotation_proxy.html">An annotation proxy</a></li>
<li><a href="deeplink.html">Deeplink Test</a></li>
<li><a href="redirect.html">Redirect Test</a></li>
<li><a href="nested_iframes.html">Shadow DOM and nested iframes</a></li>
</ul>

<script src="/redirect.js"></script>
</body>

</html>
65 changes: 65 additions & 0 deletions nested_iframes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html>

<head>
<title>Shadow DOMs and nested iframes</title>
</head>

<body onload="execJS()">

<h1>Shadow DOMs</h1>
<div>
<template shadowrootmode="open">
<span>
<p>I'm in an OPEN shadow DOM, I should be VISIBLE to external JS</p>
</span>
</template>
</div>

<div>
<template shadowrootmode="closed">
<span>
<p>I'm in a CLOSED shadow DOM, I should be HIDDEN from external JS, but innerText may see me</p>
</span>
</template>
</div>

<div>
<div id="shadowHostOne"></div>
</div>

<div>
<div id="shadowHostTwo"></div>
</div>

<h1>iframe</h1>
<iframe src="two_sentences.html" title="iframe" height="50px" width="99%"></iframe>

<h1>Nested iframes</h1>
<iframe src="iframe.html" title="Nested iframes" height="700px" width="99%"></iframe>

</body>

<script>
function execJS() {
// First, open, shadow DOM
const host = document.querySelector("#shadowHostOne");
const shadow = host.attachShadow({ mode: "open" });
const span = document.createElement("span");
const p = document.createElement("p");
p.textContent = "I'm in an OPEN shadow DOM, I should be VISIBLE to external JS";
span.appendChild(p);
shadow.appendChild(span);

// Second, closed, shadow DOM
const host2 = document.querySelector("#shadowHostTwo");
const shadow2 = host2.attachShadow({ mode: "closed" });
const span2 = document.createElement("span");
const p2 = document.createElement("p");
p2.textContent = "I'm in a CLOSED shadow DOM, I should be HIDDEN from external JS";
span2.appendChild(p2);
shadow2.appendChild(span2);
}
</script>

</html>
19 changes: 19 additions & 0 deletions redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iOS Chrome App Deeplink Redirect Test</title>
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.json">
</head>

<body>
<p>If your device can handle the <em>chromium-external-actions://</em> scheme, you should have been redirected.</p>
</body>
<script>
window.location = 'chromium-external-actions://OpenNTP';
</script>

</html>
4 changes: 0 additions & 4 deletions redirect.js

This file was deleted.

23 changes: 23 additions & 0 deletions redirect0.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iOS Chrome App Deeplink Redirect Test</title>
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.json">
</head>

<body>
<p>If your device can handle the <em>googlechromes://ChromeExternalAction/OpenNTP</em> "scheme", you should have been
redirected to the app, otherwise, you're going to the app store in 0ms.</p>
</body>
<script>
window.location = 'googlechromes://ChromeExternalAction/OpenNTP';
setTimeout(function () {
window.location = "https://itunes.apple.com/app/apple-store/id535886823?pt=9008&ct=saved-passwords-ios-promo-direct-qr&mt=8";
}, 0);
</script>

</html>
23 changes: 23 additions & 0 deletions redirect1000.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iOS Chrome App Deeplink Redirect Test</title>
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.json">
</head>

<body>
<p>If your device can handle the <em>googlechromes://ChromeExternalAction/OpenNTP</em> "scheme", you should have been
redirected to the app, otherwise, you're going to the app store in 1000ms.</p>
</body>
<script>
window.location = 'googlechromes://ChromeExternalAction/OpenNTP';
setTimeout(function () {
window.location = "https://itunes.apple.com/app/apple-store/id535886823?pt=9008&ct=saved-passwords-ios-promo-direct-qr&mt=8";
}, 1000);
</script>

</html>
23 changes: 23 additions & 0 deletions redirect200.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iOS Chrome App Deeplink Redirect Test</title>
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.json">
</head>

<body>
<p>If your device can handle the <em>googlechromes://ChromeExternalAction/OpenNTP</em> "scheme", you should have been
redirected to the app, otherwise, you're going to the app store in 200ms.</p>
</body>
<script>
window.location = 'googlechromes://ChromeExternalAction/OpenNTP';
setTimeout(function () {
window.location = "https://itunes.apple.com/app/apple-store/id535886823?pt=9008&ct=saved-passwords-ios-promo-direct-qr&mt=8";
}, 200);
</script>

</html>
23 changes: 23 additions & 0 deletions redirect50.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iOS Chrome App Deeplink Redirect Test</title>
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.json">
</head>

<body>
<p>If your device can handle the <em>googlechromes://ChromeExternalAction/OpenNTP</em> "scheme", you should have been
redirected to the app, otherwise, you're going to the app store in 50ms.</p>
</body>
<script>
window.location = 'googlechromes://ChromeExternalAction/OpenNTP';
setTimeout(function () {
window.location = "https://itunes.apple.com/app/apple-store/id535886823?pt=9008&ct=saved-passwords-ios-promo-direct-qr&mt=8";
}, 50);
</script>

</html>
23 changes: 23 additions & 0 deletions redirect500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iOS Chrome App Deeplink Redirect Test</title>
<link rel="icon" href="/favicon.ico">
<link rel="manifest" href="/manifest.json">
</head>

<body>
<p>If your device can handle the <em>googlechromes://ChromeExternalAction/OpenNTP</em> "scheme", you should have been
redirected to the app, otherwise, you're going to the app store in 500ms.</p>
</body>
<script>
window.location = 'googlechromes://ChromeExternalAction/OpenNTP';
setTimeout(function () {
window.location = "https://itunes.apple.com/app/apple-store/id535886823?pt=9008&ct=saved-passwords-ios-promo-direct-qr&mt=8";
}, 500);
</script>

</html>