Changeset 236989 in webkit


Ignore:
Timestamp:
Oct 9, 2018 4:40:21 PM (6 years ago)
Author:
achristensen@apple.com
Message:

REGRESSION(r231663) loading in hidden WKWebViews stalls because WebProcess is suspended
https://bugs.webkit.org/show_bug.cgi?id=190417
<rdar://problem/43391014>

Reviewed by Chris Dumez.

  • UIProcess/Cocoa/NavigationState.mm:

(WebKit::NavigationState::didChangeIsLoading):
Revert r321663, but keep the change to TestWKWebView.mm because that made the tests more reliable.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r236988 r236989  
     12018-10-09  Alex Christensen  <achristensen@webkit.org>
     2
     3        REGRESSION(r231663) loading in hidden WKWebViews stalls because WebProcess is suspended
     4        https://bugs.webkit.org/show_bug.cgi?id=190417
     5        <rdar://problem/43391014>
     6
     7        Reviewed by Chris Dumez.
     8
     9        * UIProcess/Cocoa/NavigationState.mm:
     10        (WebKit::NavigationState::didChangeIsLoading):
     11        Revert r321663, but keep the change to TestWKWebView.mm because that made the tests more reliable.
     12
    1132018-10-09  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/Cocoa/NavigationState.mm

    r236344 r236989  
    11051105        }
    11061106    } else if (m_activityToken) {
    1107         if (m_webView._isBackground)
    1108             releaseNetworkActivityTokenAfterLoadCompletion();
    1109         else {
    1110             // The application is visible so we delay releasing the background activity for 3 seconds to give it a chance to start another navigation
    1111             // before suspending the WebContent process <rdar://problem/27910964>.
    1112             RELEASE_LOG_IF(m_webView->_page->isAlwaysOnLoggingAllowed(), ProcessSuspension, "%p - NavigationState will release its process network assertion soon because the page load completed", this);
    1113             m_releaseActivityTimer.startOneShot(3_s);
    1114         }
     1107        // The application is visible so we delay releasing the background activity for 3 seconds to give it a chance to start another navigation
     1108        // before suspending the WebContent process <rdar://problem/27910964>.
     1109        RELEASE_LOG_IF(m_webView->_page->isAlwaysOnLoggingAllowed(), ProcessSuspension, "%p - NavigationState will release its process network assertion soon because the page load completed", this);
     1110        m_releaseActivityTimer.startOneShot(3_s);
    11151111    }
    11161112#endif
Note: See TracChangeset for help on using the changeset viewer.