зеркало из https://github.com/mozilla/gecko-dev.git
Bug 615152 - WindowDraggingElement should not assume that event targets are in the same window as its element. r=enndeakin, a=mossop
This commit is contained in:
Родитель
649652344e
Коммит
f878dc5ad8
|
@ -63,6 +63,11 @@ WindowDraggingElement.prototype = {
|
|||
return false;
|
||||
|
||||
let target = aEvent.originalTarget, parent = aEvent.originalTarget;
|
||||
|
||||
// The target may be inside an embedded iframe or browser. (bug 615152)
|
||||
if (target.ownerDocument.defaultView != this._window)
|
||||
return false;
|
||||
|
||||
while (parent != this._elem) {
|
||||
let mousethrough = parent.getAttribute("mousethrough");
|
||||
if (mousethrough == "always")
|
||||
|
|
Загрузка…
Ссылка в новой задаче