Closed Bug 279167 Opened 20 years ago Closed 19 years ago

ASSERTION: HTML elements in an HTML document should have kNamespaceID_None in nsObjectFrame::CreateDefaultFrames

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mcsmurf, Assigned: mcsmurf)

Details

Attachments

(2 files, 2 obsolete files)

When you surf to a page which needs a plugin, which you don't have installed,
you get the replacement content in Firefox (also the logo there is broken atm,
but i'll address this in another bug). But you also get this assertion:
"###!!! ASSERTION: HTML elements in an HTML document should have kNamespaceID_None
 as their namespace ID.: '!aDocumentDefaultType || IsXHTML() || aNamespaceID == k
NameSpaceID_None', file d:/mozilla/tree6/mozilla/content/html/document/src/nsHTML
Document.cpp, line 4105"
(four times)
I think this should be fixed in nsObjectFrame.cpp, Method
nsObjectFrame::CreateDefaultFrames
Attached patch Patch (obsolete) — Splinter Review
Attachment #178805 - Flags: review?(jst)
Attached patch Patch (obsolete) — Splinter Review
Attached wrong patch before
Attachment #178805 - Attachment is obsolete: true
Attachment #178806 - Flags: review?(jst)
Comment on attachment 178806 [details] [diff] [review]
Patch

This wouldn't work for all cases...
Attachment #178806 - Attachment is obsolete: true
Comment on attachment 178806 [details] [diff] [review]
Patch

This wouldn't work for all cases...
Attachment #178806 - Flags: review?(jst)
Attachment #178805 - Flags: review?(jst)
Attached patch Patch 2Splinter Review
This patch sets kNameSpaceID_None for all HTML documents and kNameSpaceID_XHTML
for everything else.
Assignee: jst → bugzilla
Status: NEW → ASSIGNED
Attachment #179094 - Flags: review?(jst)
Comment on attachment 179094 [details] [diff] [review]
Patch 2

Looks good, r+sr=jst (but beware that there's a patch on its way in that
changes the div to an anchor tag (<a>), so there may be conflicts, but this is
the right thing to do in both cases.
Attachment #179094 - Flags: superreview+
Attachment #179094 - Flags: review?(jst)
Attachment #179094 - Flags: review+
Attached patch Patch to checkinSplinter Review
Checking in layout/generic/nsObjectFrame.cpp;
/cvsroot/mozilla/layout/generic/nsObjectFrame.cpp,v  <--  nsObjectFrame.cpp
new revision: 1.495; previous revision: 1.494
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment on attachment 179389 [details] [diff] [review]
Patch to checkin

>+  PRInt32 id;
>+  if (htmldoc && !doc->IsCaseSensitive())
>+    id = kNameSpaceID_None;
>+  else
>+    id = kNameSpaceID_XHTML;
  PRInt32 id = htmldoc && !doc->IsCaseSensitive() ? kNameSpaceID_None :
kNameSpaceID_XHTML;
... is more than 80 columns :-/
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: