mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
649652344e
commit
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")
|
||||
|
Loading…
Reference in New Issue
Block a user