⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 283386 in webkit


Ignore:
Timestamp:
Oct 1, 2021, 11:41:08 AM (5 years ago)
Author:
Brent Fulgham
Message:

Protect WebFrame during invalidatePolicyListener()
https://bugs.webkit.org/show_bug.cgi?id=229981
<rdar://problem/82807413>

Reviewed by Alex Christensen.

  • WebProcess/WebPage/WebFrame.cpp:

(WebKit::WebFrame::invalidatePolicyListeners): Protect the WebFrame while
policy handlers are run.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r283383 r283386  
     12021-10-01  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Protect WebFrame during invalidatePolicyListener()
     4        https://bugs.webkit.org/show_bug.cgi?id=229981
     5        <rdar://problem/82807413>
     6
     7        Reviewed by Alex Christensen.
     8
     9        * WebProcess/WebPage/WebFrame.cpp:
     10        (WebKit::WebFrame::invalidatePolicyListeners): Protect the WebFrame while
     11        policy handlers are run.
     12
    1132021-10-01  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Source/WebKit/WebProcess/WebPage/WebFrame.cpp

    r282712 r283386  
    235235void WebFrame::invalidatePolicyListeners()
    236236{
     237    Ref protectedThis { *this };
     238
    237239    m_policyDownloadID = { };
    238240
Note: See TracChangeset for help on using the changeset viewer.