remove all styles from the old tabs toolbar
This commit is contained in:
parent
8a1cab009d
commit
bba8799933
@ -1219,15 +1219,7 @@ TreeStyleTabService.overrideExtensionsDelayed = function TSTService_overrideExte
|
|||||||
{
|
{
|
||||||
case 'beforecustomization':
|
case 'beforecustomization':
|
||||||
titlebar.removeEventListener('DOMAttrModified', this, true);
|
titlebar.removeEventListener('DOMAttrModified', this, true);
|
||||||
personalTitlebar.classList.remove(TreeStyleTabService.kTABBAR_TOOLBAR);
|
gBrowser.treeStyleTab.destroyTabStrip(personalTitlebar);
|
||||||
personalTitlebar.style.top = '';
|
|
||||||
personalTitlebar.style.left = '';
|
|
||||||
personalTitlebar.style.width = '';
|
|
||||||
personalTitlebar.style.height = '';
|
|
||||||
personalTitlebar.removeAttribute('height');
|
|
||||||
personalTitlebar.removeAttribute('width');
|
|
||||||
personalTitlebar.removeAttribute('ordinal');
|
|
||||||
personalTitlebar.removeAttribute('orient');
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'aftercustomization':
|
case 'aftercustomization':
|
||||||
|
@ -1737,16 +1737,25 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
this.removeTabStripAttribute('ordinal');
|
this.removeTabStripAttribute('ordinal');
|
||||||
this.removeTabStripAttribute('orient');
|
this.removeTabStripAttribute('orient');
|
||||||
|
|
||||||
|
this.destroyTabStrip(this.ownerToolbar);
|
||||||
|
|
||||||
this._endListenTabbarEvents();
|
this._endListenTabbarEvents();
|
||||||
|
|
||||||
this.tabbarDNDObserver.endListenEvents();
|
this.tabbarDNDObserver.endListenEvents();
|
||||||
|
|
||||||
this.ownerToolbar.classList.remove(this.kTABBAR_TOOLBAR);
|
|
||||||
|
|
||||||
this.updateCustomizedTabsToolbar();
|
this.updateCustomizedTabsToolbar();
|
||||||
|
|
||||||
this.startRendering();
|
this.startRendering();
|
||||||
},
|
},
|
||||||
|
destroyTabStrip : function TSTBrowser_destroyTabStrip(aTabStrip)
|
||||||
|
{
|
||||||
|
aTabStrip.classList.remove(this.kTABBAR_TOOLBAR);
|
||||||
|
aTabStrip.style.top = aTabStrip.style.left = aTabStrip.style.width = aTabStrip.style.height = '';
|
||||||
|
aTabStrip.removeAttribute('height');
|
||||||
|
aTabStrip.removeAttribute('width');
|
||||||
|
aTabStrip.removeAttribute('ordinal');
|
||||||
|
aTabStrip.removeAttribute('orient');
|
||||||
|
},
|
||||||
|
|
||||||
syncReinitTabbar : function TSTBrowser_syncReinitTabbar()
|
syncReinitTabbar : function TSTBrowser_syncReinitTabbar()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user