Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE HTML>
<!-- Any copyright is dedicated to the Public Domain.
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id="content" style="display: none">
<!--nsObjectLoadingContent::OpenChannel-->
<!--ScriptLoader::StartLoad-->
<!--nsDocShell::DoURILoad-->
<!--Loader::LoadSheet-->
<!--nsPrefetchNode::OpenChannel-->
<!-- Temporarily disable this because it doesn't work in fission when the scheme is https -->
<!--HTMLMediaElement::ChannelLoader::LoadInternal-->
</video>
<video src="https://mochi.test:8888/basic.vtt", crossorigin=use-credentials>
</video>
<!--SendPing-->
<script>
(function() {
document.getElementById("a-ping").click();
})();
</script>
<script>
// FetchDriver::HttpFetch
(function() {
try {
credentials: "include",
});
} catch (err) {
console.log(err);
}
})();
// XMLHttpRequestMainThread::CreateChannel
(function() {
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.send();
})();
// Navigator::SendBeaconInternal
(function() {
})();
</script>
// Fetch inside service worker's script
<script>
let iframe = document.getElementById("sw");
window.onmessage = function(e) {
if (e.data.status == "registrationdone") {
iframe.remove();
iframe = document.createElement("iframe");
document.getElementById("content").appendChild(iframe);
}
};
</script>
</div>
</body>
</html>