Closed
Bug 134401
Opened 23 years ago
Closed 23 years ago
html of "frame compatible browser is required" message is displayed (noframes)
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Core
Layout: Images, Video, and HTML Frames
Tracking
()
VERIFIED
FIXED
mozilla1.0.1
People
(Reporter: devotip, Assigned: john)
References
()
Details
(Whiteboard: [adt2 RTM][FIX],custrtm- [ETA 06/26])
Attachments
(3 files)
452 bytes,
text/html
|
Details | |
466 bytes,
patch
|
bzbarsky
:
review+
hewitt
:
superreview+
jud
:
approval+
|
Details | Diff | Splinter Review |
4.77 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.9+) Gecko/20020329
BuildID: 2002032916
Reproducible: Always
Steps to Reproduce:
1. open url http://www2.comex.it/listino.htm
Actual Results: top of page shows the html of the "frame compatible browser is
required" page
Expected Results: normal render of page
Reporter | ||
Comment 1•23 years ago
|
||
html tags are appearing spread in http://www.amd.com/us-en/
maybe this issue is not frame related
![]() |
||
Comment 2•23 years ago
|
||
The site seems to be down (it's not responding to HTTP requests)
Reporter | ||
Comment 3•23 years ago
|
||
Check it again, maybe better in evening or night CET.
Behaviour of both sites is unchanged
![]() |
||
Comment 4•23 years ago
|
||
![]() |
||
Comment 5•23 years ago
|
||
Confirming, but....
The content is invalid (<noframes> should come _inside_ <frameset>, not before
or after it). The reason the bug happens is that once we hit the <frameset> tag
we set a "frameset document" flag and ignore <noframes> from that point on. So
when <noframes> comes inside or after <frameset> things are fine.
When it comes _before_, we render it as CDATA (which is what we parse it as).
NS4 also shows the <noframes> content on this site (thought it does _not_ show
the frameset).
Possible solutions:
1) Fix this in the content sink or layout
2) Just add "noframes { display: none }" to html.css
(I like #2 myself)
Assignee: asa → jkeiser
Status: UNCONFIRMED → NEW
Component: Browser-General → HTMLFrames
Ever confirmed: true
OS: Windows 98 → All
QA Contact: doronr → amar
Hardware: PC → All
Comment 6•23 years ago
|
||
Hmm. I guess we always support frames, so maybe it is best to hide the NOFRAMES
elements (and all children thereof). If we ever planned to allow an option to
disable frame support then this would be a problem, but that sure seems unlikely ;)
I agree with Boris - simple solution, nuke NOFRAMES in html.css
Comment 7•23 years ago
|
||
![]() |
||
Comment 8•23 years ago
|
||
Comment on attachment 77478 [details] [diff] [review]
PATCH to hide NOFRAMES, since we do not support disabling frames anyway
r=bzbarsky
Attachment #77478 -
Flags: review+
Comment 9•23 years ago
|
||
Interestingly, this looks like it is being handled in the frame constructor
already: see
http://lxr.mozilla.org/seamonkey/source/layout/html/style/src/nsCSSFrameConstructor.cpp#4696
I wonder why that is not working in this case. Looking at this and the method
nsDocShell::GetAllowSubframes, it seems like there is at least _some_ support
for disabling frames, though I am not sure if it is tested. I think maybe the
blanket style rule is a bad idea now.
![]() |
||
Comment 10•23 years ago
|
||
Hmm.. Does GetAllowSubframes return true?
Comment 11•23 years ago
|
||
I haven't debugged it, but a pref is read (browser.frames.enabled) and it looks
like it is set to 'true' in all.js, so it should return true. Maybe I need to
debug it, if my build ever completes I will.
Comment 12•23 years ago
|
||
Will not fix, but will help bug 133809, in that not matter how much "text" is
inside the noframes tag it will reflow to a single page in PP and be blank.
Printing has a hack in it that it will only print the first page of an "AsIs"
frameset anyway.
Keywords: nsbeta1
Target Milestone: --- → mozilla1.0
Comment 13•23 years ago
|
||
I have nominated this for nsbeta1 because of Print Preview. But it still thinks
it needs to reflow for the noframes case see new Bug 139489
Comment 14•23 years ago
|
||
nsbeta1+
Comment 15•23 years ago
|
||
Comment on attachment 77478 [details] [diff] [review]
PATCH to hide NOFRAMES, since we do not support disabling frames anyway
sr=hewitt
Attachment #77478 -
Flags: superreview+
Comment 16•23 years ago
|
||
Taking the bug. We shouldn't leave code in to support this feature (and IE
doesn't support it). The spec says - "The NOFRAMES element specifies content
that should be displayed only by user agents that do not support frames or are
configured not to display frames". Lets not pretend that we can be configured
not to display frames.
Assignee: jkeiser → karnaze
Comment 17•23 years ago
|
||
This patch is the previous one plus the removal of noframes code from the frame
constructor.
Comment 18•23 years ago
|
||
As jkeiser points out, if we ever try to support bug 56743, then we may need the
code that I ripped out. He also points out that there is more code to rip out.
So, I'm giving this back to him so he can decide what to do. Either we should go
with the simple patch or rip it all out (and possibly add some comments
explaining what version removed it just in case we ever decide to use it).
Assignee: karnaze → jkeiser
Assignee | ||
Comment 19•23 years ago
|
||
The Plan: I am checking in the attinasi patch for now. I acknowledge the
potential need to rip out all frame disabling code, but not until we decide
exactly how bug 56743 is to be implemented--much if not all of that code will be
useful at that point, and it's not really harming us to leave it in while the
decision is made.
Yes, the frame disabling code is screwed up in this case. Yes, display: none
isn't getting set properly, and this patch is purely wallpaper over that. But
until we really support noframes in frame disabling, none of that matters one whit.
During investigation of the display: none problem I found that display: none is
getting set in the frame constructor at that point but either the change isn't
sticking or someone is overwriting it with display: 1 later (I dumped style
contexts).
Status: NEW → ASSIGNED
Assignee | ||
Comment 20•23 years ago
|
||
Checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Keywords: adt1.0.0
Resolution: --- → FIXED
Whiteboard: [adt2] → [adt2][FIX]
Comment 21•23 years ago
|
||
thanks for the fix, but the better time to take this one is after RC2. adt1.0.0-
[adt2 RTM].
Comment 22•23 years ago
|
||
Keep in mind that the HTML spec indicates that the NOFRAMES section _should_
show up if the document is shown out of a frameset, like when the user opens a
page by itself due to bookmarking or something.
http://www.w3.org/TR/html401/present/frames.html#edef-NOFRAMES
NOFRAMES may be used, for example, in a document that is the source of a frame
and that uses the transitional DTD. This allows authors to explain the
document's purpose in cases when it is viewed out of the frameset or with a user
agent that doesn't support frames.
So, for now, this is broken (well, it was broken before too - we were showing
the contents of the NOFRAMES container as HTML source instead of HTML elements).
Comment 23•23 years ago
|
||
amar@netscape.com: Can you verify this fix on the trunk?. Thanks
Comment 24•23 years ago
|
||
amar@netscape.com: Can you verify on the trunk? Thanks
Comment 25•23 years ago
|
||
amar, could you verify this on the trunk?
Comment 26•23 years ago
|
||
Adding custrtm-; no impact on customization.
Comment 27•23 years ago
|
||
Mass removing adt1.0.0, and adding adt1.0.1 because, we are now on 1.0.1.
Keywords: adt1.0.0
Comment 28•23 years ago
|
||
Verified on trunk and branch 20020603 builds. Marking verified.
Status: RESOLVED → VERIFIED
Comment 29•23 years ago
|
||
Amar - Are you saying this is fixed on the 1.0 branch? I believe the fix was
only checked into the trunk.
John - Did you land this on the branch and trunk?
Keywords: approval,
mozilla1.0.1
Whiteboard: [adt2 RTM][FIX],custrtm- → [adt2 RTM][FIX],custrtm- [ETA 06/25]
Target Milestone: mozilla1.0 → mozilla1.0.1
Comment 30•23 years ago
|
||
I will have to take back my above statement since this is fixed only in the
trunk builds. Still not fixed in the branch builds. I still see the HTML in the
recent branch builds. Reopening untill its verified in the branch.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 31•23 years ago
|
||
Correct, AFAICT it was given adt1.0.0-. It's not even approved for branch.
Comment 32•23 years ago
|
||
fixed and verified on the trunk. Resolving as fixed.
*not* fixed on the branch, but it is nominated.
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Comment 33•23 years ago
|
||
Marking as verified for the trunk per Comment #32 From Kevin McCluskey.
Blocks: 143047
Status: RESOLVED → VERIFIED
Comment 34•23 years ago
|
||
ADT: Known sites affected by this http://www2.comex.it/listino.htm, and
print-preview of http://kontek.net/404/frames.html and print preview of
http://www.geocities.com/SiliconValley/1166/
Comment 35•23 years ago
|
||
adt1.0.1+ (on ADT's behalf) approval for checkin to the 1.0 branch, pending
Drivers' approval. pls check this in asap, the add the "fixed1.0.1" keyword.
Updated•23 years ago
|
Attachment #77478 -
Flags: approval+
Comment 36•23 years ago
|
||
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
Keywords: mozilla1.0.1 → mozilla1.0.1+
Comment 37•23 years ago
|
||
Please check this into the branch today. Or, if it's already been checked in,
add the fixed1.0.1 keyword. If it's not in tomorrow's build, the adt1.0.1+ may
be removed.
Comment 38•23 years ago
|
||
rods will be checking in the fix to the 1.0 branch today.
Comment 40•23 years ago
|
||
Verified on branch build: 2002-07-11-08. WIN2K and linux 7.1. I do not see the
HTML on the top of the page.
Keywords: verified1.0.1
![]() |
||
Comment 41•23 years ago
|
||
*** Bug 118718 has been marked as a duplicate of this bug. ***
![]() |
||
Comment 42•23 years ago
|
||
*** Bug 74523 has been marked as a duplicate of this bug. ***
![]() |
||
Comment 43•22 years ago
|
||
*** Bug 136888 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•22 years ago
|
Summary: html of "frame compatible browser is required" message is displayed → html of "frame compatible browser is required" message is displayed (noframes)
Updated•6 years ago
|
Product: Core → Core Graveyard
Updated•6 years ago
|
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.
Description
•