Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r225043 - [GTK][WPE] webkit_cookie_manager_delete_all_cookies d…
…oesn't delete the cookies if called before a web process is running https://bugs.webkit.org/show_bug.cgi?id=175265 Reviewed by Michael Catanzaro. Source/WebKit: This is what happens: 1- We create our WebKitWebContext that creates its WebProcessPool. 2- We set a persistent cookies storage. 3- We ask the website data store to delete all cookies, but since website data store is a web process observer and we haven't spawned any web process yet, it creates a new WebProcessPool with the default configuration (no persistent cookies) and sends the message to delete the cookies there. 4- The network process of the second process pool does nothing because it doesn't have cookies at all. We need to set the primary data store of the WebProcessPool when WebKitWebContext is constructed to ensure that one is used before the web process is launched. * UIProcess/API/glib/WebKitWebContext.cpp: (webkitWebContextConstructed): Tools: Add test case. * TestWebKitAPI/Tests/WebKitGLib/TestCookieManager.cpp: (testCookieManagerPersistentStorageDeleteAll): (serverCallback): (beforeAll):
- Loading branch information
1 parent
c3d630f
commit f1ba975
Showing
5 changed files
with
82 additions
and
12 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