mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
36
docshell/test/navigation/navigate.html
Normal file
36
docshell/test/navigation/navigate.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script src="NavigationUtils.js"></script>
|
||||
<script>
|
||||
function navigate() {
|
||||
var arguments = window.location.hash.substring(1).split(",");
|
||||
var target = arguments[0];
|
||||
var mechanism = arguments[1];
|
||||
|
||||
switch(mechanism) {
|
||||
case "location":
|
||||
navigateByLocation(eval(target));
|
||||
break;
|
||||
case "open":
|
||||
navigateByOpen(target);
|
||||
break;
|
||||
case "form":
|
||||
navigateByForm(target);
|
||||
break;
|
||||
case "hyperlink":
|
||||
navigateByHyperlink(target);
|
||||
break;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="navigate();">
|
||||
<script>
|
||||
var arguments = window.location.hash.substring(1).split(",");
|
||||
var target = arguments[0];
|
||||
var mechanism = arguments[1];
|
||||
document.write("target=" + target + " mechanism=" + mechanism);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue