Add ability to translate from iframes
This commit is contained in:
parent
227e393922
commit
b99bcff855
1 changed files with 11 additions and 2 deletions
|
@ -632,8 +632,17 @@ Zotero_Browser.Tab.prototype._searchFrames = function(rootDoc, searchDoc) {
|
||||||
var frames = rootDoc.getElementsByTagName("frame");
|
var frames = rootDoc.getElementsByTagName("frame");
|
||||||
for each(var frame in frames) {
|
for each(var frame in frames) {
|
||||||
if(frame.contentDocument &&
|
if(frame.contentDocument &&
|
||||||
(frame.contentDocument == searchDoc ||
|
(frame.contentDocument == searchDoc ||
|
||||||
this._searchFrames(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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue