Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
"use strict";
add_task(async function test_pwmanager_blocked() {
await setupPolicyEngineWithJson({
policies: {
PasswordManagerEnabled: false,
},
});
await BrowserTestUtils.withNewTab(
"about:preferences#privacy",
async browser => {
is(
browser.contentDocument.getElementById("showPasswords").disabled,
true,
"showPasswords should be disabled."
);
}
);
await testPageBlockedByPolicy("about:logins");
});