diff options
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) { |