mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-31 03:38:36 +09:00
24 lines
620 B
JavaScript
24 lines
620 B
JavaScript
/*
|
|
* Description of the test:
|
|
* Check that HSTS priming occurs correctly with mixed content when active
|
|
* content is blocked for css.
|
|
*/
|
|
'use strict';
|
|
|
|
//jscs:disable
|
|
add_task(function*() {
|
|
//jscs:enable
|
|
Services.obs.addObserver(Observer, "console-api-log-event", false);
|
|
Services.obs.addObserver(Observer, "http-on-examine-response", false);
|
|
registerCleanupFunction(do_cleanup);
|
|
|
|
let which = "block_active_css";
|
|
|
|
SetupPrefTestEnvironment(which);
|
|
|
|
for (let server of Object.keys(test_servers)) {
|
|
yield execute_test(server, test_settings[which].mimetype);
|
|
}
|
|
|
|
SpecialPowers.popPrefEnv();
|
|
});
|