Skip to content

Inconsistency: storage.managed #497

@erosman

Description

@erosman

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(() => {}));

})();
ChromeFirefox
manifest.json
"storage": {
  "managed_schema": "schema.json"
},
not required
schema.jsonrequirednot 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    inconsistencyInconsistent behavior across browserstopic: storageIssues related to persisting data. Topics include browser.storage, web storage, and new APIs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions