Backed out changeset 998c4e53c1f8 (bug 1137285)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Wed, 15 Apr 2015 17:23:14 +0200
changeset 239340 4d44daac8101c6f1691180462eccb31f7c6e8814
parent 239339 eedb2b6f43dba22736d00cf7f9d736beeca36516
child 239341 69a16a89c8bfa7697b5c8e41f1a6a5abee930643
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)
bugs1137285
milestone40.0a1
backs out998c4e53c1f8aa60109d752d65e775e286ba0eaf
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
Backed out changeset 998c4e53c1f8 (bug 1137285)
toolkit/devtools/server/actors/actor-registry.js
--- a/toolkit/devtools/server/actors/actor-registry.js
+++ b/toolkit/devtools/server/actors/actor-registry.js
@@ -84,16 +84,21 @@ 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 = "