fune/browser/base/content/test/general/file_fullscreen-window-open.html
Norisz Fay bfa4dfd40b Backed out 2 changesets (bug 1795984) for causing bc failures on browser_fullscreen-window-open.js CLOSED TREE
Backed out changeset 4f1f5ebc134b (bug 1795984)
Backed out changeset f742568d925b (bug 1795984)
2022-10-19 23:46:02 +03:00

22 lines
634 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Test for window.open() when browser is in fullscreen</title>
</head>
<body>
<script>
window.addEventListener("load", function() {
document.getElementById("test").addEventListener("click", onClick, true);
}, {capture: true, once: true});
function onClick(aEvent) {
aEvent.preventDefault();
var dataStr = aEvent.target.getAttribute("data-test-param");
var data = JSON.parse(dataStr);
window.open(data.uri, data.title, data.option);
}
</script>
<a id="test" href="" data-test-param="">Test</a>
</body>
</html>