Closed
Bug 279167
Opened 21 years ago
Closed 21 years ago
ASSERTION: HTML elements in an HTML document should have kNamespaceID_None in nsObjectFrame::CreateDefaultFrames
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mcsmurf, Assigned: mcsmurf)
Details
Attachments
(2 files, 2 obsolete files)
|
2.00 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
|
1.29 KB,
patch
|
Details | Diff | Splinter Review |
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
| Assignee | ||
Comment 1•21 years ago
|
||
Attachment #178805 -
Flags: review?(jst)
| Assignee | ||
Comment 2•21 years ago
|
||
Attached wrong patch before
Attachment #178805 -
Attachment is obsolete: true
Attachment #178806 -
Flags: review?(jst)
| Assignee | ||
Comment 3•21 years ago
|
||
Comment on attachment 178806 [details] [diff] [review]
Patch
This wouldn't work for all cases...
Attachment #178806 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•21 years ago
|
||
Comment on attachment 178806 [details] [diff] [review]
Patch
This wouldn't work for all cases...
Attachment #178806 -
Flags: review?(jst)
| Assignee | ||
Updated•21 years ago
|
Attachment #178805 -
Flags: review?(jst)
| Assignee | ||
Comment 5•21 years ago
|
||
This patch sets kNameSpaceID_None for all HTML documents and kNameSpaceID_XHTML
for everything else.
| Assignee | ||
Updated•21 years ago
|
Comment 6•21 years ago
|
||
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+
| Assignee | ||
Comment 7•21 years ago
|
||
Comment 8•21 years ago
|
||
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: 21 years ago
Resolution: --- → FIXED
Comment 9•21 years ago
|
||
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.
Description
•