Changeset 238286 in webkit


Ignore:
Timestamp:
Nov 16, 2018 9:51:10 AM (5 years ago)
Author:
Antti Koivisto
Message:

REGRESSION(r237467) [PSON] iOS: Going back to a page sometimes doesn't restore the full page
https://bugs.webkit.org/show_bug.cgi?id=191737

Reviewed by Simon Fraser.

  • WebProcess/WebPage/WebPage.cpp:

(WebKit::WebPage::setLayerTreeStateIsFrozen):

Layer tree should stay frozen in m_shouldResetDrawingArea state. Otherwise spurious commit transactions may
mess up state on UI process side.

Specifically WKWebView._needsResetViewStateAfterCommitLoadForMainFrame would get stuck to TRUE and prevent
all viewport updates because WKWebView._firstPaintAfterCommitLoadTransactionID has value greater
than any current transaction IDs.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r238284 r238286  
     12018-11-16  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION(r237467) [PSON] iOS: Going back to a page sometimes doesn't restore the full page
     4        https://bugs.webkit.org/show_bug.cgi?id=191737
     5
     6        Reviewed by Simon Fraser.
     7
     8        * WebProcess/WebPage/WebPage.cpp:
     9        (WebKit::WebPage::setLayerTreeStateIsFrozen):
     10
     11        Layer tree should stay frozen in m_shouldResetDrawingArea state. Otherwise spurious commit transactions may
     12        mess up state on UI process side.
     13
     14        Specifically WKWebView._needsResetViewStateAfterCommitLoadForMainFrame would get stuck to TRUE and prevent
     15        all viewport updates because WKWebView._firstPaintAfterCommitLoadTransactionID has value greater
     16        than any current transaction IDs.
     17
    1182018-11-16  Chris Dumez  <cdumez@apple.com>
    219
  • trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp

    r238212 r238286  
    23342334        return;
    23352335
    2336     drawingArea->setLayerTreeStateIsFrozen(frozen || m_isSuspended);
     2336    drawingArea->setLayerTreeStateIsFrozen(frozen || m_isSuspended || m_shouldResetDrawingArea);
    23372337}
    23382338
Note: See TracChangeset for help on using the changeset viewer.