Bug 983747 - Follow-up. Correct bad commit. r=kanru, a=lmandel
authorGhislain 'Aus' Lacroix <glacroix@mozilla.com>
Fri, 20 Jun 2014 03:17:34 -0700
changeset 208385 b9875fb66979b2f9f4d6e39d5675766765954fdd
parent 208384 c429a00cf5b6c36791643516364128dfca8948c9
child 208386 6e6ccf878ccf0d120544f3a905b9c9f3add699cd
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskanru, lmandel
bugs983747
milestone32.0a2
Bug 983747 - Follow-up. Correct bad commit. r=kanru, a=lmandel
dom/browser-element/BrowserElementParent.jsm
--- a/dom/browser-element/BrowserElementParent.jsm
+++ b/dom/browser-element/BrowserElementParent.jsm
@@ -665,22 +665,22 @@ BrowserElementParent.prototype = {
         this.extListener.onStartRequest(aRequest, aContext);
       },
       onStopRequest: function(aRequest, aContext, aStatusCode) {
         debug('DownloadListener - onStopRequest (aStatusCode = ' +
                aStatusCode + ')');
         if (aStatusCode == Cr.NS_OK) {
           // Everything looks great.
           debug('DownloadListener - Download Successful.');
-          this.services.DOMRequest.fireSuccess(this.req, aStatusCode);
+          Services.DOMRequest.fireSuccess(req, aStatusCode);
         }
         else {
           // In case of failure, we'll simply return the failure status code.
           debug('DownloadListener - Download Failed!');
-          this.services.DOMRequest.fireError(this.req, aStatusCode);
+          Services.DOMRequest.fireError(req, aStatusCode);
         }
 
         if (this.extListener) {
           this.extListener.onStopRequest(aRequest, aContext, aStatusCode);
         }
       },
       onDataAvailable: function(aRequest, aContext, aInputStream,
                                 aOffset, aCount) {