mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +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
|
|
@ -13,6 +13,13 @@ function setup_redirect(aSettings) {
|
|||
}
|
||||
|
||||
function test() {
|
||||
waitForExplicitFinish();
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [["security.data_uri.block_toplevel_data_uri_navigations", false]]
|
||||
}, runTest);
|
||||
}
|
||||
|
||||
function runTest() {
|
||||
Harness.installOriginBlockedCallback = install_blocked;
|
||||
Harness.installsCompletedCallback = finish_test;
|
||||
Harness.setup();
|
||||
|
|
@ -33,4 +40,5 @@ function finish_test(count) {
|
|||
|
||||
gBrowser.removeCurrentTab();
|
||||
Harness.finish();
|
||||
finish();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue