From 4b46d967bde6dcb27851905c5777a5c3182f6444 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sat, 6 Jun 2009 14:46:30 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20chrome://liberator/content/buffer.js:1797?= =?UTF-8?q?:=20TypeError:=C2=A0win.document.body=20is=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/content/buffer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/content/buffer.js b/common/content/buffer.js index 2f84a274..6966db19 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -1794,8 +1794,11 @@ function Marks() //{{{ add: function (mark, silent) { let win = window.content; + let doc = win.document; - if (win.document.body.localName.toLowerCase() == "frameset") + if (!doc.body) + return; + if (doc.body instanceof HTMLFrameSetElement) { if (!silent) liberator.echoerr("Marks support for frameset pages not implemented yet");