browser(firefox): fix input composition when TIP is stolen by user (#10238)

When firefox is automated + interacted with manually, input composition
might get stolen from Text Input Processor.

Re-requiring TIP every time seems to fix this.

References #5460
This commit is contained in:
Andrey Lushnikov 2021-11-11 10:23:00 -08:00 committed by GitHub
parent 3a64da7a54
commit 0fa8073ab6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -1,2 +1,2 @@
1303
Changed: yurys@chromium.org Thu 04 Nov 2021 12:26:04 PM PDT
1304
Changed: aslushnikov@gmail.com Wed Nov 10 21:36:03 HST 2021

View file

@ -522,8 +522,8 @@ class Frame {
textInputProcessor() {
if (!this._textInputProcessor) {
this._textInputProcessor = Cc["@mozilla.org/text-input-processor;1"].createInstance(Ci.nsITextInputProcessor);
this._textInputProcessor.beginInputTransactionForTests(this._docShell.DOMWindow);
}
this._textInputProcessor.beginInputTransactionForTests(this._docShell.DOMWindow);
return this._textInputProcessor;
}

View file

@ -1,2 +1,2 @@
1304
Changed: lushnikov@chromium.org Fri Nov 5 12:27:32 HST 2021
Changed: lushnikov@chromium.org Wed Nov 10 21:36:03 HST 2021

View file

@ -522,8 +522,8 @@ class Frame {
textInputProcessor() {
if (!this._textInputProcessor) {
this._textInputProcessor = Cc["@mozilla.org/text-input-processor;1"].createInstance(Ci.nsITextInputProcessor);
this._textInputProcessor.beginInputTransactionForTests(this._docShell.DOMWindow);
}
this._textInputProcessor.beginInputTransactionForTests(this._docShell.DOMWindow);
return this._textInputProcessor;
}