]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/modules/contexts.jsm
Import 1.0 supporting Firefox up to 14.*
[dactyl.git] / common / modules / contexts.jsm
index 468193659893eb51ef2d84fead71f676b2ba1c92..6d32fb8358074121eb8a7af5e77263e05f19d8a8 100644 (file)
@@ -222,7 +222,10 @@ var Contexts = Module("contexts", {
                 util.trapErrors("onUnload", self);
         }
         else {
-            self = args && !isArray(args) ? args : newContext.apply(null, args || [userContext]);
+            let params = Array.slice(args || [userContext]);
+            params[2] = params[2] || File(file).URI.spec;
+
+            self = args && !isArray(args) ? args : newContext.apply(null, params);
             update(self, {
                 NAME: Const(id),