Bug 1177381 - View source from error console uses deprecated API. r=neil
authorIan Neal <iann_bugzilla@blueyonder.co.co.uk>
Mon, 27 Jul 2015 10:07:00 -0400
changeset 254802 147f228aeb8cfa616a37a5fbef00005f9ad0b2b9
parent 254801 92665159141766a36e43556777419b4085c58122
child 254803 b2d0e28fe539f46f32792cdaf85c0a51c2ed5003
push id16720
push userryanvm@gmail.com
push dateMon, 27 Jul 2015 19:45:38 +0000
treeherderb2g-inbound@13354b414396 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil
bugs1177381
milestone42.0a1
Bug 1177381 - View source from error console uses deprecated API. r=neil
toolkit/components/console/content/consoleBindings.xml
--- a/toolkit/components/console/content/consoleBindings.xml
+++ b/toolkit/components/console/content/consoleBindings.xml
@@ -533,15 +533,15 @@
     </content>
 
     <handlers>
       <handler event="click" phase="capturing" button="0" preventdefault="true">
         <![CDATA[
           var url = document.getBindingParent(this).mSourceName;
           url = url.substring(url.lastIndexOf(" ") + 1);
           var line = getAttribute("line");
-          gViewSourceUtils.viewSource(url, null, null, line);
+          gViewSourceUtils.viewSource({URL: url, lineNumber: line});
         ]]>
       </handler>
     </handlers>
   </binding>
 
 </bindings>