Bug 1137285 - Allow ressource uri for dynamically registered actors. r=honza
☠☠ backed out by 4d44daac8101 ☠ ☠
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 15 Apr 2015 13:55:29 +0200
changeset 239324 998c4e53c1f8aa60109d752d65e775e286ba0eaf
parent 239323 120d272971a6f3746e701744694d387b14ced429
child 239325 3570dbae06e2c9206a7d99709c209bacc56b537b
push id28589
push userryanvm@gmail.com
push dateWed, 15 Apr 2015 19:13:10 +0000
treeherdermozilla-central@24ccca4707eb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershonza
bugs1137285
milestone40.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 1137285 - Allow ressource uri for dynamically registered actors. r=honza
toolkit/devtools/server/actors/actor-registry.js
--- a/toolkit/devtools/server/actors/actor-registry.js
+++ b/toolkit/devtools/server/actors/actor-registry.js
@@ -84,21 +84,16 @@ exports.ActorRegistryActor = ActorRegist
 function request(uri) {
   return new Promise((resolve, reject) => {
     try {
       uri = Services.io.newURI(uri, null, null);
     } catch (e) {
       reject(e);
     }
 
-    if (uri.scheme != "resource") {
-      reject(new Error(
-        "Can only register actors whose URI scheme is 'resource'."));
-    }
-
     NetUtil.asyncFetch({
       uri,
       loadUsingSystemPrincipal: true,
      }, (stream, status, req) => {
       if (!components.isSuccessCode(status)) {
         reject(new Error("Request failed with status code = "
                          + status
                          + " after NetUtil.asyncFetch for url = "