1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/base/content/test/general/file_fullscreen-window-open.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <title>Test for window.open() when browser is in fullscreen</title> 1.8 + </head> 1.9 + <body> 1.10 + <script> 1.11 + window.addEventListener("load", function onLoad() { 1.12 + window.removeEventListener("load", onLoad, true); 1.13 + 1.14 + document.getElementById("test").addEventListener("click", onClick, true); 1.15 + }, true); 1.16 + 1.17 + function onClick(aEvent) { 1.18 + aEvent.preventDefault(); 1.19 + 1.20 + var dataStr = aEvent.target.getAttribute("data-test-param"); 1.21 + var data = JSON.parse(dataStr); 1.22 + window.open(data.uri, data.title, data.option); 1.23 + } 1.24 + </script> 1.25 + <a id="test" href="" data-test-param="">Test</a> 1.26 + </body> 1.27 +</html>