diff options
Diffstat (limited to 'dom/base/test/file_bug503473-frame.sjs')
-rw-r--r-- | dom/base/test/file_bug503473-frame.sjs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dom/base/test/file_bug503473-frame.sjs b/dom/base/test/file_bug503473-frame.sjs new file mode 100644 index 0000000000..f642241091 --- /dev/null +++ b/dom/base/test/file_bug503473-frame.sjs @@ -0,0 +1,22 @@ +function handleRequest(request, response) { + response.processAsync(); + response.setStatusLine(request.httpVersion, 200, "OK"); + response.setHeader("Content-Type", "text/html; charset=utf-8", false); + response.setHeader("Cache-Control", "no-cache", false); + + response.write( + "<!DOCTYPE html>" + + "<div></div>" + + "<script>" + + "function doWrite() {" + + ' document.write("<p></p>");' + + " parent.done();" + + " document.close();" + + "}" + + "setTimeout(doWrite, 0);" + + "</script>" + ); + + response.bodyOutputStream.flush(); + // leave the stream open +} |