Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[WPE][GTK] REGRESSION (r294381): WPEWebProcess leak after closing bro…
…wser https://bugs.webkit.org/show_bug.cgi?id=241353 Reviewed by Alex Christensen. Do not keep strong reference to WebPageProxy in the async IPC callback, instead use WeakPtr to let the page be destroyed if necessary, otherwise the page may keep its process pool alive after the page was closed. * Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp: exposed a couple of internal methods for testing the behavior. (webkitWebViewForceRepaintForTesting): (webkitSetCachedProcessSuspensionDelayForTesting): * Source/WebKit/UIProcess/API/glib/WebKitWebViewInternal.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::forceRepaint): replaced strong reference in the callback with a weak one. * Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp: (testNoWebProcessLeakAfterWebKitWebContextDestroy): new test that makes sure that outstanding async IPC callbacks are run when page and its context are destroyed. (beforeAll): * Tools/TestWebKitAPI/glib/WebKitGLib/WebViewTest.cpp: (WebViewTest::waitUntilLoadFinished): * Tools/TestWebKitAPI/glib/WebKitGLib/WebViewTest.h: Canonical link: https://commits.webkit.org/251516@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295511 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
6 changed files
with
56 additions
and
6 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