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)
Firefox for Android Graveyard
Extension Compatibility
Tracking
(fennec1.1+)
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
fennec | 1.1+ | --- |
People
(Reporter: ahoza, Assigned: mfinkle)
References
Details
(Whiteboard: rc1.1)
Attachments
(2 files)
40.55 KB,
image/jpeg
|
Details | |
815 bytes,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
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.
Status: UNCONFIRMED → NEW
Component: General → Extension Compatibility
Ever confirmed: true
QA Contact: general → extension-compatibility
Updated•15 years ago
|
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)
Comment 3•15 years ago
|
||
Nominating this as blocking-fennec since it's a recommended add-on.
tracking-fennec: --- → ?
Updated•15 years ago
|
Whiteboard: RC1.1
Comment 4•15 years ago
|
||
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?)
Comment 5•15 years ago
|
||
(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.
Assignee | ||
Comment 6•15 years ago
|
||
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
Updated•15 years ago
|
tracking-fennec: ? → 1.1+
Assignee | ||
Comment 7•15 years ago
|
||
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.
Assignee | ||
Comment 8•15 years ago
|
||
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.
Assignee | ||
Comment 9•15 years ago
|
||
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)
Assignee | ||
Comment 10•15 years ago
|
||
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 11•15 years ago
|
||
Comment on attachment 446514 [details] [diff] [review]
patch
Could we not write the function on only one line?
Attachment #446514 -
Flags: review?(21) → review+
Comment 12•15 years ago
|
||
(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.
Assignee | ||
Comment 13•15 years ago
|
||
pushed to m-b:
http://hg.mozilla.org/mobile-browser/rev/fecde29347e9
pushed to m-1.1:
http://hg.mozilla.org/releases/mobile-1.1/rev/c5c9537e9dd8
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 14•15 years ago
|
||
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.
Description
•