Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2011-05-20 Andy Estes <aestes@apple.com>
Reviewed by Darin Adler. REGRESSION (r70748): WebKit cannot play videos created by Podcast Producer. https://bugs.webkit.org/show_bug.cgi?id=61229 Test that an object element with a non-empty classid, a valid MIME type and no fallback content is allowed to load. * fast/replaced/object-with-non-empty-classid-triggers-fallback-expected.txt: * fast/replaced/object-with-non-empty-classid-triggers-fallback.html: 2011-05-20 Andy Estes <aestes@apple.com> Reviewed by Darin Adler. REGRESSION (r70748): WebKit cannot play videos created by Podcast Producer. https://bugs.webkit.org/show_bug.cgi?id=61229 Podcast Producer uses an object tag with a classid attribute to embed QuickTime Player into a page. In r70748, we changed our behavior to render the object's fallback content when a non-empty classid is encountered, per HTML5. Since Podcast Producer videos have no fallback content, this change in behavior causes the video to fail to load. Since the object tag has a valid type attribute, we would be able to load it if weren't for the non-empty classid. This patch changes our policy to allow objects with non-empty classids if there is no fallback content. We still continue to prefer fallback content if it exists, however. * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::hasValidClassId): Treat a non-empty classid as valid if the object has no fallback content. Canonical link: https://commits.webkit.org/76606@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@87007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
69 additions
and 5 deletions.
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
@@ -1,4 +1,6 @@ | ||
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 | ||
object with classid and type attribute loads when the object has no fallback content: 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
@@ -1,13 +1,35 @@ | ||
<!DOCTYPE html> | ||
<script> | ||
if (window.layoutTestController) { | ||
layoutTestController.dumpAsText(); | ||
layoutTestController.waitUntilDone(); | ||
} | ||
|
||
function runTest() | ||
{ | ||
var pluginObject = document.getElementById("obj3"); | ||
var consoleDiv = document.getElementById("console"); | ||
|
||
if (pluginObject && pluginObject.testCallback) | ||
consoleDiv.innerHTML += "PASS"; | ||
else | ||
consoleDiv.innerHTML += "FAIL"; | ||
|
||
if (window.layoutTestController) | ||
layoutTestController.notifyDone(); | ||
} | ||
</script> | ||
<body onload="runTest()"> | ||
<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="obj1" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000"> | ||
object with classid attribute but no type attribute renders fallback: PASS | ||
</object> | ||
<br> | ||
<object id="obj2" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" type="application/x-webkit-test-netscape"> | ||
object with classid and type attributes renders fallback: PASS | ||
</object> | ||
<br> | ||
<div id="console">object with classid and type attribute loads when the object has no fallback content: </div> | ||
<object id="obj3" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" type="application/x-webkit-test-netscape"> | ||
</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