Bug 757945 - Can't open the page context menu when inspecting (highlighter = unlocked) on Windows. r=paul.

This commit is contained in:
Johan Charlez 2012-05-30 19:45:23 -07:00
Родитель 6ebed5316f
Коммит 6175ad6d3e
1 изменённых файлов: 8 добавлений и 6 удалений

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

@ -871,9 +871,9 @@ Highlighter.prototype = {
let win = aEvent.target.ownerDocument.defaultView;
this.lock();
win.focus();
aEvent.preventDefault();
aEvent.stopPropagation();
}
aEvent.preventDefault();
aEvent.stopPropagation();
},
/**
@ -884,10 +884,12 @@ Highlighter.prototype = {
*/
handleMouseMove: function Highlighter_handleMouseMove(aEvent)
{
let element = LayoutHelpers.getElementFromPoint(aEvent.target.ownerDocument,
aEvent.clientX, aEvent.clientY);
if (element && element != this.node) {
this.highlight(element);
if (aEvent.target.ownerDocument) {
let element = LayoutHelpers.getElementFromPoint(aEvent.target.ownerDocument,
aEvent.clientX, aEvent.clientY);
if (element && element != this.node) {
this.highlight(element);
}
}
},
};