mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
moebius#223: Consider blocking top level window data: URIs (part 1/3 without tests)
https://github.com/MoonchildProductions/moebius/pull/223
This commit is contained in:
parent
08e2f9aaea
commit
712d19e1b7
22 changed files with 515 additions and 1 deletions
14
dom/security/test/general/file_toplevel_data_navigations.sjs
Normal file
14
dom/security/test/general/file_toplevel_data_navigations.sjs
Normal file
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue