blob: 73409b5cda8ba88a21eddac9ad7e474ef88c3417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
<!DOCTYPE HTML>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id="content" style="display: none">
<img src="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=img-src">
<!--nsObjectLoadingContent::OpenChannel-->
<object data="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=object-data"></object>
<!--ScriptLoader::StartLoad-->
<script src="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=script-src"></script>
<!--nsDocShell::DoURILoad-->
<iframe src="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=iframe-src"></iframe>
<!--Loader::LoadSheet-->
<link rel="stylesheet" href="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=link-rel-stylesheet" />
<!--nsPrefetchNode::OpenChannel-->
<!-- Temporarily disable this because it doesn't work in fission when the scheme is https -->
<!--<link rel="prefetch" href="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=link-rel-prefetch" />-->
<!--HTMLMediaElement::ChannelLoader::LoadInternal-->
<video src="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=video-src">
</video>
<video src="https://mochi.test:8888/basic.vtt", crossorigin=use-credentials>
<track default src="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=track-src" ></track>
</video>
<!--SendPing-->
<a ping="https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=ping" id="a-ping" href="#"></a>
<script>
(function() {
document.getElementById("a-ping").click();
})();
</script>
<script>
// FetchDriver::HttpFetch
(function() {
try {
fetch(new Request("https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=fetch"), {
credentials: "include",
});
} catch (err) {
console.log(err);
}
})();
// XMLHttpRequestMainThread::CreateChannel
(function() {
var xhr = new XMLHttpRequest();
xhr.open("GET", "https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=xmlhttprequest");
xhr.withCredentials = true;
xhr.send();
})();
// Navigator::SendBeaconInternal
(function() {
navigator.sendBeacon("https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=send-beacon");
})();
</script>
// Fetch inside service worker's script
<iframe id="sw" src="https://example.com/tests/toolkit/components/url-classifier/tests/mochitest/sw_register.html"></iframe>
<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);
iframe.src = "https://example.com/tests/toolkit/components/url-classifier/tests/mochitest/synth.html?" +
"https://itisatracker.org/tests/toolkit/components/url-classifier/tests/mochitest/trackerFrame.sjs?id=fetch-in-sw";
}
};
</script>
</div>
</body>
</html>
|