Use the browser.privacy API to control usage of the features in the browser that can affect a user's privacy.

Permissions: privacy

Not allowed in: Content scripts, Devtools pages

passwordSavingEnabled
passwordSavingEnabled: Setting

If enabled, the password manager will ask if you want to save passwords. This preference's value is a boolean, defaulting to true.