Bug 1839316: part 5) Guard the "fetchpriority" attribute behind a pref. r=kershaw...
[gecko.git] / docshell / test / navigation / file_same_url.html
blob72a1dd256419acf6bcf8ef03286325f809ef7a40
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 let bc = new BroadcastChannel("test_same_url");
6 let listener = e => {
7 switch (e.data) {
8 case "linkClick":
9 var link = document.getElementById("link1");
10 link.click();
11 break;
12 case "closeWin":
13 self.close();
14 break;
17 bc.addEventListener("message", listener);
18 </script>
19 </head>
20 <body onpageshow="bc.postMessage({bodyOnLoad: history.length})">
21 <a id="link1" href="file_same_url.html">Link 1</a>
22 <a name="1">link 1</a>
23 </body>
24 </html>