Changeset 87115 in webkit
- Timestamp:
- May 23, 2011 6:52:11 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r87114 r87115 1 2011-05-23 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r87007. 4 http://trac.webkit.org/changeset/87007 5 https://bugs.webkit.org/show_bug.cgi?id=61329 6 7 patch unnecessarily breaks HTML5 compatibility (Requested by 8 estes on #webkit). 9 10 * fast/replaced/object-with-non-empty-classid-triggers-fallback-expected.txt: 11 * fast/replaced/object-with-non-empty-classid-triggers-fallback.html: 12 1 13 2011-05-23 Julien Chaffraix <jchaffraix@codeaurora.org> 2 14 -
trunk/LayoutTests/fast/replaced/object-with-non-empty-classid-triggers-fallback-expected.txt
r87007 r87115 2 2 3 3 object with classid attribute but no type attribute renders fallback: PASS 4 object with classid and type attributes renders fallback: PASS 5 object with classid and type attribute loads when the object has no fallback content: PASS 6 4 object with classid and type attributes renders fallback: PASS -
trunk/LayoutTests/fast/replaced/object-with-non-empty-classid-triggers-fallback.html
r87007 r87115 1 <!DOCTYPE html>2 1 <script> 3 if (window.layoutTestController) {2 if (window.layoutTestController) 4 3 layoutTestController.dumpAsText(); 5 layoutTestController.waitUntilDone();6 }7 8 function runTest()9 {10 var pluginObject = document.getElementById("obj3");11 var consoleDiv = document.getElementById("console");12 13 if (pluginObject && pluginObject.testCallback)14 consoleDiv.innerHTML += "PASS";15 else16 consoleDiv.innerHTML += "FAIL";17 18 if (window.layoutTestController)19 layoutTestController.notifyDone();20 }21 4 </script> 22 <body onload="runTest()">23 5 <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> 24 <object id="obj 1" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000">6 <object id="obj" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> 25 7 object with classid attribute but no type attribute renders fallback: PASS 26 8 </object> 27 9 <br> 28 <object id="obj 2" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" type="application/x-webkit-test-netscape">10 <object id="obj" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type=application/x-webkit-test-netscape"> 29 11 object with classid and type attributes renders fallback: PASS 30 12 </object> 31 <br>32 <div id="console">object with classid and type attribute loads when the object has no fallback content: </div>33 <object id="obj3" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" type="application/x-webkit-test-netscape">34 </object>35 13 -
trunk/Source/WebCore/ChangeLog
r87114 r87115 1 2011-05-23 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r87007. 4 http://trac.webkit.org/changeset/87007 5 https://bugs.webkit.org/show_bug.cgi?id=61329 6 7 patch unnecessarily breaks HTML5 compatibility (Requested by 8 estes on #webkit). 9 10 * html/HTMLObjectElement.cpp: 11 (WebCore::HTMLObjectElement::hasValidClassId): 12 1 13 2011-05-23 Julien Chaffraix <jchaffraix@codeaurora.org> 2 14 -
trunk/Source/WebCore/html/HTMLObjectElement.cpp
r87007 r87115 248 248 // HTML5 says that fallback content should be rendered if a non-empty 249 249 // classid is specified for which the UA can't find a suitable plug-in. 250 // However, in the case where an object tag with a classid also has a valid 251 // MIME type and no fallback content is present, it makes sense to ignore 252 // the classid and attempt to load the object rather than fall back to 253 // nothing. 254 return classId().isEmpty() || !hasFallbackContent(); 250 return classId().isEmpty(); 255 251 } 256 252
Note: See TracChangeset
for help on using the changeset viewer.