1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-26 17:52:27 +01:00

Don't use documentURI for gu/gU.

--HG--
extra : rebase_source : 68b221e92b9234da8aebd6f0e19f89bd924956c1
This commit is contained in:
Kris Maglione
2014-11-03 20:23:29 -08:00
parent 8da04c5c1a
commit 03402bd411

View File

@@ -172,13 +172,13 @@ var Buffer = Module("Buffer", {
climbUrlPath: function climbUrlPath(count) {
let { dactyl } = this.modules;
let url = this.documentURI.clone();
let url = this.uri.clone();
dactyl.assert(url instanceof Ci.nsIURL);
while (count-- && url.path != "/")
url.path = url.path.replace(/[^\/]*\/*$/, "");
dactyl.assert(!url.equals(this.documentURI));
dactyl.assert(!url.equals(this.uri));
dactyl.open(url.spec);
},