Closed
Bug 491517
Opened 17 years ago
Closed 17 years ago
[Extension] Can access extension preferences while not logged in
Categories
(addons.mozilla.org Graveyard :: Collector Extension, defect)
addons.mozilla.org Graveyard
Collector Extension
Tracking
(Not tracked)
VERIFIED
FIXED
BW-M6
People
(Reporter: fligtar, Assigned: mackers)
Details
The extension preferences dialog can be accessed via the optionsURL button when the user isn't logged in. This is a problem because if they then try to create an auto-publisher or do something else that requires login, it will hang.
I'm thinking the easiest way to deal with this is to just remove the optionsURL.
Comment 1•17 years ago
|
||
It would also be trivial to check login on startup of preferences, and either disable some UI or bail. Latter probably better, giving them an option to go and login.
Assignee: nobody → brian
| Assignee | ||
Comment 2•17 years ago
|
||
(In reply to comment #1)
> It would also be trivial to check login on startup of preferences, and either
> disable some UI or bail. Latter probably better, giving them an option to go
> and login.
There is already logic in the preferences to invalidate the UI based on logged in status. It would make sense to extend this to disable auto-publisher, etc.
Comment 3•17 years ago
|
||
(In reply to comment #2)
> There is already logic in the preferences to invalidate the UI based on logged
> in status. It would make sense to extend this to disable auto-publisher, etc.
Does it listen for login changes if, for example, the user logs in or out when the Prefs window is open (possible on some platforms).
| Assignee | ||
Comment 4•17 years ago
|
||
(In reply to comment #3)
> Does it listen for login changes if, for example, the user logs in or out when
> the Prefs window is open (possible on some platforms).
Yes. I implemented a notification system for this. From memory I think it's called registerLoginStateChangedObserver(). The preference window utilizes this for this purpose.
| Reporter | ||
Comment 5•17 years ago
|
||
Ok, let's do that then if it's not too hard.
Updated•17 years ago
|
Assignee: brian → dave
| Assignee | ||
Comment 6•17 years ago
|
||
Settings window now reflects logged in status by enabling/disabling all fields that are available/unavailable when the user logs in/out.
r25337
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 7•17 years ago
|
||
Verified FIXED using the latest-available version of the add-ons collector: https://people.mozilla.com/~jscott/bandwagon/2009-08-11.xpi.
Status: RESOLVED → VERIFIED
| Reporter | ||
Updated•16 years ago
|
Component: Collections → Collector Extension
Updated•16 years ago
|
QA Contact: collections → collector-extension
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•