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
Родитель 649652344e
Коммит f878dc5ad8
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

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