diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /modules/libpref/nsIPrefService.idl | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules/libpref/nsIPrefService.idl')
-rw-r--r-- | modules/libpref/nsIPrefService.idl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/libpref/nsIPrefService.idl b/modules/libpref/nsIPrefService.idl index 5984fa30b7..dba67455bf 100644 --- a/modules/libpref/nsIPrefService.idl +++ b/modules/libpref/nsIPrefService.idl @@ -79,6 +79,24 @@ interface nsIPrefService : nsISupports void savePrefFile(in nsIFile aFile); /** + * Called to write current preferences state to a file off of the main thread. + * This differs from savePrefFile in that null is not accepted for the aFile + * parameter, and aFile cannot be pointing at the current preferences file. + * + * The backup will be written to disk off of the main thread, unless the + * preferences service is not configured to write to disk off of the main + * thread. + * + * @param aFile The file to be written. + * @returns A DOM promise that resolves when the backup is complete. + * + * @see readUserPrefsFromFile + * @see nsIFile + */ + [implicit_jscontext] + Promise backupPrefFile(in nsIFile aFile); + + /** * Call to get a Preferences "Branch" which accesses user preference data. * Using a Set method on this object will always create or set a user * preference value. When using a Get method a user set value will be |