Bug 1300107 - make click on URL in add-on details work again by passing only the URL to loadURI*(). r=mkmelin a=jorgk DONTBUILD
authoraceman <acelists@atlas.sk>
Wed, 14 Sep 2016 16:49:00 +0200
changeset 27475 a8ddbce782b02d216bc23eaa21c67c22dab0e065
parent 27474 b684b3927470f153c95a60c68cec095975aacd48
child 27476 7b4065981cd44801c3724e851359dd8092e83dc6
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, jorgk
bugs1300107
Bug 1300107 - make click on URL in add-on details work again by passing only the URL to loadURI*(). r=mkmelin a=jorgk DONTBUILD
mail/components/mailGlue.js
--- a/mail/components/mailGlue.js
+++ b/mail/components/mailGlue.js
@@ -119,17 +119,18 @@ MailGlue.prototype = {
       });
     });
   },
 
   _handleLink: function MailGlue__handleLink(aSubject, aData) {
     let linkHandled = aSubject.QueryInterface(Ci.nsISupportsPRBool);
     if (!linkHandled.data) {
       let win = Services.wm.getMostRecentWindow("mail:3pane");
-      let tabParams = { contentPage: aData, clickHandler: null };
+      aData = JSON.parse(aData);
+      let tabParams = { contentPage: aData.href, clickHandler: null };
       if (win) {
         let tabmail = win.document.getElementById("tabmail");
         if (tabmail) {
           tabmail.openTab("contentTab", tabParams);
           win.focus();
           linkHandled.data = true;
           return;
         }