The default bug view has changed. See this FAQ.

Complete the implementation of chrome.storage

NEW
Unassigned

Status

()

Toolkit
WebExtensions: General
P2
normal
2 years ago
a month ago

People

(Reporter: andym, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [storage]triaged)

(Reporter)

Description

2 years ago
The methods on the API are:

https://developer.chrome.com/extensions/storage

Currently implemented:

local

To be implemented:

Types

StorageChange
StorageArea

Properties

sync
managed

Events

onChanged

The sync property sounds exciting.

Comment 1

2 years ago
Also chrome.storage.local.clear is not implemented.
Depends on: 1217886
I made a new bug (bug 1217886) for implementing chrome.storage.local.clear
(Reporter)

Updated

a year ago
Flags: blocking-webextensions-

Comment 3

a year ago
Another critical difference is that in Chrome extension we have access from the content script to the chrome.storage, but in Firefox WebExtensions not. Is this on purpose or should be implemented?

My user case: In the options page users specify for each urls to enable the extension. This data is stored in chrome.storage, then when loading the content script, I check whether the current url is in the storage array.
Comment hidden (spam)

Comment 5

a year ago
(In reply to Mihail Diordiev from comment #3)
> Another critical difference is that in Chrome extension we have access from
> the content script to the chrome.storage, but in Firefox WebExtensions not.
> Is this on purpose or should be implemented?

Access from content script is already requested in this ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=1197346
Depends on: 1197346
Depends on: 1220494

Updated

a year ago
Blocks: 1214733
(Reporter)

Updated

a year ago
Whiteboard: [storage] → [storage]triaged

Comment 6

7 months ago
I think https://bugzilla.mozilla.org/show_bug.cgi?id=1301098 may have been better reported in here, sorry, I didn't find this entry at the time of writing. TLDR: If I'm not mistaken, chrome.storage.local is not working on option pages (or is in contrast to what the documentation says).
Blocks: 1303905
(Reporter)

Updated

6 months ago
Component: WebExtensions: Untriaged → WebExtensions: General
Flags: blocking-webextensions-
Priority: -- → P2
(Reporter)

Updated

2 months ago
No longer blocks: 1214733
No longer blocks: 1303905
You need to log in before you can comment on or make changes to this bug.