Use the chrome.passwordsPrivate API to add or remove password data from the settings UI.
Use the chrome.passwordsPrivate API to add or remove password data from the settings UI. * available since Chrome master
(cancel-export-passwords)
Stops exporting passwords and cleans up any passwords, which were already written to the filesystem.
Stops exporting passwords and cleans up any passwords, which were already written to the filesystem.
(export-passwords)
Triggers the Password Manager password export functionality. Completion Will be signaled by the onPasswordsFileExportProgress event.|callback| will be called when the request is started or rejected. If rejected chrome.runtime.lastError will be set to 'in-progress' or 'reauth-failed'.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Triggers the Password Manager password export functionality. Completion Will be signaled by the onPasswordsFileExportProgress event.|callback| will be called when the request is started or rejected. If rejected chrome.runtime.lastError will be set to 'in-progress' or 'reauth-failed'. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-password-exception-list)
Returns the list of password exceptions.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [exceptions] where:
|exceptions| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the list of password exceptions. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [exceptions] where: |exceptions| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-saved-password-list)
Returns the list of saved passwords.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [entries] where:
|entries| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the list of saved passwords. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [entries] where: |entries| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(import-passwords)
Triggers the Password Manager password import functionality.
Triggers the Password Manager password import functionality.
(on-password-exceptions-list-changed* config channel & args)
(on-passwords-file-export-progress* config channel & args)
(remove-password-exception index)
Removes the saved password exception corresponding to |exceptionUrl|. If no exception with this URL exists, this function is a no-op.
|index| - The index for the exception url entry being removed.
Removes the saved password exception corresponding to |exceptionUrl|. If no exception with this URL exists, this function is a no-op. |index| - The index for the exception url entry being removed.
(remove-saved-password index)
Removes the saved password corresponding to |loginPair|. If no saved password for this pair exists, this function is a no-op.
|index| - The index for the password entry being removed.
Removes the saved password corresponding to |loginPair|. If no saved password for this pair exists, this function is a no-op. |index| - The index for the password entry being removed.
(request-export-progress-status)
Requests the export progress status. This is the same as the last value seen on the onPasswordsFileExportProgress event. This function is useful for checking if an export has already been initiated from an older tab, where we might have missed the original event.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [status] where:
|status| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the export progress status. This is the same as the last value seen on the onPasswordsFileExportProgress event. This function is useful for checking if an export has already been initiated from an older tab, where we might have missed the original event. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [status] where: |status| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(request-plaintext-password index)
Returns the plaintext password corresponding to |index|. Note that on some operating systems, this call may result in an OS-level reauthentication. Once the password has been fetched, it will be returned via the onPlaintextPasswordRetrieved event. TODO(hcarmona): Investigate using a callback for consistency.
|index| - The index for the password entry being being retrieved.
Returns the plaintext password corresponding to |index|. Note that on some operating systems, this call may result in an OS-level reauthentication. Once the password has been fetched, it will be returned via the onPlaintextPasswordRetrieved event. TODO(hcarmona): Investigate using a callback for consistency. |index| - The index for the password entry being being retrieved.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.passwords-private namespace.
Taps all valid non-deprecated events in chromex.ext.passwords-private namespace.
(tap-on-password-exceptions-list-changed-events channel & args)
Fired when the password exceptions list has changed, meaning that an entry has been added or removed.
Events will be put on the |channel| with signature [::on-password-exceptions-list-changed [exceptions]] where:
|exceptions| - The updated list of password exceptions.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the password exceptions list has changed, meaning that an entry has been added or removed. Events will be put on the |channel| with signature [::on-password-exceptions-list-changed [exceptions]] where: |exceptions| - The updated list of password exceptions. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-passwords-file-export-progress-events channel & args)
Fired when the status of the export has changed.
Events will be put on the |channel| with signature [::on-passwords-file-export-progress [status]] where:
|status| - The progress status and an optional UI message.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the status of the export has changed. Events will be put on the |channel| with signature [::on-passwords-file-export-progress [status]] where: |status| - The progress status and an optional UI message. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-plaintext-password-retrieved-events channel & args)
Fired when a plaintext password has been fetched in response to a call to chrome.passwordsPrivate.requestPlaintextPassword().
Events will be put on the |channel| with signature [::on-plaintext-password-retrieved [dict]] where:
|dict| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when a plaintext password has been fetched in response to a call to chrome.passwordsPrivate.requestPlaintextPassword(). Events will be put on the |channel| with signature [::on-plaintext-password-retrieved [dict]] where: |dict| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-saved-passwords-list-changed-events channel & args)
Fired when the saved passwords list has changed, meaning that an entry has been added or removed.
Events will be put on the |channel| with signature [::on-saved-passwords-list-changed [entries]] where:
|entries| - The updated list of password entries.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the saved passwords list has changed, meaning that an entry has been added or removed. Events will be put on the |channel| with signature [::on-saved-passwords-list-changed [entries]] where: |entries| - The updated list of password entries. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(undo-remove-saved-password-or-exception)
Undoes the last removal of a saved password or exception.
Undoes the last removal of a saved password or exception.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close