зеркало из https://github.com/mozilla/gecko-dev.git
Bug 757945 - Can't open the page context menu when inspecting (highlighter = unlocked) on Windows. r=paul.
This commit is contained in:
Родитель
6ebed5316f
Коммит
6175ad6d3e
|
@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче