[Webkit-unassigned] [Bug 179495] AX: AOM: Implement string type properties

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 16 15:59:12 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=179495

--- Comment #3 from Nan Wang <n_wang at apple.com> ---
Comment on attachment 327101
  --> https://bugs.webkit.org/attachment.cgi?id=327101
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=327101&action=review

>> Source/WebCore/accessibility/AccessibilityObject.cpp:2500
>> +    const AtomicString& ariaPlaceholder = stringValueForProperty(AXPropertyName::Placeholder);
> 
> if this is still atomic why did the return type change?

Because stringValueForProperty() is not returning the reference, so here if we don't change it would be error that returning reference to local temporary object.
const AtomicString& ariaPlaceholder = stringValueForProperty(AXPropertyName::Placeholder); is to prolong the lifetime of the String object within this function.
I tried to change stringValueForProperty() by returning a reference, but getting the string value that's being set from JS would hit the assertion where "The atomic string comes from an other thread!"

>> Source/WebCore/accessibility/AccessibilityObject.h:704
>> +    const String ariaKeyShortcutsValue() const;
> 
> should we remove aria as a prefix since this does AOM and aria

Ok

>> Source/WebCore/accessibility/AccessibilityObject.h:985
>> +    virtual const String ariaLiveRegionRelevant() const { return nullAtom(); }
> 
> ditto about these method names with aria

Ok

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171116/d660eb67/attachment-0001.html>


More information about the webkit-unassigned mailing list