Reviewed by Maciej.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 5 Feb 2006 19:16:48 +0000 (19:16 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 5 Feb 2006 19:16:48 +0000 (19:16 +0000)
        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6962
          REGRESSION: www.usa.phillips.com crashes due to <param> with no name

        Test: fast/replaced/object-param-no-name.html

        * rendering/render_frames.cpp: (WebCore::RenderPartObject::updateWidget):
        Check for empty name, and skip processing the name/value of that <param> element.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12580 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/rendering/render_frames.cpp

index 2e829470049bc7e8cf96dba29aec3dbd1bc4ad3e..df5cd951e73fa4ca4976179398610de1b399cda9 100644 (file)
@@ -1,3 +1,15 @@
+2006-02-05  Darin Adler  <darin@apple.com>
+
+        Reviewed by Maciej.
+
+        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=6962
+          REGRESSION: www.usa.phillips.com crashes due to <param> with no name
+
+        Test: fast/replaced/object-param-no-name.html
+
+        * rendering/render_frames.cpp: (WebCore::RenderPartObject::updateWidget):
+        Check for empty name, and skip processing the name/value of that <param> element.
+
 2006-02-05  Darin Adler  <darin@apple.com>
 
         - rolled out Maciej's event cleanup patch, which is causing problems
index 040c2736ebfae3d1a2717fdc11db721c2a75866a..86f75a6396627f52e7981a3bfce69fcc0b918fff 100644 (file)
@@ -850,7 +850,7 @@ void RenderPartObject::updateWidget()
                       serviceType = serviceType.left(pos);
                   }
               }
-              if (!embed) {
+              if (!embed && !name.isEmpty()) {
                   uniqueParamNames.add(p->name().impl());
                   paramNames.append(p->name().qstring());
                   paramValues.append(p->value().qstring());