mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-07 15:57:31 +09:00
moebius#231: Consider blocking top level window data: URIs (tests)
https://github.com/MoonchildProductions/moebius/pull/231
This commit is contained in:
parent
b6f0383b26
commit
745e1809b0
63 changed files with 157 additions and 83 deletions
1
dom/base/test/file_ipc_messagemanager_blob.html
Normal file
1
dom/base/test/file_ipc_messagemanager_blob.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!DOCTYPE HTML><html><body></body></html>
|
||||
|
|
@ -676,6 +676,7 @@ skip-if = (toolkit == 'android') # Android: Bug 775227
|
|||
[test_intersectionobservers.html]
|
||||
skip-if = true # Track Bug 1320704
|
||||
[test_ipc_messagemanager_blob.html]
|
||||
support-files = file_ipc_messagemanager_blob.html
|
||||
[test_link_prefetch.html]
|
||||
skip-if = !e10s # Track Bug 1281415
|
||||
[test_link_stylesheet.html]
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
const childFrameURL =
|
||||
"data:text/html,<!DOCTYPE HTML><html><body></body></html>";
|
||||
const childFrameURL = "file_ipc_messagemanager_blob.html";
|
||||
|
||||
function childFrameScript() {
|
||||
"use strict";
|
||||
|
|
|
|||
|
|
@ -147,7 +147,11 @@ var testFrameInDataURI = function() {
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
// load the test harness
|
||||
document.getElementById("harness").src = "file_x-frame-options_main.html";
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [["security.data_uri.block_toplevel_data_uri_navigations", false],]
|
||||
}, function() {
|
||||
document.getElementById("harness").src = "file_x-frame-options_main.html";
|
||||
});
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue