Closed Bug 1300107 Opened 6 years ago Closed 5 years ago

click on URL in add-on details fails


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

49 Branch
Not set


(thunderbird48 unaffected, thunderbird49 wontfix, thunderbird50 fixed, thunderbird51 fixed)

Thunderbird 51.0
Tracking Status
thunderbird48 --- unaffected
thunderbird49 --- wontfix
thunderbird50 --- fixed
thunderbird51 --- fixed


(Reporter: marcoagpinto, Assigned: aceman)



(Keywords: regression)


(2 files)

Attached image error message
When I click on any links in the add-ons tab, it attempts to open a tab with the page but I get an invalid link text in it (see screenshot).
WFM with prior beta 47.0b2.  perhaps jorg knows what's going on

Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.loadURIWithOptions]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://global/content/bindings/browser.xml :: loadURIWithFlags/< :: line 152"  data: no]
Component: Testing Infrastructure → General
Ever confirmed: true
Flags: needinfo?(jorgk)
Thanks for reporting this. I've noticed this a while ago but was possibly busy with other things at the time. ;-(
Fails in Daily, too.

Perhaps Aceman can take a look.
Flags: needinfo?(jorgk)
Summary: TB 49b1 - add-on URL click → click on URL in add-on details fails
Further to comment #1: The console shows:
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.loadURIWithOptions]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://global/content/bindings/browser.xml :: loadURIWithFlags/< :: line 152"  data: no]

loadURIWithFlags/<        chrome://global/content/bindings/browser.xml:152:15
_wrapURIChangeCall        chrome://global/content/bindings/browser.xml:49:17
loadURIWithFlags          chrome://global/content/bindings/browser.xml:151:13
loadURI/<                 chrome://global/content/bindings/browser.xml:120:15
_wrapURIChangeCall        chrome://global/content/bindings/browser.xml:49:17
loadURI                   chrome://global/content/bindings/browser.xml:119:13
contentTab_onTabOpened    chrome://messenger/content/specialTabs.js:639:7
openTab                   chrome://messenger/content/tabmail.xml:565:11
MailGlue__handleLink      resource://gre/components/mailGlue.js:131:11
MailGlue_observe          resource://gre/components/mailGlue.js:65:7
open                      chrome://global/content/bindings/text.xml:361:11
onxblclick                chrome://global/content/bindings/text.xml:380:1

Not sure were the error is generated. Here?

Or nsIWebNavigation.loadURIWithOptions isn't happy?

Oh, those lovely cryptic JS messages.

The bug which maybe cause this made this change:
At chrome://global/content/bindings/browser.xml:152, the aURI contains all this object: '{"shiftKey":false,"ctrlKey":false,"metaKey":false,"altKey":false,"button":0,"href":""}', not just the URL.

Then this error follows:

Security Error: Content at about:neterror?e=malformedURI&u=%7B%22shiftKey%22%3Afalse%2C%22ctrlKey%22%3Afalse%2C%22metaKey%22%3Afalse%2C%22altKey%22%3Afalse%2C%22button%22%3A0%2C%22href%22%3A%22http%3A// may not load or link to chrome://global/skin/icons/warning-16.png.

So it seems it is using that whole object as the URL to load.

It is possible we need to port the change in browser/components/nsBrowserGlue.js from the patch Jorg linked.
Attached patch patchSplinter Review
This fixes it for the addon links. But I don't know what other links this is called on. I tried e.g. the link in About dialog and it worked too.

Links in messages (and the others in About dialog) do not work for me regardless of the patch (they show the dialog to choose app).
Attachment #8791437 - Flags: review?(mkmelin+mozilla)
Comment on attachment 8791437 [details] [diff] [review]

Tested this:
Links in add-on details work again.
All links in "About Daily" work, some open in FF.
Links in messages also work, they open in FF.
Attachment #8791437 - Flags: feedback+
Comment on attachment 8791437 [details] [diff] [review]

Review of attachment 8791437 [details] [diff] [review]:

LGTM, r=mkmelin
Attachment #8791437 - Flags: review?(mkmelin+mozilla) → review+
(ready for today's Daily, thanks!!)
Assignee: nobody → acelists
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 51.0
Comment on attachment 8791437 [details] [diff] [review]

This needs to be uplifted to make it into the upcoming TB 50 beta.
Attachment #8791437 - Flags: approval-comm-aurora+
Component: General → Add-Ons: General
You need to log in before you can comment on or make changes to this bug.