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:
Drew Willcoxon 2011-01-11 15:02:55 -08:00
parent 649652344e
commit f878dc5ad8

View File

@ -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")