privacy.services
The privacy.services
property contains privacy-related settings controlling services offered by the browser or by third parties. Each property is a types.BrowserSetting
object.
Properties
passwordSavingEnabled
-
A
types.BrowserSetting
object whose underlying value is a boolean. Iftrue
, the browser's password manager will offer to store passwords when the user enters them. Defaults totrue
.
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
services | |||||||
alternateErrorPagesEnabled | |||||||
autofillAddressEnabled | |||||||
autofillCreditCardEnabled | |||||||
autofillEnabled | |||||||
passwordSavingEnabled | |||||||
safeBrowsingEnabled | |||||||
safeBrowsingExtendedReportingEnabled | |||||||
searchSuggestEnabled | |||||||
spellingServiceEnabled | |||||||
translationServiceEnabled |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Examples
Disable the password manager if possible.
js
function onSet(result) {
if (result) {
console.log("success");
} else {
console.log("failure");
}
}
let getting = browser.privacy.services.passwordSavingEnabled.get({});
getting.then((got) => {
console.log(got.value);
if (
got.levelOfControl === "controlled_by_this_extension" ||
got.levelOfControl === "controllable_by_this_extension"
) {
let setting = browser.privacy.services.passwordSavingEnabled.set({
value: false,
});
setting.then(onSet);
} else {
console.log("Not able to set passwordSavingEnabled");
}
});
Note:
This API is based on Chromium's chrome.privacy
API.