Title: [285891] branches/safari-612.3.6.1-branch/Source/WebKit
Revision
285891
Author
repst...@apple.com
Date
2021-11-16 14:57:24 -0800 (Tue, 16 Nov 2021)

Log 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

Modified Paths

Diff

Modified: branches/safari-612.3.6.1-branch/Source/WebKit/ChangeLog (285890 => 285891)


--- branches/safari-612.3.6.1-branch/Source/WebKit/ChangeLog	2021-11-16 22:55:52 UTC (rev 285890)
+++ branches/safari-612.3.6.1-branch/Source/WebKit/ChangeLog	2021-11-16 22:57:24 UTC (rev 285891)
@@ -1,3 +1,31 @@
+2021-11-16  Kocsen Chung  <kocsen_ch...@apple.com>
+
+        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
+
+    2021-10-01  Brent Fulgham  <bfulg...@apple.com>
+
+            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.
+
 2021-11-12  Russell Epstein  <repst...@apple.com>
 
         Revert r285690. rdar://problem/83381842

Modified: branches/safari-612.3.6.1-branch/Source/WebKit/WebProcess/WebPage/WebFrame.cpp (285890 => 285891)


--- branches/safari-612.3.6.1-branch/Source/WebKit/WebProcess/WebPage/WebFrame.cpp	2021-11-16 22:55:52 UTC (rev 285890)
+++ branches/safari-612.3.6.1-branch/Source/WebKit/WebProcess/WebPage/WebFrame.cpp	2021-11-16 22:57:24 UTC (rev 285891)
@@ -237,6 +237,8 @@
 
 void WebFrame::invalidatePolicyListener()
 {
+    Ref protectedThis { *this };
+
     if (!m_policyListenerID)
         return;
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to