Skip to content
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

Safari 18 no longer supports storage.local.get by passing an object with object names as keys and the default value as value. #36152

Open
here-nerd opened this issue Oct 1, 2024 · 0 comments
Labels
Content:WebExt WebExtensions docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@here-nerd
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/get

What specific section or headline is this issue about?

Browser Compatibility --> Safari

What information was incorrect, unhelpful, or incomplete?

Since Safari 18, calling the get API with this form:
let gettingItem = browser.storage.local.get({ kitten: "no kitten", monster: "no monster", grapefruit: { name: "Grape Fruit", eats: "Water", }, });

Always return undefined.

What did you expect to see?

An implementation note that Safari has limited support on this api.

Do you have any supporting links, references, or citations?

https://developer.apple.com/forums/thread/765169

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@here-nerd here-nerd added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 1, 2024
@github-actions github-actions bot added the Content:WebExt WebExtensions docs label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebExt WebExtensions docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant