From c820c29163c30847f8929d06fe559bd6fddb5c40 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 1 Sep 2007 15:57:05 +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()