forked from mirrors/gecko-dev
merge
This commit is contained in:
commit
bd39509373
1 changed files with 3 additions and 0 deletions
|
|
@ -2294,6 +2294,9 @@
|
||||||
if (!event.isTrusted)
|
if (!event.isTrusted)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (this.mTabs.length == 1)
|
||||||
|
return;
|
||||||
|
|
||||||
var tab = this._getTabForContentWindow(event.target);
|
var tab = this._getTabForContentWindow(event.target);
|
||||||
if (tab) {
|
if (tab) {
|
||||||
this.removeTab(tab);
|
this.removeTab(tab);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue