зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1251863 - Browser Console focuses wrong window. r=lclark
This commit is contained in:
Родитель
89043461bf
Коммит
f4e9875565
|
@ -589,11 +589,13 @@ WebConsole.prototype = {
|
|||
}
|
||||
|
||||
let onDestroy = Task.async(function*() {
|
||||
try {
|
||||
yield this.target.activeTab.focus()
|
||||
}
|
||||
catch (ex) {
|
||||
// Tab focus can fail if the tab or target is closed.
|
||||
if (!this._browserConsole) {
|
||||
try {
|
||||
yield this.target.activeTab.focus();
|
||||
}
|
||||
catch (ex) {
|
||||
// Tab focus can fail if the tab or target is closed.
|
||||
}
|
||||
}
|
||||
|
||||
let id = WebConsoleUtils.supportsString(this.hudId);
|
||||
|
|
Загрузка…
Ссылка в новой задаче