Title: [241807] releases/WebKitGTK/webkit-2.24/Source/WebKit
Revision
241807
Author
[email protected]
Date
2019-02-20 04:45:02 -0800 (Wed, 20 Feb 2019)

Log Message

Merge r241777 - Remove assertion introduced in r229683
https://bugs.webkit.org/show_bug.cgi?id=194825
<rdar://problem/47628258>

Reviewed by Geoffrey Garen.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
If we reach this code and the form's original Document's Frame has been destroyed,
we have already been told to submit the form so do so, just like we do if the WebPage
has been destroyed.  This is a rare edge case having to do with the timing of Frame
destruction and decidePolicyForNavigationAction response, which unfortunately does not
reproduce with a test case unless the timing of IPC is just right.

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.24/Source/WebKit/ChangeLog (241806 => 241807)


--- releases/WebKitGTK/webkit-2.24/Source/WebKit/ChangeLog	2019-02-20 12:44:58 UTC (rev 241806)
+++ releases/WebKitGTK/webkit-2.24/Source/WebKit/ChangeLog	2019-02-20 12:45:02 UTC (rev 241807)
@@ -1,3 +1,19 @@
+2019-02-19  Alex Christensen  <[email protected]>
+
+        Remove assertion introduced in r229683
+        https://bugs.webkit.org/show_bug.cgi?id=194825
+        <rdar://problem/47628258>
+
+        Reviewed by Geoffrey Garen.
+
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+        (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
+        If we reach this code and the form's original Document's Frame has been destroyed,
+        we have already been told to submit the form so do so, just like we do if the WebPage
+        has been destroyed.  This is a rare edge case having to do with the timing of Frame
+        destruction and decidePolicyForNavigationAction response, which unfortunately does not
+        reproduce with a test case unless the timing of IPC is just right.
+
 2019-02-16  Darin Adler  <[email protected]>
 
         Continue reducing use of String::format, now focusing on hex: "%p", "%x", etc.

Modified: releases/WebKitGTK/webkit-2.24/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp (241806 => 241807)


--- releases/WebKitGTK/webkit-2.24/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp	2019-02-20 12:44:58 UTC (rev 241806)
+++ releases/WebKitGTK/webkit-2.24/Source/WebKit/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp	2019-02-20 12:45:02 UTC (rev 241807)
@@ -972,9 +972,11 @@
     auto& form = formState.form();
 
     auto* sourceCoreFrame = formState.sourceDocument().frame();
-    RELEASE_ASSERT(sourceCoreFrame);
+    if (!sourceCoreFrame)
+        return completionHandler();
     auto* sourceFrame = WebFrame::fromCoreFrame(*sourceCoreFrame);
-    ASSERT(sourceFrame);
+    if (!sourceFrame)
+        return completionHandler();
 
     auto& values = formState.textFieldValues();
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to