Changeset 260515 in webkit
- Timestamp:
- Apr 22, 2020 9:22:38 AM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r260497 r260515 1 2020-04-22 Saam Barati <sbarati@apple.com> 2 3 makeValueRefForValue should be robust against the type encoding of a NSNumber backed by a boolean 4 https://bugs.webkit.org/show_bug.cgi?id=210821 5 <rdar://problem/62136598> 6 7 Reviewed by Tim Horton. 8 9 * DumpRenderTree/mac/AccessibilityNotificationHandler.mm: 10 (makeValueRefForValue): 11 1 12 2020-04-21 Ryan Haddad <ryanhaddad@apple.com> 2 13 -
trunk/Tools/DumpRenderTree/mac/AccessibilityNotificationHandler.mm
r259843 r260515 107 107 return JSValueMakeString(context, [value createJSStringRef].get()); 108 108 if ([value isKindOfClass:[NSNumber class]]) { 109 if (!strcmp([value objCType], @encode(BOOL)) )109 if (!strcmp([value objCType], @encode(BOOL)) || !strcmp([value objCType], "c")) 110 110 return JSValueMakeBoolean(context, [value boolValue]); 111 111 return JSValueMakeNumber(context, [value doubleValue]);
Note: See TracChangeset
for help on using the changeset viewer.