From 90d7f9e937a0f8f3adbaef882b4c51751b19713a Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 12 Jan 2009 07:31:36 +0000 Subject: [PATCH] fix iframe bug introduced by r3987 --- chrome/content/zotero/browser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index 374faf27a7..bfde89add3 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -612,6 +612,7 @@ Zotero_Browser.Tab.prototype.detectTranslators = function(rootDoc, doc) { * searches for a document in all of the frames of a given document */ Zotero_Browser.Tab.prototype._searchFrames = function(rootDoc, searchDoc) { + if(rootDoc == searchDoc) return true; var frames = rootDoc.getElementsByTagName("frame"); for each(var frame in frames) { if(frame.contentDocument &&