1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 00:17:58 +01:00

use document.location.href for buffer.URL rather than document.URL since the

latter is undefined for XUL documents
This commit is contained in:
Doug Kearns
2007-09-01 15:57:22 +00:00
parent 0fd4d5530d
commit abd42d741c

View File

@@ -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()