Closed Bug 1638609 Opened 5 years ago Closed 5 years ago

"Find More Add-ons" button opens ATN in external browser

Categories

(Thunderbird :: Add-Ons: General, defect, P1)

Tracking

(thunderbird78+ fixed)

RESOLVED FIXED
Thunderbird 79.0
Tracking Status
thunderbird78 + fixed

People

(Reporter: sancus, Assigned: khushil324)

References

Details

(Keywords: regression)

Attachments

(2 files)

The "Find More Add-ons" button at the bottom of the new Discovery Pane is broken. It should open ATN in a new tab(inside Thunderbird). Previously, it opened the link in an external browser, which is also wrong.

The following error shows in the error console:
Uncaught
Exception { name: "NS_ERROR_ILLEGAL_VALUE", message: "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIExternalProtocolService.loadURI]", result: 2147942487, filename: "chrome://communicator/content/contentAreaClick.js", lineNumber: 230, columnNumber: 0, data: null, stack: "openLinkExternally@chrome://communicator/content/contentAreaClick.js:230:6\nopenUILinkIn@chrome://communicator/content/contentAreaClick.js:253:21\nopenTrustedLinkIn@chrome://communicator/content/contentAreaClick.js:267:15\nopenAmoInTab@chrome://mozapps/content/extensions/aboutaddons.js:4462:26\nhandleEvent@chrome://mozapps/content/extensions/aboutaddons.js:4180:21\nEventListener.handleEventconnectedCallback@chrome://mozapps/content/extensions/aboutaddons.js:4172:12\nshow@chrome://mozapps/content/extensions/aboutaddons.js:4569:10\nasyncshow@chrome://mozapps/content/extensions/extensions.js:557:41\nasyncloadViewInternal@chrome://mozapps/content/extensions/extensions.js:451:27\nloadInitialView@chrome://mozapps/content/extensions/extensions.js:388:10\nloadInitialViewFn@chrome://mozapps/content/extensions/extensions.js:497:21\ninitialize@chrome://mozapps/content/extensions/aboutaddons.js:4511:10\ngetHtmlBrowser/_htmlBrowserLoaded<@chrome://mozapps/content/extensions/extensions.js:531:33\npromise callbackgetHtmlBrowser@chrome://mozapps/content/extensions/extensions.js:530:7\ninitialize@chrome://mozapps/content/extensions/extensions.js:551:23\ninitialize@chrome://mozapps/content/extensions/extensions.js:272:12\ninitialize@chrome://mozapps/content/extensions/extensions.js:51:19\nEventListener.handleEvent*@chrome://mozapps/content/extensions/extensions.js:24:10\n", location: XPCWrappedNative_NoHelper }
contentAreaClick.js:230

Summary: "Find More Add-ons" → "Find More Add-ons" button in discovery pane is broken

I think bug 1638092 will fix it. Opening links on trunk is kind of broken atm.

(In reply to Magnus Melin [:mkmelin] from comment #1)

I think bug 1638092 will fix it. Opening links on trunk is kind of broken atm.

Will that also fix the issue of it trying to open in external browser though? I guess we'll have to see, and I'll morph this bug if it doesn't. I originally started filing this to report it not opening in a TB tab, which is a big problem for 78 because that button is the only way, other than a search, to get to ATN now.

Summary: "Find More Add-ons" button in discovery pane is broken → "Find More Add-ons" button opens ATN in external browser

So, yeah. Bug 1638092 fixed the brokenness of the link, but now it opens in external browser again. It needs to open in Thunderbird so that people can actually install add-ons.

Quickly looking at this I think it ends up in openAmoInTab and from there https://searchfox.org/comm-central/rev/9498b3d1accf12df749f19b88fb1d0a1fcad8d4d/mail/base/content/contentAreaClick.js#256

(If not, something with openContentTab?)

I notice the Privacy Policy link below is also wrong (linking to non-openable chrome://). This should be fixable by setting a extensions.recommendations.privacyPolicyUrl value in all-thunderbird.js

Assignee: nobody → khushil324
OS: Windows 10 → All
Priority: -- → P1

Adding an extensions.recommendations.privacyPolicyUrl in all-thunderbird.js worked. It is now opening up the privacy policy in the browser. Do we want to open it in the Thunderbird? What URL should we put there? Firefox is putting: https://www.mozilla.org/privacy/firefox/?utm_source=firefox-browser&utm_medium=firefox-browser&utm_content=privacy-policy-link#addons

(In reply to Khushil Mistry [:khushil324] from comment #6)

How about this: https://www.mozilla.org/en-US/privacy/thunderbird/#addons?

That seems fine for now, the privacy policy is being currently rewritten anyway so we may need to change this link in a future release.

E: Oh and I think it's fine if the privacy policy link opens in external browser. Only links to ATN are supposed to always open in Thunderbird.

Attachment #9157713 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9157713 [details] [diff] [review] Bug-1638609_fix-reco-addon-links-0.patch Review of attachment 9157713 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, r=mkmelin
Attachment #9157713 - Flags: review?(mkmelin+mozilla) → review+
Status: NEW → ASSIGNED
Target Milestone: --- → Thunderbird 79.0

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/23275377fdbe
fix add-ons discovery pane "find more addons" and privacy links. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Comment on attachment 9157713 [details] [diff] [review] Bug-1638609_fix-reco-addon-links-0.patch Needed to get a couple of links working in the new add-ons discovery pane.
Attachment #9157713 - Flags: approval-comm-beta?
Comment on attachment 9157713 [details] [diff] [review] Bug-1638609_fix-reco-addon-links-0.patch Approved for beta
Attachment #9157713 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: