diff options
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(/[^\/]+\/?$/, "") |