mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 757945 - Can't open the page context menu when inspecting (highlighter = unlocked) on Windows. r=paul.
This commit is contained in:
parent
8500bf9d6c
commit
17aa90c7b9
@ -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);
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user