Changeset 275475 in webkit


Ignore:
Timestamp:
Apr 5, 2021 7:16:30 PM (3 years ago)
Author:
Chris Dumez
Message:

Make sure the Frame always gets destroyed on the main thread
https://bugs.webkit.org/show_bug.cgi?id=224213
<rdar://75131946>

Reviewed by Alex Christensen.

Make sure the Frame always gets destroyed on the main thread.

Since http://trac.webkit.org/changeset/181791, Frame is ThreadSafeRefCounted and captured
on other threads. We should make sure the Frame is always destroyed on the main thread
though, since it is a main thread object and we hold WeakPtrs to it in many places.

  • page/AbstractFrame.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r275471 r275475  
     12021-04-05  Chris Dumez  <cdumez@apple.com>
     2
     3        Make sure the Frame always gets destroyed on the main thread
     4        https://bugs.webkit.org/show_bug.cgi?id=224213
     5        <rdar://75131946>
     6
     7        Reviewed by Alex Christensen.
     8
     9        Make sure the Frame always gets destroyed on the main thread.
     10
     11        Since http://trac.webkit.org/changeset/181791, Frame is ThreadSafeRefCounted and captured
     12        on other threads. We should make sure the Frame is always destroyed on the main thread
     13        though, since it is a main thread object and we hold WeakPtrs to it in many places.
     14
     15        * page/AbstractFrame.h:
     16
    1172021-04-05  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebCore/page/AbstractFrame.h

    r269435 r275475  
    3636
    3737// FIXME: Rename Frame to LocalFrame and AbstractFrame to Frame.
    38 class AbstractFrame : public ThreadSafeRefCounted<AbstractFrame>, public CanMakeWeakPtr<AbstractFrame> {
     38class AbstractFrame : public ThreadSafeRefCounted<AbstractFrame, WTF::DestructionThread::Main>, public CanMakeWeakPtr<AbstractFrame> {
    3939public:
    4040    virtual ~AbstractFrame();
Note: See TracChangeset for help on using the changeset viewer.