Closed
Bug 305564
Opened 20 years ago
Closed 19 years ago
CSS parsing errors when <object> with missing plugin does not have width/height attributes
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jruderman, Unassigned)
References
()
Details
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050822
Firefox/1.0+
Steps to reproduce:
1. Load data:text/html,<object type="application/wtf"
data="http://www.google.com/images/logo.gif">6</object>
Result:
"Error parsing value for property 'height'." and
"Error parsing value for property 'width'." in the JavaScript console (sometimes
twice).
Reporter | ||
Comment 1•20 years ago
|
||
If you add a width attribute to the <object>, "Error parsing value for property
'width'." goes away, and similarly for height.
Summary: CSS parsing errors associated with "missing plugin" replacement and/or information bar → CSS parsing errors when <object> with misssing plugin does not have width/height attributes
Reporter | ||
Comment 2•20 years ago
|
||
Commenting out the stuff in SizeAnchor in nsObjectFrame.cpp (called by
nsObjectFrame::Reflow) fixes the warnings. I haven't figured out why, though.
Reporter | ||
Updated•20 years ago
|
Summary: CSS parsing errors when <object> with misssing plugin does not have width/height attributes → CSS parsing errors when <object> with missing plugin does not have width/height attributes
Reporter | ||
Comment 4•19 years ago
|
||
This might have been fixed by the checkin for bug 1156, specifically this hunk:
nsAutoString tmp;
tmp.AppendInt(aWidth);
- AppendASCIItoUTF16("px", tmp);
+ tmp.AppendLiteral("px");
+
css2props->SetWidth(tmp);
tmp.Truncate();
tmp.AppendInt(aHeight);
- AppendASCIItoUTF16("px", tmp);
+ tmp.AppendLiteral("px");
+
css2props->SetHeight(tmp);
I can't test until bug 309521 is fixed.
Group: security
Comment 5•19 years ago
|
||
I can't imagine that that change makes any difference.
but that code will go away anyway.
why is this now security-sensitive?
Reporter | ||
Comment 6•19 years ago
|
||
Oops, I must have clicked the "Security-Sensitive Bug" checkbox accidentally.
Group: security
![]() |
||
Comment 7•19 years ago
|
||
All that happened was that the C++ generated invalid CSS. Since we're no longer doing that, this should be fixed (by bug 1156), though if you want to wait till bug 309521 is fixed to verify, go for it.
Reporter | ||
Comment 8•19 years ago
|
||
WFM Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20060102 Firefox/1.6a1
Btw, I never see plugin finder activate for <object> on trunk. It's just replaced by its alternate content, even if it's empty. Plugin finder does appear for <embed>.
Comment 9•19 years ago
|
||
fixed by bug 1156 / bug 309521
pluginfinder requires a pluginurl being present. was that different in 1.0.x?
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 10•19 years ago
|
||
(I tried to match the conditions used for showing the (pre-pluginfinder) nullplugin)
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•