Closed
Bug 841363
Opened 11 years ago
Closed 11 years ago
DuckDuckGo search layout is broken
Categories
(Core :: Layout, defect)
Tracking
()
VERIFIED
FIXED
mozilla23
Tracking | Status | |
---|---|---|
firefox19 | --- | unaffected |
firefox20 | --- | unaffected |
firefox21 | + | fixed |
firefox22 | --- | fixed |
firefox23 | --- | verified |
fennec | 21+ | --- |
People
(Reporter: aaronmt, Assigned: roc)
References
()
Details
(Keywords: regression, reproducible, verifyme, Whiteboard: [webcompat])
Attachments
(2 files, 1 obsolete file)
131.52 KB,
image/png
|
Details | |
3.97 KB,
patch
|
MatsPalmgren_bugz
:
review+
bajaj
:
approval-mozilla-aurora+
bajaj
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
See screenshot. http://www.duckduckgo.com
Reporter | ||
Updated•11 years ago
|
Whiteboard: [webcompat]
Reporter | ||
Updated•11 years ago
|
Component: General → Layout
Product: Firefox for Android → Core
Reporter | ||
Updated•11 years ago
|
Comment 1•11 years ago
|
||
Steps to reproduce? Because I see nothing like what you see, on my Mac, even if I make the window very small. Is this Android-specific?
Updated•11 years ago
|
tracking-firefox21:
--- → ?
Reporter | ||
Comment 2•11 years ago
|
||
Steps? Just load http://duckduckgo.com on an Android device. This seems Android specific, I don't see this on my FxOS (Unagi) device (b2g18-beta 02/14). CC'ing :kats to see if he sees this too.
Updated•11 years ago
|
tracking-fennec: ? → 21+
Comment 3•11 years ago
|
||
I see this too on-device. Doesn't happen on desktop FF in responsive view. Regression range would be handy. I wonder if this was caused by the font change in Fennec.
Reporter | ||
Comment 4•11 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=954fc89373b8&tochange=7e9f3cc6cc0a Looks like bug 833542, or 832788.
Keywords: regressionwindow-wanted → reproducible
Updated•11 years ago
|
Assignee: nobody → roc
Reporter | ||
Updated•11 years ago
|
status-firefox22:
--- → affected
Reporter | ||
Updated•11 years ago
|
status-firefox20:
--- → unaffected
Comment 5•11 years ago
|
||
Adding ni on :roc to help with next steps here,as this could be a regression from bug 833542, or 832788. roc, any ideas here as this is a web compat issue and we do not know the number of sites impacted out there due to limited firefox mobile population we have on aurora/nightly ?
Flags: needinfo?(roc)
Assignee | ||
Comment 6•11 years ago
|
||
I don't know of any other sites impacted. Likely as not, duckduckgo just serves us something strange that depends on the bug we fixed in bug 833542. I spent some time looking into this but didn't find a way to grab and save the content duckduckgo serves to mobile FF, so was unable to create a minimized testcase.
Flags: needinfo?(roc)
Reporter | ||
Comment 7•11 years ago
|
||
For the position fixed footer issue also showing up on DuckDuckGo I filed bug 858181
Reporter | ||
Comment 8•11 years ago
|
||
Saved DDG content over http://people.mozilla.com/~atrain/mobile/tests/DuckDuckGo.html http://people.mozilla.com/~atrain/mobile/tests/DuckDuckGo_files/
Assignee | ||
Comment 9•11 years ago
|
||
Thanks. The underlying problem is that scrollWidth on an element with zero height does not take the element's own width into account as it should. This is because its padding-box is a zero-height rectangle and is ignored by the union operations that build that scrollable overflow area.
Assignee | ||
Comment 10•11 years ago
|
||
A better fix would be to make all ScrollableOverflow area calculations use UnionRectEdges. That's a much bigger change that we wouldn't want to take on branches. I've had a crack at it and it's not that hard, but I'll put it in a separate bug.
Attachment #734907 -
Flags: review?(matspal)
Comment 11•11 years ago
|
||
Comment on attachment 734907 [details] [diff] [review] fix r=mats
Attachment #734907 -
Flags: review?(matspal) → review+
Comment 12•11 years ago
|
||
Original landing: https://hg.mozilla.org/integration/mozilla-inbound/rev/64abee9b00f1 Backed out as the likely cause of test_bug375003-1.html failure: https://hg.mozilla.org/integration/mozilla-inbound/rev/4828dd617269
Assignee | ||
Comment 13•11 years ago
|
||
Thanks, sorry. The test failure revealed a real bug in the patch. The problem is that in GetScrollRectSizeForOverflowVisibleFrame, there are no children so nsLayoutUtils::UnionChildOverflow produces an empty rect 0,0,0,0, which we then combine with the frame's padding-rect using UnionEdges. When the padding-rect x,y is > 0, this extends the rectangle to include the point at 0,0. This is not what we want.
Assignee | ||
Comment 14•11 years ago
|
||
Attachment #734907 -
Attachment is obsolete: true
Attachment #737927 -
Flags: review?(matspal)
Comment 15•11 years ago
|
||
Comment on attachment 737927 [details] [diff] [review] fix v2 r=mats
Attachment #737927 -
Flags: review?(matspal) → review+
Assignee | ||
Comment 16•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/929fcbfd5618
Comment 17•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/929fcbfd5618
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Assignee | ||
Comment 18•11 years ago
|
||
Comment on attachment 737927 [details] [diff] [review] fix v2 [Approval Request Comment] Bug caused by (feature/regressing bug #): 833542 User impact if declined: broken layout on DuckDuckGo Testing completed (on m-c, etc.): just landed Risk to taking this patch (and alternatives if risky): I think the risk is low because using scrollWidth/scrollHeight on non-scrollable elements with no children sounds very rare, and that's all that's affected here String or IDL/UUID changes made by this patch: none
Attachment #737927 -
Flags: approval-mozilla-beta?
Attachment #737927 -
Flags: approval-mozilla-aurora?
Comment 19•11 years ago
|
||
Comment on attachment 737927 [details] [diff] [review] fix v2 Request to mobile QA to help with verification here once this lands on branches.
Attachment #737927 -
Flags: approval-mozilla-beta?
Attachment #737927 -
Flags: approval-mozilla-beta+
Attachment #737927 -
Flags: approval-mozilla-aurora?
Attachment #737927 -
Flags: approval-mozilla-aurora+
Comment 20•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/27f1091756b7 https://hg.mozilla.org/releases/mozilla-beta/rev/e3ff97187d14
Reporter | ||
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•