Changeset 270041 in webkit


Ignore:
Timestamp:
Nov 19, 2020 11:51:58 AM (3 years ago)
Author:
Andres Gonzalez
Message:

Fix for crash in Accessibility::performFunctionOnMainThread.
https://bugs.webkit.org/show_bug.cgi?id=219168

Reviewed by Chris Fleizach.

AXIsolatedObject::performFunctionOnMainThread captures the this pointer
to be accessed on the main thread. But since the same object can be
accessed concurrently on the AX thread, Accessibility::performFunctionOnMainThread
must be blocking even though the caller doesn't expect a return value.

  • accessibility/AccessibilityObjectInterface.h:

(WebCore::Accessibility::performFunctionOnMainThread):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r270040 r270041  
     12020-11-19  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        Fix for crash in Accessibility::performFunctionOnMainThread.
     4        https://bugs.webkit.org/show_bug.cgi?id=219168
     5
     6        Reviewed by Chris Fleizach.
     7
     8        AXIsolatedObject::performFunctionOnMainThread captures the this pointer
     9        to be accessed on the main thread. But since the same object can be
     10        accessed concurrently on the AX thread, Accessibility::performFunctionOnMainThread
     11        must be blocking even though the caller doesn't expect a return value.
     12
     13        * accessibility/AccessibilityObjectInterface.h:
     14        (WebCore::Accessibility::performFunctionOnMainThread):
     15
    1162020-11-19  Fujii Hironori  <Hironori.Fujii@sony.com>
    217
  • trunk/Source/WebCore/accessibility/AccessibilityObjectInterface.h

    r269923 r270041  
    15601560        return lambda();
    15611561
    1562     callOnMainThread([&lambda] {
     1562    callOnMainThreadAndWait([&lambda] {
    15631563        lambda();
    15641564    });
Note: See TracChangeset for help on using the changeset viewer.