зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
50fd0b7a62
Коммит
af6781b3fc
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче