зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1425033 - Fix frame handling in FormAssistant; r=me
Remove the invalid `content` reference when traversing the frame tree; Checking for `frameElement` should be enough. r=me for trivial patch.
This commit is contained in:
Родитель
3370543cbd
Коммит
69413f980c
|
@ -372,7 +372,7 @@ var FormAssistant = {
|
|||
let r = aElement.getBoundingClientRect();
|
||||
|
||||
// step out of iframes and frames, offsetting scroll values
|
||||
for (let frame = aElement.ownerGlobal; frame.frameElement && frame != content;
|
||||
for (let frame = aElement.ownerGlobal; frame.frameElement;
|
||||
frame = frame.parent) {
|
||||
// adjust client coordinates' origin to be top left of iframe viewport
|
||||
let rect = frame.frameElement.getBoundingClientRect();
|
||||
|
|
Загрузка…
Ссылка в новой задаче