Bug 997564 - Use async way to fire an error. r=fabrice
authorEvelyn Hung <jj.evelyn@gmail.com>
Sun, 21 Sep 2014 09:08:00 +0200
changeset 222645 13e4bdbf038eed9b92d5cd465ef2cd73bbe6b896
parent 222644 1caa84ba144c21a86328c7c52a85ad1d826fa9c4
child 222646 4db03e23f383b39ed7e383795d090619f9cf08a8
push id7107
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 17:43:31 +0000
treeherdermozilla-aurora@b4b34e0acc75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs997564
milestone35.0a1
Bug 997564 - Use async way to fire an error. r=fabrice
dom/activities/ActivityProxy.js
--- a/dom/activities/ActivityProxy.js
+++ b/dom/activities/ActivityProxy.js
@@ -51,17 +51,17 @@ ActivityProxy.prototype = {
     let manifestURL = (appId != Ci.nsIScriptSecurityManager.NO_APP_ID &&
                        appId != Ci.nsIScriptSecurityManager.UNKNOWN_APP_ID)
                         ? DOMApplicationRegistry.getManifestURLByLocalId(appId)
                         : null;
 
     // Only let certified apps enumerate providers for this filter.
     if (aOptions.getFilterResults === true &&
         principal.appStatus != Ci.nsIPrincipal.APP_STATUS_CERTIFIED) {
-      Services.DOMRequest.fireError(this.activity, "SecurityError");
+      Services.DOMRequest.fireErrorAsync(this.activity, "SecurityError");
       Services.obs.notifyObservers(null, "Activity:Error", null);
       return;
     }
 
     cpmm.addMessageListener("Activity:FireSuccess", this);
     cpmm.addMessageListener("Activity:FireError", this);
 
     cpmm.sendAsyncMessage("Activity:Start",