Bug 1382724 - Capture select and input click events; r=me

Capture click events for select and input elements to restore previous
behavior. This will always invoke helper prompts for those elements,
even if scripts stop the click event propagation. r=me for trivial
patch.

MozReview-Commit-ID: KOfjc58Zb0Y
This commit is contained in:
Jim Chen 2017-07-31 17:54:06 -04:00
Родитель 50fd0b7a62
Коммит af6781b3fc
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -56,8 +56,8 @@ PromptService.prototype = {
this.inputWidgetHelper = this.loadSubscript(
"InputWidgetHelper", "chrome://browser/content/InputWidgetHelper.js");
}
win.addEventListener("click", this.selectHelper); // non-capture
win.addEventListener("click", this.inputWidgetHelper); // non-capture
win.addEventListener("click", this.selectHelper, /* capture */ true);
win.addEventListener("click", this.inputWidgetHelper, /* capture */ true);
break;
}
}