Title: [285899] branches/safari-612.3.6.2-branch/Source/WebKit
Revision
285899
Author
repst...@apple.com
Date
2021-11-16 16:31:49 -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.2-branch/Source/WebKit/ChangeLog (285898 => 285899)


--- branches/safari-612.3.6.2-branch/Source/WebKit/ChangeLog	2021-11-17 00:30:29 UTC (rev 285898)
+++ branches/safari-612.3.6.2-branch/Source/WebKit/ChangeLog	2021-11-17 00:31:49 UTC (rev 285899)
@@ -1,3 +1,31 @@
+2021-11-16  Russell Epstein  <repst...@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-11  Alan Coon  <alanc...@apple.com>
 
         Cherry-pick r285648. rdar://problem/85171163

Modified: branches/safari-612.3.6.2-branch/Source/WebKit/WebProcess/WebPage/WebFrame.cpp (285898 => 285899)


--- branches/safari-612.3.6.2-branch/Source/WebKit/WebProcess/WebPage/WebFrame.cpp	2021-11-17 00:30:29 UTC (rev 285898)
+++ branches/safari-612.3.6.2-branch/Source/WebKit/WebProcess/WebPage/WebFrame.cpp	2021-11-17 00:31:49 UTC (rev 285899)
@@ -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