Bug 86682
| Summary: | <embed> and <object> width and height do not interact properly | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Robert Hogan <robert> |
| Component: | Layout and Rendering | Assignee: | Robert Hogan <robert> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, eric, robert |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://code.google.com/p/chromium/issues/detail?id=127907 | ||
Robert Hogan
Reduction:
<OBJECT classid>
<PARAM NAME=movie VALUE="eat.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#231f1c> <EMBED src="eat.swf" menu=false quality=high bgcolor=#231f1c WIDTH="100" HEIGHT="180" NAME="eat" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
See also https://bugs.webkit.org/show_bug.cgi?id=17688#add_comment
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Robert Hogan
http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element
Robert Hogan
The culprit seems to be:
<object><PARAM NAME=movie VALUE="eat.swf">
Specifying a source for the object element results in the dimensions for the embedded object getting ignored.
Robert Hogan
If you try this reduction you can see different results for Opera/FF/IE8 vs WebKit: http://jsfiddle.net/yZ6zV/
HTMLObjectElement::parametersForPlugin() special-cases 'movie' as a PARAM NAME and attempts to load the value passed to it - it looks like no other browser does this. It's done for 'compatibility' - presumably with WebKit-apps rather than other browsers.
Adobe says that flash requires a width and height parameter in the OBJECT element and these are missing in the site reporting the issue (http://helpx.adobe.com/flash/kb/flash-object-embed-tag-attributes.html).
So this looks like a combination of WebKit-specific behaviour and invalid code from the reporter.
Is the bug invalid?