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 96666 3c823891957937c935f027e9f39121ed66871e88
parent 96665 62cc5a6c3069f6c926be07c572745bb5de24bfe4
child 96670 745524255b374ac4e22f5ca83d87ffd0c08e04c8
push id10652
push usergeoff@darktrojan.net
push dateThu, 14 Jun 2012 09:20:51 +0000
treeherdermozilla-inbound@3c8238919579 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused
bugs764333
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 764333 - Link from error console to view source doesn't work for errors in subscripts; r=Unfocused
toolkit/components/console/content/consoleBindings.xml
--- a/toolkit/components/console/content/consoleBindings.xml
+++ b/toolkit/components/console/content/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>