From abd42d741c46bdd60cbe38bb71c7e159ff7ca6a0 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 1 Sep 2007 15:57:22 +0000 Subject: [PATCH] use document.location.href for buffer.URL rather than document.URL since the latter is undefined for XUL documents --- chrome/content/vimperator/buffers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/vimperator/buffers.js b/chrome/content/vimperator/buffers.js index 794de5db..bdb68bc9 100644 --- a/chrome/content/vimperator/buffers.js +++ b/chrome/content/vimperator/buffers.js @@ -115,7 +115,9 @@ function Buffer() //{{{ this.__defineGetter__("URL", function() { - return window.content.document.URL; + // TODO: .URL is not defined for XUL documents + //return window.content.document.URL; + return window.content.document.location.href; }); this.__defineGetter__("pageHeight", function()