-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency: storage.managed #497
Comments
I found this also an issue that gives me browser extension no harmony the same for all web browsers. I have discussed it in my latest blog post titled "Firefox Manifest V3 Extension: A Developer's Perspective," which you can read at https://www.stefanvd.net/blog/2023/11/30/firefox-manifest-v3-extension-a-developer-perspective/. If the group looking for an example that uses the managed store, you can check out my Open-Source Turn Off the Lights Chrome extension and Firefox extension. The code can be found at https://github.com/turnoffthelights/Turn-Off-the-Lights-Chrome-extension/blob/manifest-v3/src/schema.json (I also added this issue link also on my blog post) |
The policy location and formats are browser-specific and won't converge to one location. The Agreeing on a common schema format is required before an implementation of
Here is another example of a more complex schema: https://github.com/mozilla/pdf.js/blob/d56453289c4a37beb3dbbd108e78c18b6d34fa90/extensions/chromium/preferences_schema.json The policy formats themselves are also complicated: The policy formats are platform-specific (but in a format that should be recognizable by administrators who already use policy templates).
|
In Chromium, I think there's also a bug where managed storage might not be available immediately on extension initialization. Would you happen to know if the intended behavior/guarantees are specified anywhere?
The gotcha is that we want to use managed storage to control enterprise options that impact extension startup, e.g., specifying the SAML URL for authentication. So ideally, we wouldn't have to make a timeout assumption because that impacts user experience because we have to be conservative |
Please note that the differences are listed for information and not recommendations. managed_schemaThere are many of new schema features that are not supported in Chrome schema such as: TBH, not having ReturnThe return value when the managed storage is not found, is the most relevant inconsistency. Policy PropertiesThe inconsistency in the format of the policy could be considered e.g. "policies" & "Extensions" |
Inconsistency: storage.managed
Please note some inconsistencies regarding the
storage.managed
API.Other browsers not checked.
no-catch
with-catch
firefox/distribution
Note: "extensions"
~/.mozilla/managed-storage/{name}.json
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1868153
The text was updated successfully, but these errors were encountered: