зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1875354 - Don't create an unnecessary user activation from select when not firing the input event. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D214933
This commit is contained in:
Родитель
a08d6a67a0
Коммит
35ac0fc195
|
@ -259,11 +259,10 @@ SelectContentHelper.prototype = {
|
|||
|
||||
// Fire input and change events when selected option changes
|
||||
{
|
||||
let handlingUserInput = win.windowUtils.setHandlingUserInput(true);
|
||||
let changed = this.initialSelection !== selectedOption;
|
||||
let handlingUserInput = win.windowUtils.setHandlingUserInput(changed);
|
||||
try {
|
||||
element.userFinishedInteracting(
|
||||
this.initialSelection !== selectedOption
|
||||
);
|
||||
element.userFinishedInteracting(changed);
|
||||
} finally {
|
||||
handlingUserInput.destruct();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче