-
arko@motorola.com authored
https://bugs.webkit.org/show_bug.cgi?id=98025 Reviewed by Kentaro Hara. Source/WebCore: We should look in the prototype for functions before assuming it as an item's name. Return false if the prototype of the object has a property (function) with propertyName. Named properties Spec: http://dev.w3.org/2006/webapi/WebIDL/#idl-named-properties Named property visibility algorithm: http://dev.w3.org/2006/webapi/WebIDL/#indexed-and-named-properties ... 7. If the result of calling the [[HasProperty]] internal method on prototype with property name P is true, then return false. ... Also [OverrideBuiltins] is not declared for any of the properties, hence no overriding is allowed in this case. Test: fast/dom/MicroData/itemprop-names-override-builtin-properties.html * bindings/scripts/CodeGeneratorJS.pm: (GenerateGetOwnPropertySlotBody): (GenerateGetOwnPropertyDescriptorBody): LayoutTests: Added test case to verify that itemprop names must not override builtin properties. * fast/dom/MicroData/itemprop-names-override-builtin-properties-expected.txt: Added. * fast/dom/MicroData/itemprop-names-override-builtin-properties.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@130255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
222c11fa