Bug 764333 - Link from error console to view source doesn't work for errors in subscripts; r=Unfocused
authorGeoff Lankow <geoff@darktrojan.net>
Thu, 14 Jun 2012 21:20:06 +1200
changeset 25509 f0eb7f53b20b97e75c30f2e19bcaf8ecafb29824
parent 25508 d8f1d0acbf15a056d71efdfc9d58ce472a727a99
child 25510 68815265965fcc0b896fcba4c6190354628436eb
push id1725
push userclokep@gmail.com
push dateMon, 19 Sep 2016 17:35:08 +0000
treeherdercomm-beta@6ead1abf3817 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused
bugs764333
Bug 764333 - Link from error console to view source doesn't work for errors in subscripts; r=Unfocused
suite/common/console/consoleBindings.xml
--- a/suite/common/console/consoleBindings.xml
+++ b/suite/common/console/consoleBindings.xml
@@ -498,16 +498,17 @@
     <content>
       <xul:label class="text-link" xbl:inherits="href,value=href" crop="right"/>
     </content>
 
     <handlers>
       <handler event="click" phase="capturing" button="0" preventdefault="true">
         <![CDATA[
           var url = this.getAttribute("href");
+          url = url.substring(url.lastIndexOf(" ") + 1);
           var line = getAttribute("line");
           gViewSourceUtils.viewSource(url, null, null, line);
         ]]>
       </handler>
     </handlers>
   </binding>
 
 </bindings>