Closed Bug 268868 Opened 20 years ago Closed 18 years ago

page fails to load on 8th click/ dynamic retemplateing

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mozilla, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

I am reporting a bug that occurs identically in Firefox 1.0 and Mozilla 1.7.2,
on both Windows 2000 or Windows XP.  Identical circumstances produce no such bug
in Internet Explorer 6.0.2800 or in Opera 7.54.  This one is really a mystery to
me.....

I have created a dynamic web page that allows users to expand or collapse
horizontal sections of text by clicking on small images adjacent to each
section.  When the image is clicked, javascript constructs a query string
containing information indicating what sections should be expanded and collapsed
in the next view, and SSI on Apache parses this query string to determine what
elements it should include to construct the next page.  The domain exists as a
subfolder on another domain which I have hosted at a hosting company.  I've set
up the DNS with a cloaked web forward so this is more or less transparent to the
site visitor.  As a result of the cloaked web forward, the site exists within a
frameset.

All that works great, except in Firefox and Mozilla the new page does not load
on the 8th click.  It does not matter whether I am expanding or collapsing the
text sections -- on the 8th reconstruction of the page the result is always a
white screen.  However, if I right click the page and select "This Frame / Show
Only This Frame" the correct page ~does~ show -- with the ugly query string
visible in the address bar (normally it doesn't show).  I can then continue to
navigate the site, and expand or collapse the text sections, until the next 8th
click when the same problem surfaces again.

The same bug exists in Mozilla 1.7.2.  In Netscape 7.0 the bug exists too,
except Netscape doesn't like numbers divisible by 6 instead of 8.  Maybe that's
a clue?  In IE and Opera, there is never any such problem.

At first I thought this issue must have been the result of a bug of my own in
the dynamic system I've written, but after exhaustive testing, I think it is the
browser.  That this issue only surfaces within the Mozilla/Firefox/Netscape
family seems to point to lend credence to this theory.

Thanks very much for your attention to this matter.  I'm loving Firefox even so.

Reproducible: Always
Steps to Reproduce:
1.load http://www.brianmaniere.com/resume
2.click any 8 [+] or [-] images beside any 8 text sections
3.

Actual Results:  
just as I explained.

Expected Results:  
the dynamic reconstruction of the page should continue without fail.

I doubt it's relevant, but I'm running the default theme in Firefox and
Microzilla in Mozilla.
confirmed

this belongs under browser
Status: UNCONFIRMED → NEW
Component: General → Layout: HTML Frames
Ever confirmed: true
Product: Firefox → Browser
Version: unspecified → Trunk
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8a5) Gecko/20041110

I opened JS console, cleared it, and then did load the URL in a new tab.
Started with an error, follwed by some warnings.

Error: Expected end of value for property but found '0px'.  Error in parsing
value for property 'margin-top'.  Declaration dropped.
Source File: http://www.instinctual.com/includes/struc01.css
Line: 504

