-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
inconsistencyInconsistent behavior across browsersInconsistent behavior across browserstopic: storageIssues related to persisting data. Topics include browser.storage, web storage, and new APIs.Issues related to persisting data. Topics include browser.storage, web storage, and new APIs.
Description
Inconsistency: storage.managed
Please note some inconsistencies regarding the storage.managed API.
Other browsers not checked.
(async () => {
// no catch
console.log(await chrome.storage.managed.get());
console.log(await browser.storage.managed.get());
// with catch
console.log(await chrome.storage.managed.get().catch(() => {}));
console.log(await browser.storage.managed.get().catch(() => {}));
})();| Chrome | Firefox | |
|---|---|---|
| manifest.json | "storage": {
"managed_schema": "schema.json"
},
|
not required |
| schema.json | required | not required |
| not found no-catch | { } | Uncaught (in promise) Error: Managed storage manifest not found |
| not found with-catch | { } | undefined |
| Policy location: linux | /etc/opt/chrome/policies/managed/ | /etc/firefox/policies firefox/distribution |
| Policy Format |
{
"3rdparty": {
"extensions": {
"extension-ID": { }
}
}
}
Note: "extensions" |
{
"policies": {
"3rdparty": {
"Extensions": {
"extension-ID": { }
}
}
}
}
Note: "policies" & "Extensions" |
| Manifest location: linux | n/a | /usr/lib/mozilla/managed-storage/{name}.json ~/.mozilla/managed-storage/{name}.json |
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1868153
fregante and twschillerfregante and twschiller
Metadata
Metadata
Assignees
Labels
inconsistencyInconsistent behavior across browsersInconsistent behavior across browserstopic: storageIssues related to persisting data. Topics include browser.storage, web storage, and new APIs.Issues related to persisting data. Topics include browser.storage, web storage, and new APIs.