Interface SavePasswordCallback

All Superinterfaces:
AsyncCallback<SavePasswordCallback.Params,SavePasswordCallback.Action>, BrowserAsyncCallback<SavePasswordCallback.Params,SavePasswordCallback.Action>, BrowserCallback, Callback
All Known Implementing Classes:
DefaultSavePasswordCallback, DefaultSavePasswordCallback, DefaultSavePasswordCallback

A callback that is invoked when the user is prompted to save the credentials in the password store.

This callback is equivalent to the "Save Password?" bubble in Chromium.

The callback is invoked when the user submits a new web form (a form that has never been submitted before) or submits the web from with a new login value.

Use the SavePasswordCallback.Action.save() method to save these login and password in the password store. Stored credentials will be shown next time in the suggestions pop-up when focusing the input associated with login or password.

Use the SavePasswordCallback.Action.neverSave() method to blacklist password forms on this URL. Then the callback will never be invoked again until you remove this blacklisted record from the password store.

Use the SavePasswordCallback.Action.ignore() method to ignore the suggestion to save the login and password in the password store. The callback will be invoked again if this or another web form is submitted on the same URL.

The prerequisites for the callback invocation:

  • The login and password should not be empty.
  • The scheme should be web-safe. The list of web-safe schemes: HTTP, HTTPS, WS, and WSS.
  • The profile should not be incognito.
  • The valid SSL certificate is used.
  • A positive server response on the web form submission.
Since:
7.20