Title: [242611] trunk/Source/WebKit
- Revision
- 242611
- Author
- [email protected]
- Date
- 2019-03-07 13:50:35 -0800 (Thu, 07 Mar 2019)
Log Message
Regression(r242580) WebKit.NetworkProcessCrashWithPendingConnection API is crashing on iOS debug
https://bugs.webkit.org/show_bug.cgi?id=195416
Reviewed by Antti Koivisto.
Drop ASSERT_NOT_REACHED() in WebPage::didCompletePageTransition() when the tree is still frozen due to
LayerTreeFreezeReason::ProcessSuspended. As demonstrated by this API test, nothing prevents a load from
completing and WebPage::didCompletePageTransition() to get called *after* WebProcess::prepareToSuspend()
has been called. From the logging during the test, I can tell that WebProcess::processDidResume() gets
called later on and the LayerTreeFreezeReason::ProcessSuspended freezing reason gets dropped, as expected.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::didCompletePageTransition):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (242610 => 242611)
--- trunk/Source/WebKit/ChangeLog 2019-03-07 21:49:22 UTC (rev 242610)
+++ trunk/Source/WebKit/ChangeLog 2019-03-07 21:50:35 UTC (rev 242611)
@@ -1,5 +1,21 @@
2019-03-07 Chris Dumez <[email protected]>
+ Regression(r242580) WebKit.NetworkProcessCrashWithPendingConnection API is crashing on iOS debug
+ https://bugs.webkit.org/show_bug.cgi?id=195416
+
+ Reviewed by Antti Koivisto.
+
+ Drop ASSERT_NOT_REACHED() in WebPage::didCompletePageTransition() when the tree is still frozen due to
+ LayerTreeFreezeReason::ProcessSuspended. As demonstrated by this API test, nothing prevents a load from
+ completing and WebPage::didCompletePageTransition() to get called *after* WebProcess::prepareToSuspend()
+ has been called. From the logging during the test, I can tell that WebProcess::processDidResume() gets
+ called later on and the LayerTreeFreezeReason::ProcessSuspended freezing reason gets dropped, as expected.
+
+ * WebProcess/WebPage/WebPage.cpp:
+ (WebKit::WebPage::didCompletePageTransition):
+
+2019-03-07 Chris Dumez <[email protected]>
+
Clean up / simplify ProcessAssertion code
https://bugs.webkit.org/show_bug.cgi?id=195394
Modified: trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp (242610 => 242611)
--- trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp 2019-03-07 21:49:22 UTC (rev 242610)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp 2019-03-07 21:50:35 UTC (rev 242611)
@@ -3144,12 +3144,6 @@
{
unfreezeLayerTree(LayerTreeFreezeReason::PageTransition);
- if (m_LayerTreeFreezeReasons.contains(LayerTreeFreezeReason::ProcessSuspended)) {
- RELEASE_LOG_ERROR(ProcessSuspension, "%p - WebPage (PageID=%" PRIu64 ") - LayerTreeFreezeReason::ProcessSuspended was set when removing LayerTreeFreezeReason::PageTransition; current reasons are %d",
- this, m_pageID, m_LayerTreeFreezeReasons.toRaw());
- ASSERT_NOT_REACHED();
- }
-
RELEASE_LOG_IF_ALLOWED("%p - WebPage - Did complete page transition", this);
bool isInitialEmptyDocument = !m_mainFrame;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes