mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 801703: iframe elements instead of using window.frames; r=mdas
This commit is contained in:
parent
b86ebcb4f0
commit
8207fffb4f
@ -738,10 +738,10 @@ function switchToFrame(msg) {
|
||||
if (msg.json.element != undefined) {
|
||||
if (elementManager.seenItems[msg.json.element] != undefined) {
|
||||
let wantedFrame = elementManager.getKnownElement(msg.json.element, curWindow); //HTMLIFrameElement
|
||||
let numFrames = curWindow.frames.length;
|
||||
for (let i = 0; i < numFrames; i++) {
|
||||
if (curWindow.frames[i].frameElement == wantedFrame) {
|
||||
curWindow = curWindow.frames[i];
|
||||
let frames = curWindow.document.getElementsByTagName("iframe");
|
||||
for (let i = 0; i < frames.length; i++) {
|
||||
if (frames[i] == wantedFrame) {
|
||||
curWindow = frames[i];
|
||||
curWindow.focus();
|
||||
sendOk();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user