зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 74b125f29e23 (bug 717492)
This commit is contained in:
Родитель
b1397f2bfe
Коммит
fd20bf14d3
|
@ -24,16 +24,6 @@ let gToolbar = {
|
|||
let handler = function () self[aType]();
|
||||
|
||||
button.addEventListener("click", handler, false);
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
// Per default buttons lose focus after being clicked on Mac OS X.
|
||||
// So when the URL bar has focus and a toolbar button is clicked the
|
||||
// URL bar regains focus and the history pops up. We need to prevent
|
||||
// that by explicitly removing its focus.
|
||||
button.addEventListener("mousedown", function () {
|
||||
window.focus();
|
||||
}, false);
|
||||
#endif
|
||||
}, this);
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче