diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-04-25 23:08:37 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-04-25 23:08:37 +0200 |
commit | 42f8488a5f66d7c1e5324bd1755d7f693b16ee97 (patch) | |
tree | 54c7d2a62c4ea34b1250b5362c8e6f89d03f1a02 /dom/security/test/general/file_toplevel_data_navigations.sjs | |
parent | 681c39a0ecc84fc918b2bec72cc69ad27d39903a (diff) | |
parent | 6c3f95480a191ce432ddfb2aa400a6d70c4884a8 (diff) | |
download | UXP-2a055cb9fb575eb2bee092041b5abcae96f1bf03.tar UXP-2a055cb9fb575eb2bee092041b5abcae96f1bf03.tar.gz UXP-2a055cb9fb575eb2bee092041b5abcae96f1bf03.tar.lz UXP-2a055cb9fb575eb2bee092041b5abcae96f1bf03.tar.xz UXP-2a055cb9fb575eb2bee092041b5abcae96f1bf03.zip |
Merge branch 'master' into Basilisk-releasev2018.04.26
Diffstat (limited to 'dom/security/test/general/file_toplevel_data_navigations.sjs')
-rw-r--r-- | dom/security/test/general/file_toplevel_data_navigations.sjs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dom/security/test/general/file_toplevel_data_navigations.sjs b/dom/security/test/general/file_toplevel_data_navigations.sjs new file mode 100644 index 000000000..501b833e5 --- /dev/null +++ b/dom/security/test/general/file_toplevel_data_navigations.sjs @@ -0,0 +1,14 @@ +// Custom *.sjs file specifically for the needs of Bug: +// Bug 1394554 - Block toplevel data: URI navigations after redirect + +var DATA_URI = + "data:text/html,<body>toplevel data: URI navigations after redirect should be blocked</body>"; + +function handleRequest(request, response) +{ + // avoid confusing cache behaviors + response.setHeader("Cache-Control", "no-cache", false); + + response.setStatusLine("1.1", 302, "Found"); + response.setHeader("Location", DATA_URI, false); +} |