Closed Bug 1810095 Opened 1 year ago Closed 1 year ago

Remove now-unused old storage actor and split the file per storage type

Categories

(DevTools :: Storage Inspector, task)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 1 obsolete file)

Thanks to bug 1578975 and previous bugs in that queue, the old Storage Actor, only exposing "listStores" is no longer used anywhere.
We can drop it, while keeping the per-storage-type code.
We can then move these per-storage-type code closer to their related resource watchers.
We have one watcher per storage type. When doing that, we can finally split this huge storage.js file.

Then, we may followup and try to merge these files into each watcher module.

This actor was only used by the legacy listener.
Its main method was listStores which exposed all the storage type actors.
Now they are exposed via storage Resource watchers.

This requires to tweak the decision making to show the storage panel
as the actor no longer exists... Unfortunately we can't check for
resource traits on the watcher actor as the browser toolbox
on older runtime won't expose it.

Note that this.front wasn't used for a little while in ui.js.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Attachment #9312133 - Attachment is obsolete: true

I actually regressed this from D166661 within this current patch queue.
It isn't clear why the old code was somehow keeping the parent/ext-storage.js class
alive -or- somehow magically recalling apiManager.asyncGetAPI after addon reload.
But now we handle the case of addon reload explicitly.

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/87928fc48338
[devtools] Remove now-unused Storage target scoped actor. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes
https://hg.mozilla.org/integration/autoland/rev/c7a52c3d61c7
[devtools] Split storage actor file into one file per storage type. r=devtools-reviewers,jdescottes
https://hg.mozilla.org/integration/autoland/rev/75d62a6784c2
[devtools] Fix extension storage updates when the add-on is reloaded. r=devtools-reviewers,rpl,jdescottes
Regressions: 1813406
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: