1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/browser-element/mochitest/file_browserElement_XFrameOptions.sjs Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,9 @@ 1.4 +function handleRequest(request, response) 1.5 +{ 1.6 + response.setHeader("X-Frame-Options", request.queryString, false); 1.7 + response.setHeader("Content-Type", "text/html", false); 1.8 + 1.9 + // Tests rely on this page not being entirely blank, because they take 1.10 + // screenshots to determine whether this page was loaded. 1.11 + response.write("<html><body>XFrameOptions test<script>alert('finish')</script></body></html>"); 1.12 +}