Changeset 168441 in webkit
- Timestamp:
- May 7, 2014, 2:57:06 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r168439 r168441 1 2014-05-07 Dan Bernstein <mitz@apple.com> 2 3 <rdar://problem/16831276> [iOS] Unparenting a WKWebView that’s loading pauses it 4 https://bugs.webkit.org/show_bug.cgi?id=132659 5 6 Reviewed by Tim Horton. 7 8 * UIProcess/Cocoa/NavigationState.h: Added a member variable. 9 * UIProcess/Cocoa/NavigationState.mm: 10 (WebKit::NavigationState::didChangeIsLoading): When transitioning into loading state, 11 acquire a background activity token. When transitioning out of loading state, dispose of 12 the token. 13 1 14 2014-05-07 Jeremy Jones <jeremyj@apple.com> 2 15 -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.h
r168324 r168441 36 36 #import "APIPolicyClient.h" 37 37 #import "PageLoadState.h" 38 #import "ProcessThrottler.h" 38 39 #import "WeakObjCPtr.h" 39 40 … … 160 161 bool webViewDidUpdateHistoryTitleForURL : 1; 161 162 } m_historyDelegateMethods; 163 164 #if PLATFORM(IOS) 165 std::unique_ptr<ProcessThrottler::BackgroundActivityToken> m_activityToken; 166 #endif 162 167 }; 163 168 -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm
r168324 r168441 52 52 #import "WebFrameProxy.h" 53 53 #import "WebPageProxy.h" 54 #import "WebProcessProxy.h" 54 55 #import <wtf/NeverDestroyed.h> 55 56 … … 626 627 void NavigationState::didChangeIsLoading() 627 628 { 629 #if PLATFORM(IOS) 630 if (m_webView->_page->pageLoadState().isLoading()) 631 m_activityToken = std::make_unique<ProcessThrottler::BackgroundActivityToken>(m_webView->_page->process().throttler()); 632 else 633 m_activityToken = nullptr; 634 #endif 635 628 636 [m_webView didChangeValueForKey:@"loading"]; 629 637 }
Note:
See TracChangeset
for help on using the changeset viewer.