Closed
Bug 618502
Opened 15 years ago
Closed 15 years ago
about:addons displays empty add-on page after uninstall/restart
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla2.0b9
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: jorgev, Assigned: mossop)
References
Details
Attachments
(1 file)
6.03 KB,
patch
|
Unfocused
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce:
0) Make sure you have Firefox setup to start with the last opened tabs.
1) Select an add-on in your list and click on the Remove button.
2) Right click on the add-on and select View More Information. The add-on details page appears, correctly indicating the add-on will be removed on restart.
3) Restart.
Observed result:
Firefox opens with about:addons showing an add-on detail page with no information.
Expected result:
The add-ons home should be shown instead. Nothing else will be good enough, IMO, because instead of Step 1, you can remove the add-on manually after closing Firefox, causing the same bug.
![]() |
||
Comment 1•15 years ago
|
||
Hmm, with Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101210 Firefox/4.0b8pre i don't get the Details Page, but rather a "Loading" Info when i stop at Step 2. The State after Step 3 is the same.
I guess a Solution would be to not show resp. disable certain Menu Commands of "to be removed" marked Addon Entries, like "Show more Information" and "Disable". The "Remove" Menu Entry shold change to "Undo".
Comment 2•15 years ago
|
||
Blair, that should be a dupe of bug 617291, right? Different path but same story.
Assignee | ||
Comment 3•15 years ago
|
||
Similar issues so there is some kind of dependency. This is the more likely case and so more likely to block, hopefully we'll just be fixing both cases at the same time though.
Blocks: 617291
blocking2.0: --- → ?
Assignee | ||
Comment 4•15 years ago
|
||
Blocks for a quick fix, I suggest just dropping to the default view when the expected add-on is missing
blocking2.0: ? → final+
Comment 5•15 years ago
|
||
(In reply to comment #4)
> Blocks for a quick fix, I suggest just dropping to the default view when the
> expected add-on is missing
Agreed - just take it back to the default category
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → dtownsend
Assignee | ||
Updated•15 years ago
|
Whiteboard: [waiting on try]
Assignee | ||
Comment 6•15 years ago
|
||
This makes us fall back to loading the default view if we cannot find the details for the add-on we want. It also makes it so the right category is selected if we have no previous view information (like if the add-ons manager is opened directly to a details view).
Attachment #501696 -
Flags: review?(bmcbride)
Assignee | ||
Updated•15 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [waiting on try] → [has patch][needs review Unfocused]
Comment 7•15 years ago
|
||
Comment on attachment 501696 [details] [diff] [review]
patch rev 1
>+ get selected() {
>+ return this.node.selectedItem ? this.node.selectedItem.value : null;
>+ },
I wonder if this can simplify some code in CategoryUtilities (followup fodder, if anything).
>+ // If the search category isn't selected then make sure the correct category
>+ // is
>+ if (gCategories.selected != "addons://search/")
>+ gCategories.select("addons://list/" + aAddon.type);
Nit: Can you re-wrap that comment, or something? That hanging "is" irks me. Also, the sentance is missing a fullstop.
>+ replaceView: function(aViewId) {
>+ if (aViewId == this.currentViewId)
>+ return;
>+
>+ gHistory.replaceState({
>+ view: aViewId,
>+ previousView: null
I'm assuming that because we only use |previousView| when |view| is the detail view, that setting |previousView| to null here won't have any side-effects. Correct?
Attachment #501696 -
Flags: review?(bmcbride) → review+
Updated•15 years ago
|
Whiteboard: [has patch][needs review Unfocused] → [has patch]
Comment 8•15 years ago
|
||
Also, that patch fixes bug 617291, in a round-about sort of way. Would be nice to show the addon with the changed ID, but at least this patch means the UI won't be broken when bug 617291 is encountered.
Assignee | ||
Comment 9•15 years ago
|
||
(In reply to comment #7)
> >+ replaceView: function(aViewId) {
> >+ if (aViewId == this.currentViewId)
> >+ return;
> >+
> >+ gHistory.replaceState({
> >+ view: aViewId,
> >+ previousView: null
>
> I'm assuming that because we only use |previousView| when |view| is the detail
> view, that setting |previousView| to null here won't have any side-effects.
> Correct?
Correct. In fact the patch makes it so we don't technically need the previousView unless the previousView was a search, though having it just makes sure the right category gets selected even before the add-on details load.
Assignee | ||
Comment 10•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Flags: in-litmus-
Resolution: --- → FIXED
Whiteboard: [has patch]
Target Milestone: --- → mozilla2.0b9
Comment 11•15 years ago
|
||
Following the steps from comment 0 we always end-up in opening the Get Add-ons page now. I think we should really open the accordingly list view instead. Can't we retrieve the type of the details view by the type attribute?
Assignee | ||
Comment 12•15 years ago
|
||
(In reply to comment #11)
> Following the steps from comment 0 we always end-up in opening the Get Add-ons
> page now. I think we should really open the accordingly list view instead.
> Can't we retrieve the type of the details view by the type attribute?
No because when the add-on no longer exists we don't know what type it was.
Comment 13•15 years ago
|
||
Ok, which makes sense after the restart. Marking as verified fixed with Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b9pre) Gecko/20110109 Firefox/4.0b9pre ID:20110109030350
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•