tenfourfox/dom/browser-element/mochitest/file_browserElement_XFrameOptions.sjs
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

10 lines
405 B
JavaScript

function handleRequest(request, response)
{
response.setHeader("X-Frame-Options", request.queryString, false);
response.setHeader("Content-Type", "text/html", false);
// Tests rely on this page not being entirely blank, because they take
// screenshots to determine whether this page was loaded.
response.write("<html><body>XFrameOptions test<script>alert('finish')</script></body></html>");
}