Title: [253897] trunk/Source/WebCore
- Revision
- 253897
- Author
- [email protected]
- Date
- 2019-12-23 18:34:11 -0800 (Mon, 23 Dec 2019)
Log Message
REGRESSION (r253634): Reproducible crash going back and forward on goodreads.com in Page::setPageScaleFactor
https://bugs.webkit.org/show_bug.cgi?id=205569
Reviewed by Wenson Hsieh.
When going quickly back and forward, WebPage::didCommitLoad/WebPage::viewportConfigurationChanged/WebPage::scalePage
can be called for a page in the page cache, so the FrameView can be null.
Null-check the view here like the surrounding code does.
* page/Page.cpp:
(WebCore::Page::setPageScaleFactor):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253896 => 253897)
--- trunk/Source/WebCore/ChangeLog 2019-12-24 01:49:45 UTC (rev 253896)
+++ trunk/Source/WebCore/ChangeLog 2019-12-24 02:34:11 UTC (rev 253897)
@@ -1,3 +1,18 @@
+2019-12-23 Simon Fraser <[email protected]>
+
+ REGRESSION (r253634): Reproducible crash going back and forward on goodreads.com in Page::setPageScaleFactor
+ https://bugs.webkit.org/show_bug.cgi?id=205569
+
+ Reviewed by Wenson Hsieh.
+
+ When going quickly back and forward, WebPage::didCommitLoad/WebPage::viewportConfigurationChanged/WebPage::scalePage
+ can be called for a page in the page cache, so the FrameView can be null.
+
+ Null-check the view here like the surrounding code does.
+
+ * page/Page.cpp:
+ (WebCore::Page::setPageScaleFactor):
+
2019-12-23 Andres Gonzalez <[email protected]>
IsolatedObject implementation of property setters.
Modified: trunk/Source/WebCore/page/Page.cpp (253896 => 253897)
--- trunk/Source/WebCore/page/Page.cpp 2019-12-24 01:49:45 UTC (rev 253896)
+++ trunk/Source/WebCore/page/Page.cpp 2019-12-24 02:34:11 UTC (rev 253897)
@@ -1059,7 +1059,7 @@
m_pageScaleFactor = scale;
- if (!view->delegatesPageScaling()) {
+ if (view && !view->delegatesPageScaling()) {
view->setNeedsLayoutAfterViewConfigurationChange();
view->setNeedsCompositingGeometryUpdate();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes