commit 90d7f9e937a0f8f3adbaef882b4c51751b19713a
parent 70beccfc30e0d5d4b876ac9b1ddc328f2a7b0d15
Author: Simon Kornblith <simon@simonster.com>
Date: Mon, 12 Jan 2009 07:31:36 +0000
fix iframe bug introduced by r3987
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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 &&