forked from mirrors/gecko-dev
Backed out changeset d49759c153d3
This commit is contained in:
parent
189b16d6f6
commit
cd86a2435e
1 changed files with 3 additions and 0 deletions
|
|
@ -2299,6 +2299,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