commit b99bcff855f324240f35d131a054fd737e267a49 parent 227e393922493a9fdba26641df6afbce685d3c54 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 5 May 2009 00:02:18 +0000 Add ability to translate from iframes Diffstat:
| M | 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 @@ -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; } }