Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
REGRESSION(r253231): Debug assertion failures under ~WebDeviceOrienta…
…tionUpdateProvider(Proxy) https://bugs.webkit.org/show_bug.cgi?id=204977 rdar://problem/57724251 Reviewed by Per Arne Vollan. In the UI process, have the WebPageProxy swap out its WebDeviceOrientationUpdateProviderProxy whenever it connects to a new process, instead of creating one on construction and holding onto it for the rest of the WebPageProxy lifetime. The …UpdateProviderProxy assumes that its page will have the same ID at the time of registering as a message receiver and later unregistering, but the page ID could change if the WebPageProxy swaps web processes. Using a new instance per web page ID ensures that the updater is always able to successfully remove itself as a message receiver when deallocating. In the Web process, ~WebDeviceOrientationUpdateProvider() should remove itself as a message receiver specifically for its page ID, rather than as a global message receiver. No new tests -- existing tests (at least the ProcessSwap API tests) revealed the regression. * UIProcess/WebPageProxy.cpp: (WebKit::m_tryCloseTimeoutTimer): (WebKit::WebPageProxy::didAttachToRunningProcess): (WebKit::WebPageProxy::resetState): (WebKit::m_webDeviceOrientationUpdateProviderProxy): Deleted. * UIProcess/WebPageProxy.h: * UIProcess/ios/WebDeviceOrientationUpdateProviderProxy.h: * WebProcess/WebCoreSupport/WebDeviceOrientationUpdateProvider.cpp: (WebKit::WebDeviceOrientationUpdateProvider::WebDeviceOrientationUpdateProvider): (WebKit::WebDeviceOrientationUpdateProvider::~WebDeviceOrientationUpdateProvider): * WebProcess/WebCoreSupport/WebDeviceOrientationUpdateProvider.h: Canonical link: https://commits.webkit.org/218203@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@253256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
eca7d34
commit 769f047
Showing
6 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters