Closed Bug 98261 Opened 23 years ago Closed 23 years ago

WRMB:the bullets continue past the text

Categories

(Core :: Layout, defect, P1)

x86
All
defect

Tracking

()

RESOLVED FIXED
mozilla0.9.5

People

(Reporter: stummala, Assigned: harishd)

References

()

Details

(Keywords: topembed, Whiteboard: PDT+,[fixed on the trunk and branch])

Attachments

(4 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.2)
Gecko/20010726 Netscape6/6.1
BuildID:    2001-08-27-06

The bullets for the press releases continue past the text in Netscape  at url:
http://www.state.ny.us/governor/press/year01/press01.html. 



Reproducible: Always
Steps to Reproduce:
load the above url and scroll down to the end of the page.u will see the bullets
which are not supposed to be shown.

Actual Results:  the bullets appear even after the end of the text

Expected Results:  the bullets should not appear
Sivakiran, why is this assigned to the Evangelism product?  It looks like it
should be assigned to the browser product, not sure which component. (Assigning
bugs to components is not my strength, but it certainly does not belong to
evangelism.)

adding myself and mdunn to the cc list, keyword topembed
Keywords: topembed
I noticed that the month links (i.e. January) in this page navigate to the blank
bullets. Looks like the monthly content isn't being displayed (the content
displays fine in IE5.5). Maybe this is a page loading issue? cc'ing gagan for
help who this should be assigned to.
If you look at the content on the page
(http://www.state.ny.us/governor/press/year01/press01.html) we see that the
bullets break at June 13, 2001, at the exact point where a <br> appears inside
the <ul></ul>.  There appears to be a problem in the way Netscape handles this
HTML - we should see if we can build a reduced testcase.

Setting product to the Browser.
Component: US English → Layout
Product: Tech Evangelism → Browser
Version: unspecified → other
 it has nothing to do with <BR> because i removed all the <BR>'s and tried to
load the page. it is a page loading issue (layout). 
Get rid of the WRMB, reassign to default owner and qa. When you move 
bugs into a new component, you will almost always want to reassign the 
bug.
Assignee: bclary → attinasi
QA Contact: zach → petersen
Summary: WRMB:the bullets continue past the text → the bullets continue past the text
Sorry, I spoke too soon on the WRMB bit.
Summary: the bullets continue past the text → WRMB:the bullets continue past the text
sivakiran, could you attach the testcase you made with the BR tags removed? That
would help alot. Thanks.
Status: NEW → ASSIGNED
Attached file URL as a file
The problem with the dropped content is an old one: there are *loads* of FONT
tags that are never closed, so we end up with incredibly deeply nested content.
After some nesting level, we just throw the content away. This is a feature, I
believe ;)

Over to harishd for confirmation. Just dump the content and look how deep it
gets at the end (it takes a while!).
Assignee: attinasi → harishd
Status: ASSIGNED → NEW
The parser does limit nesting level ( 200 to be precise ). However, the problem
we're seeing here may not be related to it. 

FYI: I am able to reproduce the problem even after increasing the nesting level
limit ( 300 ).
One obvious problem is that the layout code uses the HTMLContentSink's constant
MAX_REFLOW_DEPTH, but that doesn't work because the ContentSink's notion of
'depth' is not the same as layouts. A content node 20 levels deep will actually
be more like 24 levels deep in frame land, because we have some frames before
anything representing the document: Viewport, GfxScroll, ScrollPortFrame, and
Canvas.

I have a trivial fix that takes into account the non-document-related frames by
setting layout's MAX_REFLOW_DEPTH to the contentSink's MAX_REFLOW_DEPTH+5. It
causes the entire page to be rendered, but we lose the anchors everywhere that
we used to lose the text (from June 15 on in the attached version of the URL).
Harish has some ideas on how to fix that...
Attached patch patch v1.1Splinter Review
Your patch makes sense, but it will, of course, change the document. It is
better than dropping the content though, I guess. Have you tested it much, and
are you ready for reviews?
>Your patch makes sense, but it will, of course, change the document.
The document will change but it will atleast try it's best to maintain the
structure. 

>Have you tested it much?
I ran my patch ( along with Marc's patch ) against testcases in bugs 98261,
49678, 55095, 55980, and 58917 ( huge pengin page ). Other than a few style
differences ( which was expected ) they all seem to render "fine" <-- not
correctly. 

>and are you ready for reviews?
I guess :-/. Marc, can you r=?

Status: NEW → ASSIGNED
Comment on attachment 49146 [details] [diff] [review]
patch v1.1

sr=attinasi (also good for r=attinasi if you prefer)
Attachment #49146 - Flags: superreview+
Harish, if you decide not to check in my portion of the patch, please let me
know and I'll do it. I don't think it is critical to the fix, but it is more
correct.
Marc: IMO, your fix should go in. Please check it in if you can or let me know
if you want me to land along with my changes.
fixed on the trunk.
Whiteboard: [fixed on the trunk]
Keywords: nsbranch
Seems like a safe fix with high return (fix topembed), therefore nsbranch+.
Keywords: nsbranchnsbranch+
Priority: -- → P1
Target Milestone: --- → mozilla0.9.5
+ check this in today per PDT.
Whiteboard: [fixed on the trunk] → PDT+,[fixed on the trunk]
fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: PDT+,[fixed on the trunk] → PDT+,[fixed on the trunk and branch]
Verified on branch builds Mac OS X (2001-09-24-04) and Windows ME (2001-09-25-05).
Keywords: vtrunk
Verified on the Sept 25th Linux branch build (2001-09-25-04)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: