Bug 828161 - Firefox OS cannot start up due to an exception: "Webapps.jsm: non-relative URI passed to resolveFromOrigin". r=mounir
authorGene Lian <clian@mozilla.com>
Wed, 09 Jan 2013 15:35:52 +0800
changeset 118132 7bce868864bf9d16ff59da3fb560b8016996ae44
parent 118131 564336aa34f6e002d5890275bf792ccb58a72163
child 118133 e349cfb9114f6124a600d811005c577b0f5eb5f3
child 118208 f36d1129aefbdc26ef93ed94f7f893baf2c22db9
push id24151
push userdbaron@mozilla.com
push dateWed, 09 Jan 2013 08:25:50 +0000
treeherdermozilla-central@7bce868864bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmounir
bugs828161
milestone21.0a1
first release with
nightly linux32
7bce868864bf / 21.0a1 / 20130109030942 / files
nightly linux64
7bce868864bf / 21.0a1 / 20130109030942 / files
nightly mac
7bce868864bf / 21.0a1 / 20130109030942 / files
nightly win32
7bce868864bf / 21.0a1 / 20130109030942 / files
nightly win64
7bce868864bf / 21.0a1 / 20130109030942 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 828161 - Firefox OS cannot start up due to an exception: "Webapps.jsm: non-relative URI passed to resolveFromOrigin". r=mounir
dom/apps/src/AppsUtils.jsm
--- a/dom/apps/src/AppsUtils.jsm
+++ b/dom/apps/src/AppsUtils.jsm
@@ -464,17 +464,17 @@ ManifestHelper.prototype = {
       return this._origin.resolve(entryPoints[aStartPoint].launch_path || "");
     }
 
     return null;
   },
 
   resolveFromOrigin: function(aURI) {
     // This should be enforced higher up, but check it here just in case.
-    if (!isAbsoluteURI(aURI)) {
+    if (isAbsoluteURI(aURI)) {
       throw new Error("Webapps.jsm: non-relative URI passed to resolveFromOrigin");
     }
     return this._origin.resolve(aURI);
   },
 
   fullAppcachePath: function() {
     let appcachePath = this._localeProp("appcache_path");
     return this._origin.resolve(appcachePath ? appcachePath : "");