Changeset 245894 in webkit
- Timestamp:
- May 30, 2019, 11:05:18 AM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/WebPage/ios/WebPageIOS.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r245891 r245894 1 2019-05-30 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Rare crash under `WebPage::shouldIgnoreMetaViewport const` when shrinking to fit content 4 https://bugs.webkit.org/show_bug.cgi?id=198374 5 <rdar://problem/51261348> 6 7 Reviewed by Tim Horton. 8 9 This is a speculative fix for the crash; what appears to be happening is that the shrink-to-fit-content timer 10 is somehow being scheduled after the page has already been closed. We can probably fix this by bailing when 11 scheduling shrink-to-fit-content if m_isClosed is true. 12 13 * WebProcess/WebPage/ios/WebPageIOS.mm: 14 (WebKit::WebPage::scheduleShrinkToFitContent): 15 (WebKit::WebPage::immediatelyShrinkToFitContent): 16 1 17 2019-05-30 Truitt Savell <tsavell@apple.com> 2 18 -
trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
r245872 r245894 3293 3293 void WebPage::scheduleShrinkToFitContent() 3294 3294 { 3295 if (m_isClosed) 3296 return; 3297 3295 3298 m_shrinkToFitContentTimer.restart(); 3296 3299 } … … 3304 3307 bool WebPage::immediatelyShrinkToFitContent() 3305 3308 { 3309 if (m_isClosed) 3310 return false; 3311 3306 3312 if (!shouldIgnoreMetaViewport()) 3307 3313 return false;
Note:
See TracChangeset
for help on using the changeset viewer.