tab.style.maxWidth set by add-ons should be respected

RESOLVED WONTFIX

Status

()

defect
RESOLVED WONTFIX
8 years ago
5 years ago

People

(Reporter: tabutils+bugzilla, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:6.0a1) Gecko/20110413 Firefox/6.0a1
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:6.0a1) Gecko/20110413 Firefox/6.0a1

http://mxr.mozilla.org/mozilla-central/source/browser/base/content/tabbrowser.xml#2919

2919       <method name="_unlockTabSizing">
2920         <body><![CDATA[
2921           this.tabbrowser.removeEventListener("mousemove", this, false);
2922           window.removeEventListener("mouseout", this, false);
2923           if (this._hasTabTempMaxWidth) {
2924             this._hasTabTempMaxWidth = false;
2925             let tabs = this.tabbrowser.visibleTabs;
2926             for (let i = 0; i < tabs.length; i++)
2927               tabs[i].style.maxWidth = "";
2928           }
2929           if (this._usingClosingTabsSpacer) {
2930             this._usingClosingTabsSpacer = false;
2931             this._closingTabsSpacer.style.width = 0;
2932           }
2933         ]]></body>
2934       </method>

Reproducible: Always
(Reporter)

Updated

8 years ago
Blocks: 465086

Comment 1

8 years ago
I don't think this is something we plan to support in an add-ons API.

Add-ons that want to mess with tab resizing behavior will have to override the functions _lockTabSizing and _unlockTabSizing.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → WONTFIX
(Reporter)

Comment 2

8 years ago
I don't think some add-on will want to mess with tab resizing behavior, but tab.style.maxWidth could be used to dimension tabs from the default 100-250px.
You need to log in before you can comment on or make changes to this bug.