gecko-dev/dom/browser-element/mochitest/file_browserElement_XFrameOptions.sjs
Justin Lebar 3cfaf4ea04 Bug 770239 - Tests for X-Frame-Options behavior inside <iframe mozbrowser>. r=bz
--HG--
extra : rebase_source : 100a084ba36f396f9f5a9d7c0695724da39592d1
2012-07-09 16:42:18 -04: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>");
}