From b99bcff855f324240f35d131a054fd737e267a49 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 5 May 2009 00:02:18 +0000 Subject: [PATCH] Add ability to translate from iframes --- chrome/content/zotero/browser.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index 40bb58e113..49b053237b 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -632,8 +632,17 @@ Zotero_Browser.Tab.prototype._searchFrames = function(rootDoc, searchDoc) { var frames = rootDoc.getElementsByTagName("frame"); for each(var frame in frames) { if(frame.contentDocument && - (frame.contentDocument == searchDoc || - this._searchFrames(frame.contentDocument, searchDoc))) { + (frame.contentDocument == searchDoc || + this._searchFrames(frame.contentDocument, searchDoc))) { + return true; + } + } + + var frames = rootDoc.getElementsByTagName("iframe"); + for each(var frame in frames) { + if(frame.contentDocument && + (frame.contentDocument == searchDoc || + this._searchFrames(frame.contentDocument, searchDoc))) { return true; } }