diff options
author | Kris Maglione <maglione.k@gmail.com> | 2010-10-21 19:54:27 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2010-10-21 19:54:27 -0400 |
commit | f78a7174e3306acae4568ad7850eed466520c056 (patch) | |
tree | 2d8cdf5d6473bafa0f25219f5dd31181c4bc3231 /common/content/browser.js | |
parent | 7f61f4984192a1d551f8a1ca1cf3d1197c5df226 (diff) | |
download | pentadactyl-f78a7174e3306acae4568ad7850eed466520c056.tar.gz |
Small change to Browser.climbUrlPath.
--HG--
extra : rebase_source : f9f68aff83c51c28812761306ad31cf8a9205d3a
Diffstat (limited to 'common/content/browser.js')
-rw-r--r-- | common/content/browser.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/content/browser.js b/common/content/browser.js index 1a627062..a931b819 100644 --- a/common/content/browser.js +++ b/common/content/browser.js @@ -14,11 +14,8 @@ const Browser = Module("browser", { }, { climbUrlPath: function (count) { - try { - var url = util.newURI(buffer.URL).QueryInterface(Ci.nsIURL); - } - catch (e) {} - dactyl.assert(url); + let url = util.newURI(buffer.URL); + dactyl.assert(url instanceof Ci.nsIURL); while (count-- && url.path != "/") url.path = url.path.replace(/[^\/]+\/?$/, "") |