Closed
Bug 1240620
Opened 9 years ago
Closed 8 years ago
index-db.js in SDK needs to pass the proper origin attributes to createCodebasePrincipal
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: huseby, Assigned: jhao)
References
Details
(Whiteboard: [userContextId][OA])
in the file addon-sdk/source/lib/sdk/indexed-db.js there's a call to createCodebasePrincipal that needs to be changed to use an origin attribute with the default user context id when creating the principal.
Reporter | ||
Comment 1•9 years ago
|
||
Matteo, I am in the process of fixing up all of the uses of createCodebasePrincipal so that we have the proper origin attributes set on all of the principals we use. Dan Veditz suggested I confirm with you that we're deprecating the add-ons API before fixing the call site in addon-sdk/source/lib/sdk/indexed-db.js. Is that true? Or should I fix this code up?
Flags: needinfo?(zer0)
Comment 2•8 years ago
|
||
(In reply to Dave Huseby [:huseby] from comment #1) > I am in the process of fixing up all of the uses of createCodebasePrincipal > so that we have the proper origin attributes set on all of the principals we > use. Dan Veditz suggested I confirm with you that we're deprecating the > add-ons API before fixing the call site in > addon-sdk/source/lib/sdk/indexed-db.js. > Is that true? Or should I fix this code up? Hi Dave, sorry for my late response. It is true that currently there is not active work on SDK APIs, but they're still maintained; so my guess is that this code should be fixed too.
Flags: needinfo?(zer0)
Updated•8 years ago
|
Assignee: nobody → tihuang
Updated•8 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•8 years ago
|
||
Tim gave me his permission to take this bug from him :D
Assignee: tihuang → jhao
Assignee | ||
Comment 4•8 years ago
|
||
I tried to import ChromeUtils but couldn't. Dave said that we can't use ChromeUtils in addon-sdk, and this bug should probably be "resolved won't fix."
Reporter | ||
Comment 5•8 years ago
|
||
Yes, this bug needs to be resolved as won't fix. Ideally, this call would propagate the add-on ID in the origin attributes but since we're no longer maintaining the SDK due to the transition to WebExtensions, I think the right thing is to just leave it as-is.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Reporter | ||
Updated•8 years ago
|
Whiteboard: [userContextId] → [userContextId][OA]
You need to log in
before you can comment on or make changes to this bug.
Description
•