p.subtitle {
	margin-top: 1px 0px 3px;


I could uncollapse 7 links, getting the same set of 1 error plus some warnings,
and clicking once more, I got an empty page, no notice in JS console, but I
could go back, and then dosplay was normal.
(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0
> 
> I am reporting a bug that occurs identically in Firefox 1.0 and Mozilla 1.7.2,
> on both Windows 2000 or Windows XP.  Identical circumstances produce no such bug
> in Internet Explorer 6.0.2800 or in Opera 7.54.  This one is really a mystery to
> me.....
> 
> I have created a dynamic web page that allows users to expand or collapse
> horizontal sections of text by clicking on small images adjacent to each
> section.  When the image is clicked, javascript constructs a query string
> containing information indicating what sections should be expanded and collapsed
> in the next view, and SSI on Apache parses this query string to determine what
> elements it should include to construct the next page.  The domain exists as a
> subfolder on another domain which I have hosted at a hosting company.  I've set
> up the DNS with a cloaked web forward so this is more or less transparent to the
> site visitor.  As a result of the cloaked web forward, the site exists within a
> frameset.
> 
> All that works great, except in Firefox and Mozilla the new page does not load
> on the 8th click.  It does not matter whether I am expanding or collapsing the
> text sections -- on the 8th reconstruction of the page the result is always a
> white screen.  However, if I right click the page and select "This Frame / Show
> Only This Frame" the correct page ~does~ show -- with the ugly query string
> visible in the address bar (normally it doesn't show).  I can then continue to
> navigate the site, and expand or collapse the text sections, until the next 8th
> click when the same problem surfaces again.
> 
> The same bug exists in Mozilla 1.7.2.  In Netscape 7.0 the bug exists too,
> except Netscape doesn't like numbers divisible by 6 instead of 8.  Maybe that's
> a clue?  In IE and Opera, there is never any such problem.
> 
> At first I thought this issue must have been the result of a bug of my own in
> the dynamic system I've written, but after exhaustive testing, I think it is the
> browser.  That this issue only surfaces within the Mozilla/Firefox/Netscape
> family seems to point to lend credence to this theory.
> 
> Thanks very much for your attention to this matter.  I'm loving Firefox even so.
> 
> Reproducible: Always
> Steps to Reproduce:
> 1.load http://www.brianmaniere.com/resume
> 2.click any 8 [+] or [-] images beside any 8 text sections
> 3.
> 
> Actual Results:  
> just as I explained.
> 
> Expected Results:  
> the dynamic reconstruction of the page should continue without fail.
> 
> I doubt it's relevant, but I'm running the default theme in Firefox and
> Microzilla in Mozilla.

(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0
> 
> I am reporting a bug that occurs identically in Firefox 1.0 and Mozilla 1.7.2,
> on both Windows 2000 or Windows XP.  Identical circumstances produce no such bug
> in Internet Explorer 6.0.2800 or in Opera 7.54.  This one is really a mystery to
> me.....
> 
> I have created a dynamic web page that allows users to expand or collapse
> horizontal sections of text by clicking on small images adjacent to each
> section.  When the image is clicked, javascript constructs a query string
> containing information indicating what sections should be expanded and collapsed
> in the next view, and SSI on Apache parses this query string to determine what
> elements it should include to construct the next page.  The domain exists as a
> subfolder on another domain which I have hosted at a hosting company.  I've set
> up the DNS with a cloaked web forward so this is more or less transparent to the
> site visitor.  As a result of the cloaked web forward, the site exists within a
> frameset.
> 
> All that works great, except in Firefox and Mozilla the new page does not load
> on the 8th click.  It does not matter whether I am expanding or collapsing the
> text sections -- on the 8th reconstruction of the page the result is always a
> white screen.  However, if I right click the page and select "This Frame / Show
> Only This Frame" the correct page ~does~ show -- with the ugly query string
> visible in the address bar (normally it doesn't show).  I can then continue to
> navigate the site, and expand or collapse the text sections, until the next 8th
> click when the same problem surfaces again.
> 
> The same bug exists in Mozilla 1.7.2.  In Netscape 7.0 the bug exists too,
> except Netscape doesn't like numbers divisible by 6 instead of 8.  Maybe that's
> a clue?  In IE and Opera, there is never any such problem.
> 
> At first I thought this issue must have been the result of a bug of my own in
> the dynamic system I've written, but after exhaustive testing, I think it is the
> browser.  That this issue only surfaces within the Mozilla/Firefox/Netscape
> family seems to point to lend credence to this theory.
> 
> Thanks very much for your attention to this matter.  I'm loving Firefox even so.
> 
> Reproducible: Always
> Steps to Reproduce:
> 1.load http://www.brianmaniere.com/resume
> 2.click any 8 [+] or [-] images beside any 8 text sections
> 3.
> 
> Actual Results:  
> just as I explained.
> 
> Expected Results:  
> the dynamic reconstruction of the page should continue without fail.
> 
> I doubt it's relevant, but I'm running the default theme in Firefox and
> Microzilla in Mozilla.

Thanks for your help, and for pointing out the bug in my stylesheet.  But I'm
afraid that wasn't the problem.  I've corrected the stylesheet, but the browser
behavior remains the same.  And I am getting no errors or warnings in the
javascript console.

BTW, while it is true that you can page backwards after the 8th page fails to
load, click any link again from the 7th page and you'll still find the browser
cannot load the next screen.

If you could please revisit this problem I'd appreciate it....  There is still
something weird going on here.  And the fact that the problem consistently
surfaces on clicks divisible by 8 in Firefox and Mozilla, and 6 in Netscape--- 
isn't that a clue?

Thanks!
Summary: page fails to load on 8th click/ dynamic retamplateing → page fails to load on 8th click/ dynamic retemplateing
ugh.  sorry -- i didn't realize all that prior text would show in my additional
comment.  Feel free to delete that if that's possible.  I don't see a means to
do this from my view.
OK, I see two things here:

1)  The number of frames we have around increases by two on every click on that
    site.
2)  When things break, I get the following, in a debug build:

WARNING: Too many nested content frames so giving up, file
/home/bzbarsky/mozilla/xlib/mozilla/content/base/src/nsFrameLoader.cpp, line 406


(with the error propagating back up, etc).
So the problem is that this site sets window.location on the _subframe_ to the
location of the toplevel frameset, with some params tossed into the URI.  So in
fact, every click makes the frame tree a frame deeper.  At some point it hits
the 10-frame maximum depth we impose on frame trees and then breaks.

I keep wondering how IE's recursion-prevention works, especially if it allows
this sort of thing... ;)
Assignee: firefox → nobody
QA Contact: firefox.general → core.layout.html-frames
aha!  Me thinks you've got it.  Thanks very much.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
Component: Layout: HTML Frames → Layout: Images
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.