diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /toolkit/components/cleardata/SiteDataTestUtils.sys.mjs | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/cleardata/SiteDataTestUtils.sys.mjs')
-rw-r--r-- | toolkit/components/cleardata/SiteDataTestUtils.sys.mjs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/toolkit/components/cleardata/SiteDataTestUtils.sys.mjs b/toolkit/components/cleardata/SiteDataTestUtils.sys.mjs index 99bd1f72b0..f38f3aff4b 100644 --- a/toolkit/components/cleardata/SiteDataTestUtils.sys.mjs +++ b/toolkit/components/cleardata/SiteDataTestUtils.sys.mjs @@ -114,7 +114,11 @@ export var SiteDataTestUtils = { }, /** - * Adds a new localStorage entry for the specified origin, with the specified contents. + * Adds a new localStorage entry for the specified origin, with the specified + * contents. + * + * This method requires the pref dom.storage.client_validation=false in order + * to access LS without a window. * * @param {String} origin - the origin of the site to add test data for * @param {String} [key] - the localStorage key @@ -139,6 +143,9 @@ export var SiteDataTestUtils = { * @param {{key: String, value: String}[]} [testEntries] - An array of entries * to test for. * + * This method requires the pref dom.storage.client_validation=false in order + * to access LS without a window. + * * @returns {Boolean} whether the origin has localStorage data */ hasLocalStorage(origin, testEntries) { |