mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 981363 - Don't automove when the DOCUMENT_LOAD_COMPLETE is emitted for the actual document. r=yzenevich
This commit is contained in:
parent
dd15b058d1
commit
c0c13a4fbb
@ -266,7 +266,8 @@ this.EventManager.prototype = {
|
||||
case Events.DOCUMENT_LOAD_COMPLETE:
|
||||
{
|
||||
let position = this.contentControl.vc.position;
|
||||
if (position && Utils.isInSubtree(position, aEvent.accessible)) {
|
||||
if (aEvent.accessible === aEvent.accessibleDocument ||
|
||||
(position && Utils.isInSubtree(position, aEvent.accessible))) {
|
||||
// Do not automove into the document if the virtual cursor is already
|
||||
// positioned inside it.
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user