mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 01:14:12 +01:00
Don't use documentURI for gu/gU.
--HG-- extra : rebase_source : 68b221e92b9234da8aebd6f0e19f89bd924956c1
This commit is contained in:
@@ -172,13 +172,13 @@ var Buffer = Module("Buffer", {
|
|||||||
climbUrlPath: function climbUrlPath(count) {
|
climbUrlPath: function climbUrlPath(count) {
|
||||||
let { dactyl } = this.modules;
|
let { dactyl } = this.modules;
|
||||||
|
|
||||||
let url = this.documentURI.clone();
|
let url = this.uri.clone();
|
||||||
dactyl.assert(url instanceof Ci.nsIURL);
|
dactyl.assert(url instanceof Ci.nsIURL);
|
||||||
|
|
||||||
while (count-- && url.path != "/")
|
while (count-- && url.path != "/")
|
||||||
url.path = url.path.replace(/[^\/]*\/*$/, "");
|
url.path = url.path.replace(/[^\/]*\/*$/, "");
|
||||||
|
|
||||||
dactyl.assert(!url.equals(this.documentURI));
|
dactyl.assert(!url.equals(this.uri));
|
||||||
dactyl.open(url.spec);
|
dactyl.open(url.spec);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user