Closed
Bug 1280222
Opened 8 years ago
Closed 8 years ago
Add ability to store metadata (annotations) for each tab /window
Categories
(WebExtensions :: Untriaged, defect)
WebExtensions
Untriaged
Tracking
(firefox50 affected)
RESOLVED
DUPLICATE
of bug 1322060
Tracking | Status | |
---|---|---|
firefox50 | --- | affected |
People
(Reporter: yuki, Unassigned)
References
Details
(Whiteboard: [design-decision-needed] triaged)
Alternatives for the nsISessionStore features are required for tab-related addons, after XUL is ended. Existing "chrome.storage" can do similar thing, but it is hard to synchronize stored data with actual changes around tabs and windows, and it can produce garbages in the storage when the addon failed to synchronize the data with closed tabs. Moreover, it is very annoying to keep stored data for closed tabs and windows, because they can be reopened by the user.
Reporter | ||
Updated•8 years ago
|
Blocks: webextensions-additional-apis
Reporter | ||
Comment 1•8 years ago
|
||
I think that the API should be similar to the one for bookmarks' annotations (I proposed at the bug 1271567.) Like:
~~~
// get metadata
chrome.tabs.get(id, function(result) {
var annotations = result.annotations || {};
...
});
// store metadata
var annotations = bookmark.annotations || {};
annotations.myPrivateData = 'foo';
chrome.tabs.update(
id,
{ annotations: annotations },
function(result) {
}
);
~~~
Something design decision is needed about isolation for each addon. The namespace should be separated for addons implicitly (safe, but hard to collaborate addons), or unified (easy to collaborate, but unsafe.)
Reporter | ||
Updated•8 years ago
|
Whiteboard: [design-decision-needed]
Updated•8 years ago
|
Whiteboard: [design-decision-needed] → [design-decision-needed] triaged
Comment 2•8 years ago
|
||
To be discussed at Jan 24 WebExtensions Triage Mtg.
Agenda: https://docs.google.com/document/d/1add-6FL8mzksvzbyB83HUmEkVmKERd-nt740AYr-4PE/edit#
Comment 3•8 years ago
|
||
I wonder, can this be considered to be a duplicate of bug 1322060? Might it make sense to discuss that bug as well as part of the triage on the 24th as they seem pretty closely related to me.
Flags: needinfo?(amckay)
Reporter | ||
Comment 4•8 years ago
|
||
(In reply to Bob Silverberg [:bsilverberg] from comment #3)
> I wonder, can this be considered to be a duplicate of bug 1322060? Might it
> make sense to discuss that bug as well as part of the triage on the 24th as
> they seem pretty closely related to me.
I agree that this is a dup of the bug 1322060.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(amckay)
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•