Title: [212176] trunk/Source/WebKit2
Revision
212176
Author
simon.fra...@apple.com
Date
2017-02-10 19:59:06 -0800 (Fri, 10 Feb 2017)

Log Message

Zero out some WKWebView state in the case of a web content crash
https://bugs.webkit.org/show_bug.cgi?id=168157

Reviewed by Tim Horton.

Reset some bits of state in WKWebView when the web content process crashes, in
to try to avoid states that might cause the web view to stay blank.

* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _processDidExit]):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (212175 => 212176)


--- trunk/Source/WebKit2/ChangeLog	2017-02-11 03:32:40 UTC (rev 212175)
+++ trunk/Source/WebKit2/ChangeLog	2017-02-11 03:59:06 UTC (rev 212176)
@@ -1,3 +1,16 @@
+2017-02-10  Simon Fraser  <simon.fra...@apple.com>
+
+        Zero out some WKWebView state in the case of a web content crash
+        https://bugs.webkit.org/show_bug.cgi?id=168157
+
+        Reviewed by Tim Horton.
+
+        Reset some bits of state in WKWebView when the web content process crashes, in
+        to try to avoid states that might cause the web view to stay blank.
+
+        * UIProcess/API/Cocoa/WKWebView.mm:
+        (-[WKWebView _processDidExit]):
+
 2017-02-10  Daniel Bates  <daba...@apple.com>
 
         Detach frame from document when entering page cache

Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (212175 => 212176)


--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm	2017-02-11 03:32:40 UTC (rev 212175)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm	2017-02-11 03:59:06 UTC (rev 212176)
@@ -1302,6 +1302,13 @@
     _scrollViewBackgroundColor = WebCore::Color();
     _delayUpdateVisibleContentRects = NO;
     _hadDelayedUpdateVisibleContentRects = NO;
+
+    _frozenVisibleContentRect = std::nullopt;
+    _frozenUnobscuredContentRect = std::nullopt;
+
+    _firstPaintAfterCommitLoadTransactionID = 0;
+    _firstTransactionIDAfterPageRestore = 0;
+    _resizeAnimationTransformTransactionID = std::nullopt;
 }
 
 - (void)_didCommitLoadForMainFrame
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to