From f78a7174e3306acae4568ad7850eed466520c056 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 21 Oct 2010 19:54:27 -0400 Subject: [PATCH] Small change to Browser.climbUrlPath. --HG-- extra : rebase_source : f9f68aff83c51c28812761306ad31cf8a9205d3a --- common/content/browser.js | 7 ++----- 1 file 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(/[^\/]+\/?$/, "")