Changeset 100247 in webkit
- Timestamp:
- Nov 15, 2011, 12:36:56 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/chromium/test_expectations.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r100246 r100247 1 2011-11-15 Kent Tamura <tkent@chromium.org> 2 3 [V8] Fix incorrect handling of JavaScript properties in DOMStringMap 4 https://bugs.webkit.org/show_bug.cgi?id=53578 5 6 Reviewed by Adam Barth. 7 8 * platform/chromium/test_expectations.txt: 9 Remove failure expectations of fast/dom/dataset.html and 10 fast/dom/dataset-xhtml.xhtml. 11 1 12 2011-11-14 Pavel Feldman <pfeldman@google.com> 2 13 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r100237 r100247 3674 3674 BUGWK68982 : svg/custom/transformed-pattern-clamp-svg-root.svg = IMAGE PASS 3675 3675 3676 // Need to follow a JSC binding change. See webkit.org/b/53752.3677 BUGWK53578 : fast/dom/dataset.html = TEXT3678 BUGWK53578 : fast/dom/dataset-xhtml.xhtml = TEXT3679 3680 3676 BUGWK69060 WIN LINUX : fast/repaint/selection-clear.html = IMAGE+TEXT 3681 3677 -
trunk/Source/WebCore/ChangeLog
r100246 r100247 1 2011-11-15 Kent Tamura <tkent@chromium.org> 2 3 [V8] Fix incorrect handling of JavaScript properties in DOMStringMap 4 https://bugs.webkit.org/show_bug.cgi?id=53578 5 6 Reviewed by Adam Barth. 7 8 Follows a JSC behavior change by r96893. 9 10 * bindings/v8/custom/V8DOMStringMapCustom.cpp: 11 (WebCore::V8DOMStringMap::namedPropertyGetter): 12 Propagate to the JavaScript object if the DOMStringMap object 13 doesn't have the requested item. 14 (WebCore::V8DOMStringMap::namedPropertyDeleter): ditto. 15 (WebCore::V8DOMStringMap::namedPropertySetter): 16 Try to set a property to only a DOMStringMap object. 17 1 18 2011-11-14 Pavel Feldman <pfeldman@google.com> 2 19 -
trunk/Source/WebCore/bindings/v8/custom/V8DOMStringMapCustom.cpp
r96166 r100247 50 50 { 51 51 INC_STATS("DOM.DOMStringMap.NamedPropertyGetter"); 52 return v8StringOrUndefined(V8DOMStringMap::toNative(info.Holder())->item(toWebCoreString(name))); 52 String value = V8DOMStringMap::toNative(info.Holder())->item(toWebCoreString(name)); 53 if (value.isNull()) 54 return notHandledByInterceptor(); 55 return v8StringOrUndefined(value); 53 56 } 54 57 … … 67 70 { 68 71 INC_STATS("DOM.DOMStringMap.NamedPropertyDeleter"); 69 70 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())71 return v8::False();72 if (info.Holder()->HasRealNamedCallbackProperty(name))73 return v8::False();74 75 72 ExceptionCode ec = 0; 76 73 V8DOMStringMap::toNative(info.Holder())->deleteItem(toWebCoreString(name), ec); 77 if (ec) 78 throwError(ec); 79 return v8::True(); 74 return ec ? v8::False() : v8::True(); 80 75 } 81 76 … … 83 78 { 84 79 INC_STATS("DOM.DOMStringMap.NamedPropertySetter"); 85 86 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())87 return value;88 if (info.Holder()->HasRealNamedCallbackProperty(name))89 return value;90 91 80 ExceptionCode ec = 0; 92 81 V8DOMStringMap::toNative(info.Holder())->setItem(toWebCoreString(name), toWebCoreString(value), ec);
Note:
See TracChangeset
for help on using the changeset viewer.