Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2010-10-27 Andy Estes <aestes@apple.com>
Reviewed by Adam Barth. r66156 broke AtlasCT library, formerly affected http://map.d.co.il/ https://bugs.webkit.org/show_bug.cgi?id=45679 This patch removes WebKit's map of classid values to MIME types. It also changes the behavior of object elements to render fallback content when a non-empty classid attribute is specified, which is the behavior HTML5 specifies when a UA encounters a classid it doesn't understand. Test: fast/replaced/object-with-non-empty-classid-triggers-fallback.html * html/HTMLObjectElement.cpp: Remove serviceTypeForClassId(), createClassIdToTypeMap(), and the ClassIdToTypeMap typedef. (WebCore::HTMLObjectElement::updateWidget): Do not call serviceTypeForClassId() when there is no type attribute, and render fallback content if the classid attribute is non-empty. 2010-10-27 Andy Estes <aestes@apple.com> Reviewed by Adam Barth. r66156 broke AtlasCT library, formerly affected http://map.d.co.il/ https://bugs.webkit.org/show_bug.cgi?id=45679 * fast/dom/object-embed-plugin-scripting.html: Changed classid attributes to type attributes. * fast/dom/object-plugin-hides-properties.html: Ditto. * fast/replaced/object-with-non-empty-classid-triggers-fallback-expected.txt: Added. * fast/replaced/object-with-non-empty-classid-triggers-fallback.html: Added. Canonical link: https://commits.webkit.org/61264@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
59 additions
and 35 deletions.
- +13 −0 LayoutTests/ChangeLog
- +2 −2 LayoutTests/fast/dom/object-embed-plugin-scripting.html
- +1 −1 LayoutTests/fast/dom/object-plugin-hides-properties.html
- +4 −0 LayoutTests/fast/replaced/object-with-non-empty-classid-triggers-fallback-expected.txt
- +13 −0 LayoutTests/fast/replaced/object-with-non-empty-classid-triggers-fallback.html
- +20 −0 WebCore/ChangeLog
- +6 −32 WebCore/html/HTMLObjectElement.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -19,6 +19,6 @@ | ||
If the test passes, you will see a "PASSED" message below. | ||
</p> | ||
<p id="result"></p> | ||
<object id="obj" type="video/quicktime"><!-- quicktime --> | ||
</object> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,4 @@ | ||
This tests that fallback content is rendered for objects with non-empty classid attributes. The test passes if two lines are printed below containing the work 'PASS'. | ||
|
||
object with classid attribute but no type attribute renders fallback: PASS | ||
object with classid and type attributes renders fallback: PASS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,13 @@ | ||
<script> | ||
if (window.layoutTestController) | ||
layoutTestController.dumpAsText(); | ||
</script> | ||
<p>This tests that fallback content is rendered for objects with non-empty classid attributes. The test passes if two lines are printed below containing the work 'PASS'.</p> | ||
<object id="obj" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> | ||
object with classid attribute but no type attribute renders fallback: PASS | ||
</object> | ||
<br> | ||
<object id="obj" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type=application/x-webkit-test-netscape"> | ||
object with classid and type attributes renders fallback: PASS | ||
</object> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters