Closed
Bug 635375
Opened 13 years ago
Closed 13 years ago
Preferences > add-ons > get add-ons 'go to page' disabled
Categories
(Toolkit :: Add-ons Manager, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: kbrosnan, Assigned: mfinkle)
Details
(Whiteboard: [4.0b5])
Attachments
(2 files, 1 obsolete file)
52.47 KB,
image/png
|
Details | |
2.24 KB,
patch
|
mossop
:
review+
mossop
:
approval2.0+
|
Details | Diff | Splinter Review |
Open the preferences Select the Extensions window Scroll down to the Get add-ons section Select one of the add-ons results: 'Go to Page' button is disabled expected: clickable button or no button
Reporter | ||
Comment 1•13 years ago
|
||
Guess most of the extensions don't provide a homepage. Expected 'go to page' to take me to the amo page for the extension.
OS: Windows 7 → Android
Hardware: x86 → ARM
Assignee | ||
Comment 2•13 years ago
|
||
Yes, "Go to Page" should take you to the AMO page of the extension. This regressed.
Assignee | ||
Comment 3•13 years ago
|
||
Might be a bug, or normal behavior, in the AddonRepository. The "addon" object returned by the repository has a "homepageURL" property. That property is used by Fennec as the target for the Go To Page button. In the AddonRepository, the code first tries the add the author supplied hompageURL in the property. The homepageURL is optional. As a fallback, the code will use the AMO home page for the add-on. The code never seems to add the fallback. Or maybe it adds the AMO page first, then overwrites the empty homepageURL. Sets the homepageURL: http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/AddonRepository.jsm#901 Sets the AMO home page: http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/AddonRepository.jsm#976 I noticed that the AMO page ("learnmore") is returned first in the XML. Seems like the empty homepageURL is overwriting it.
Updated•13 years ago
|
Priority: -- → P2
Updated•13 years ago
|
Whiteboard: [4.0b5]
Comment 4•13 years ago
|
||
Looks like a bug on our side then. Should be as simple as doing an empty check before assigning here http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/AddonRepository.jsm#901 Not sure I'd call this blocking but if someone wants to whip up a quick patch and test I'd push to take it.
Component: General → Add-ons Manager
Product: Fennec → Toolkit
QA Contact: general → add-ons.manager
Assignee | ||
Comment 5•13 years ago
|
||
I think this was not caught in the current tests because the test for "use learnmore if homepage is not defined" did not have an empty <homepageURL/> in the XML. The real AMO feed does. Pushed to try
Assignee: nobody → mark.finkle
Attachment #514862 -
Flags: review?(dtownsend)
Assignee | ||
Comment 6•13 years ago
|
||
Patch works in Fennec. Add-ons with a homepage will open it, else the learnmore AMO page is opened.
Comment 7•13 years ago
|
||
Comment on attachment 514862 [details] [diff] [review] patch I think this is the wrong patch
Assignee | ||
Comment 8•13 years ago
|
||
Here's the right one
Attachment #514862 -
Attachment is obsolete: true
Attachment #514900 -
Flags: review?(dtownsend)
Attachment #514862 -
Flags: review?(dtownsend)
Assignee | ||
Comment 9•13 years ago
|
||
The patch is passing on Try server
Updated•13 years ago
|
Attachment #514900 -
Flags: review?(dtownsend)
Attachment #514900 -
Flags: review+
Attachment #514900 -
Flags: approval2.0+
Assignee | ||
Comment 10•13 years ago
|
||
pushed: http://hg.mozilla.org/mozilla-central/rev/e8facc64c88e
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 11•13 years ago
|
||
Kevin or Aaron, can one of you please verify this fix? Thanks.
Reporter | ||
Comment 12•13 years ago
|
||
Verified - Firefox Mobile nightly 20110304042129
Status: RESOLVED → VERIFIED
Flags: in-litmus?
Comment 13•13 years ago
|
||
Kevin, who can add this manual test to Litmus?
Reporter | ||
Updated•11 years ago
|
Flags: in-litmus?
You need to log in
before you can comment on or make changes to this bug.
Description
•