Safari 18 no longer supports storage.local.get by passing an object with object names as keys and the default value as value. #36152
Labels
Content:WebExt
WebExtensions docs
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
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
en-us/mozilla/add-ons/webextensions/api/storage/storagearea/get
The text was updated successfully, but these errors were encountered: