Closed
Bug 271422
Opened 20 years ago
Closed 19 years ago
[FIXr]Main content appears in incorrect place, reload cures the problem
Categories
(Core :: Layout, defect, P1)
Core
Layout
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha6
People
(Reporter: bugzilla, Assigned: bzbarsky)
References
()
Details
(Keywords: testcase)
Attachments
(3 files, 3 obsolete files)
54.07 KB,
image/gif
|
Details | |
101 bytes,
text/html
|
Details | |
5.81 KB,
patch
|
Details | Diff | Splinter Review |
Build: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041122 If you visit http://egon.blogharbor.com/ you will see that (sometimes) the main content is not visible. In 1.7 branch the content appears, but at the bottom of the floated menu to the left. Steps to reproduce: 1. go to http://egon.blogharbor.com/ 2. Notice content missing, if not press reload a few times Minimzed testcase coming...
Reporter | ||
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
100% reproducible testcase using hyatts javascript trick. Orange menu should appear to the right of the menu div.
Reporter | ||
Comment 3•20 years ago
|
||
typo, should be "Orange content div should.."
Assignee | ||
Comment 4•20 years ago
|
||
Attachment #166866 -
Attachment is obsolete: true
Assignee | ||
Comment 5•20 years ago
|
||
bernd, any idea what's up here? I do see the AppendFrames() call in ContentAppended() happen, which puts the anonymous frames in place, but the frame dump shows that the body's pseudo-block frame (kid of the pseudo-cell) has no children....
Assignee | ||
Comment 6•20 years ago
|
||
OK, looks like the XXX comment I added in ConstructFrameByDisplayType in the block case is relevant here. Removing that part of the code makes this work...
Assignee | ||
Comment 7•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Misc Code
Ever confirmed: true
QA Contact: core.layout → core.layout.misc-code
Assignee | ||
Comment 8•20 years ago
|
||
Comment on attachment 167975 [details] [diff] [review] Patch Bernd, Robert, could you review? The first two hunks are just fixes to prevent asserts firing incorrectly on out-of-flow selects and fieldsets. The last hunk fixes this bug by removing the incorrect code that prevented a block kid of a table that's not being constructed via ConstructTableForeignFrame from ending up in the frame tree (because the old pseudo items had no frames, so looked empty, even though it had nonempty childlists, and the block wasn't (and shouldn't have been) placed in the child list of the new pseudo items).
Attachment #167975 -
Flags: superreview?(roc)
Attachment #167975 -
Flags: review?(bernd_mozilla)
Boris why is this done for blockframes but not not the inline frames above (I am just curious)
Assignee | ||
Comment 10•20 years ago
|
||
Hmm... We shouldn't do it for inlines either. I'll remove that. The only reason it doesn't currently break for inlines because ConstructInline doesn't place things in the frame list.
Assignee | ||
Comment 11•20 years ago
|
||
Note that ProcessInlineChildren does save the pseudo state, so we're ok there.
Attachment #167975 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #168215 -
Flags: superreview?(roc)
Attachment #168215 -
Flags: review?(bernd_mozilla)
Assignee | ||
Updated•20 years ago
|
Attachment #167975 -
Flags: superreview?(roc)
Attachment #167975 -
Flags: superreview-
Attachment #167975 -
Flags: review?(bernd_mozilla)
Attachment #167975 -
Flags: review-
Attachment #168215 -
Flags: review?(bernd_mozilla) → review+
Comment on attachment 168215 [details] [diff] [review] Updated patch possibly we should have an nsLayoutUtils method "GetRealFrameFor" (or something like that) that gets the out of flow frame if the input frame is a placeholder
Attachment #168215 -
Flags: superreview?(roc) → superreview+
Assignee | ||
Comment 13•20 years ago
|
||
I'll probably do that before checking in....
Assignee: nobody → bzbarsky
Priority: -- → P1
Summary: Main content appears in incorrect place, reload cures the problem → [FIXr]Main content appears in incorrect place, reload cures the problem
Target Milestone: --- → mozilla1.8alpha6
Assignee | ||
Comment 14•20 years ago
|
||
Actually, I will do it as a separate patch. We already have some "get real frame" methods scattered about the tree, and consolidating them will be something that would actually need review.
Assignee | ||
Comment 15•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #168215 -
Attachment is obsolete: true
Assignee | ||
Comment 16•20 years ago
|
||
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 17•20 years ago
|
||
Bug 276954 filed on the issue mentioned in comment 12.
Reporter | ||
Comment 18•19 years ago
|
||
With trunk build 20050225, Windows XP I can still reproduce attachment 166866 [details].
Content div appears on the bottom. Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 19•19 years ago
|
||
The fix was for it not appearing at all. That's what was reported as a trunk bug in comment 0. Appearing at the bottom is bug 148810.
Status: REOPENED → RESOLVED
Closed: 20 years ago → 19 years ago
Resolution: --- → FIXED
Comment 20•18 years ago
|
||
The minimized testcase shows that "Content - this will appear at the bottom" on the top of the page. Is that correct?
Assignee | ||
Comment 21•18 years ago
|
||
Alfred, see comment 19.
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•