Changeset 238817 in webkit
- Timestamp:
- Dec 3, 2018, 1:20:02 PM (7 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r238814 r238817 1 2018-12-03 Alex Christensen <achristensen@webkit.org> 2 3 Update process assertions after swapping processes 4 https://bugs.webkit.org/show_bug.cgi?id=192318 5 <rdar://problem/46377552> 6 7 Reviewed by Chris Dumez. 8 9 If the previous WebProcess had a ProcessAssertion to prevent it from being suspended, 10 after navigation and process swapping we need the new WebProcess to update its process assertions. 11 12 * UIProcess/API/Cocoa/PageLoadStateObserver.h: 13 * UIProcess/Cocoa/NavigationState.h: 14 * UIProcess/Cocoa/NavigationState.mm: 15 (WebKit::NavigationState::didSwapWebProcesses): 16 * UIProcess/PageLoadState.cpp: 17 (WebKit::PageLoadState::didSwapWebProcesses): 18 * UIProcess/PageLoadState.h: 19 * UIProcess/WebPageProxy.cpp: 20 (WebKit::WebPageProxy::finishAttachingToWebProcess): 21 1 22 2018-12-03 Daniel Bates <dabates@apple.com> 2 23 -
trunk/Source/WebKit/UIProcess/API/Cocoa/PageLoadStateObserver.h
r197563 r238817 98 98 void willChangeCertificateInfo() override { } 99 99 void didChangeCertificateInfo() override { } 100 void didSwapWebProcesses() override { } 100 101 101 102 void willChangeWebProcessIsResponsive() override -
trunk/Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
r238771 r238817 355 355 void willChangeWebProcessIsResponsive() override { } 356 356 void didChangeWebProcessIsResponsive() override { } 357 void didSwapWebProcesses() override { }; 357 358 358 359 WebKitWebView* m_webView; -
trunk/Source/WebKit/UIProcess/Cocoa/NavigationState.h
r238771 r238817 177 177 void willChangeWebProcessIsResponsive() override; 178 178 void didChangeWebProcessIsResponsive() override; 179 void didSwapWebProcesses() override; 179 180 180 181 #if PLATFORM(IOS_FAMILY) -
trunk/Source/WebKit/UIProcess/Cocoa/NavigationState.mm
r238771 r238817 1227 1227 } 1228 1228 1229 void NavigationState::didSwapWebProcesses() 1230 { 1231 #if PLATFORM(IOS_FAMILY) 1232 // Transfer our background assertion from the old process to the new one. 1233 if (m_activityToken) 1234 m_activityToken = m_webView->_page->process().throttler().backgroundActivityToken(); 1235 #endif 1236 } 1237 1229 1238 } // namespace WebKit 1230 1239 -
trunk/Source/WebKit/UIProcess/PageLoadState.cpp
r238771 r238817 408 408 } 409 409 410 void PageLoadState::didSwapWebProcesses() 411 { 412 callObserverCallback(&Observer::didSwapWebProcesses); 413 } 414 410 415 void PageLoadState::willChangeProcessIsResponsive() 411 416 { -
trunk/Source/WebKit/UIProcess/PageLoadState.h
r206006 r238817 79 79 virtual void willChangeWebProcessIsResponsive() = 0; 80 80 virtual void didChangeWebProcessIsResponsive() = 0; 81 82 virtual void didSwapWebProcesses() = 0; 81 83 }; 82 84 … … 165 167 void didFinishProgress(const Transaction::Token&); 166 168 void setNetworkRequestsInProgress(const Transaction::Token&, bool); 169 170 void didSwapWebProcesses(); 167 171 168 172 bool committedHasInsecureContent() const { return m_committedState.hasInsecureContent; } -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r238771 r238817 853 853 854 854 pageClient().didRelaunchProcess(); 855 m_pageLoadState.didSwapWebProcesses(); 855 856 m_drawingArea->waitForBackingStoreUpdateOnNextPaint(); 856 857 }
Note:
See TracChangeset
for help on using the changeset viewer.