Closed Bug 565887 Opened 15 years ago Closed 15 years ago

window.sizeToContent breaks layout in Fennec main window

Categories

(Firefox for Android Graveyard :: Extension Compatibility, defect)

defect
Not set
major

Tracking

(fennec1.1+)

VERIFIED FIXED
Tracking Status
fennec 1.1+ ---

People

(Reporter: ahoza, Assigned: mfinkle)

References

Details

(Whiteboard: rc1.1)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Build Identifier: Mozilla/5.0(X11;U;Linux armv7l;Nokia N900; en-US;rv:1.9.2.5pre) Gecko/20100513 Namoroka/3.6.5pre Fennec 1.1b2pre Improper display in Options->Add-ons->Options button on an installed add-on. If leaving Options menu, user cannot return unless he restarts browser. Reproducible: Always Steps to Reproduce: 1.Start Fennec 2.Go to Options->Add-ons. 3.Select an installed extension and then Options. 4. Select Options button to leave the menu. 5. While in page, pan screen to the left to access Options again. Actual Results: Controls and text are not entirely visible after executing step 4. (see screen capture attached) For step 5 - when panning screen to left, Options button (and all the rest of the buttons that should be available: Bookmark, Back, Forward) are not displayed. Expected Results: Add-on's options should be displayed properly. User should be able to return to Options, from the web page.
Attached image Screen capture
See attached screen capture.
Status: UNCONFIRMED → NEW
Component: General → Extension Compatibility
Ever confirmed: true
QA Contact: general → extension-compatibility
Summary: Cannot access Options menu after selecting Options button for an installed add-on → Cannot access Options menu after selecting Options button for an installed add-on (caused by Twitterbar)
Nominating this as blocking-fennec since it's a recommended add-on.
tracking-fennec: --- → ?
Whiteboard: RC1.1
I can update TwitterBar to work around this in order to avoid having this bug be a blocker if that would help. (Or is this bug actually a TwitterBar bug itself?)
(In reply to comment #4) > I can update TwitterBar to work around this in order to avoid having this bug > be a blocker if that would help. (Or is this bug actually a TwitterBar bug > itself?) Obviously that's a bug on the Fennec Front-End side, we should not let addons grow more than the allowed width. If we consider this bug as a blocker for 1.1, I can look at it.
Vivien, I think we should look for a fix to the <setting> code. I don't know if this should block though.
Whiteboard: RC1.1 → rc1.1
tracking-fennec: ? → 1.1+
I found that rotating the device to cause an orientation change fixed the problem. Digging into the problem, I found a "sizeToContent" in the TwitterBar options.js code. This seems to be the culprit.
To be clear, Fennec <setting> already has the proper crop= and flex= attributes on labels. This issue seems to happen entirely because of the "sizeToContent". Stubbing out the call fixed the problem.
Attached patch patchSplinter Review
This patch stubs out "sizeToContent" in the Fennec main window. Using it will report an error in the JS console. The error is not harmful, just a message to developers. We only need to do this in the Fennec main window. Also, I only saw the original issue on device, not on desktop. So for testing, you need a device.
Assignee: nobody → mark.finkle
Attachment #446514 - Flags: review?(21)
Updating the summary
Summary: Cannot access Options menu after selecting Options button for an installed add-on (caused by Twitterbar) → window.sizeToContent breaks layout in Fennec main window
Comment on attachment 446514 [details] [diff] [review] patch Could we not write the function on only one line?
Attachment #446514 - Flags: review?(21) → review+
(In reply to comment #7) > Digging into the problem, I found a "sizeToContent" in the TwitterBar > options.js code. This seems to be the culprit. Thanks for finding this; I've made the appropriate changes so that the next version of TwitterBar doesn't make this call in Fennec.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
verified FIXED on build: Mozilla/5.0 (X11; U; Linux armv7l; Nokia N900; en-US; rv:1.9.2.5pre) Gecko/20100521 Namoroka/3.6.5pre Fennec/1.1b2pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: