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:
@@ -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);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user