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

Changeset 285891 in webkit


Ignore:
Timestamp:
Nov 16, 2021, 2:57:24 PM (5 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r283386. rdar://problem/83953959

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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283386 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612.3.6.1-branch/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612.3.6.1-branch/Source/WebKit/ChangeLog

    r285756 r285891  
     12021-11-16  Kocsen Chung  <kocsen_chung@apple.com>
     2
     3        Cherry-pick r283386. rdar://problem/83953959
     4
     5    Protect WebFrame during invalidatePolicyListener()
     6    https://bugs.webkit.org/show_bug.cgi?id=229981
     7    <rdar://problem/82807413>
     8   
     9    Reviewed by Alex Christensen.
     10   
     11    * WebProcess/WebPage/WebFrame.cpp:
     12    (WebKit::WebFrame::invalidatePolicyListeners): Protect the WebFrame while
     13    policy handlers are run.
     14   
     15    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283386 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     16
     17    2021-10-01  Brent Fulgham  <bfulgham@apple.com>
     18
     19            Protect WebFrame during invalidatePolicyListener()
     20            https://bugs.webkit.org/show_bug.cgi?id=229981
     21            <rdar://problem/82807413>
     22
     23            Reviewed by Alex Christensen.
     24
     25            * WebProcess/WebPage/WebFrame.cpp:
     26            (WebKit::WebFrame::invalidatePolicyListeners): Protect the WebFrame while
     27            policy handlers are run.
     28
    1292021-11-12  Russell Epstein  <repstein@apple.com>
    230
  • branches/safari-612.3.6.1-branch/Source/WebKit/WebProcess/WebPage/WebFrame.cpp

    r278614 r285891  
    238238void WebFrame::invalidatePolicyListener()
    239239{
     240    Ref protectedThis { *this };
     241
    240242    if (!m_policyListenerID)
    241243        return;
Note: See TracChangeset for help on using the changeset viewer.