Detect temporary group tabs ignoring session history

This commit is contained in:
YUKI Hiroshi 2013-08-21 13:08:56 +09:00
parent 2cd526253e
commit 4fe157dec2

View File

@ -2197,10 +2197,10 @@ var TreeStyleTabBase = {
); );
}, },
isTemporaryGroupTab : function TSTBase_isTemporaryGroupTab(aTab, aLazyCheck) isTemporaryGroupTab : function TSTBase_isTemporaryGroupTab(aTab)
{ {
return ( return (
this.isGroupTab(aTab, aLazyCheck) && this.isGroupTab(aTab, true) &&
/.*[\?&;]temporary=(?:1|yes|true)/i.test(aTab.linkedBrowser.currentURI.spec) /.*[\?&;]temporary=(?:1|yes|true)/i.test(aTab.linkedBrowser.currentURI.spec)
); );
}, },