зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1257178 - Prevent "this._input is undefined" exception when developer toolbar is hidden early. r=jwalker
This commit is contained in:
Родитель
44071a319a
Коммит
4025088fcd
|
@ -504,6 +504,10 @@ DeveloperToolbar.prototype.show = function(focus) {
|
|||
// If the toolbar was just inserted, the <textbox> may still have
|
||||
// its binding in process of being applied and not be focusable yet
|
||||
let waitForBinding = () => {
|
||||
// Bail out if the toolbar has been destroyed in the meantime
|
||||
if (!this._input) {
|
||||
return;
|
||||
}
|
||||
// mInputField is a xbl field of <xul:textbox>
|
||||
if (typeof this._input.mInputField != "undefined") {
|
||||
this._input.focus();
|
||||
|
|
Загрузка…
Ссылка в новой задаче