summaryrefslogtreecommitdiffstats
path: root/dom/browser-element/mochitest/file_browserElement_XFrameOptions.sjs
blob: 7e23756802ab72da78dfde8158f9c87657cf4e30 (plain)
1
2
3
4
5
6
7
8
9
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>");
}