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 &&