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
REGRESSION(r263094): [GTK][WPE] API test /webkit/WebKitWebContext/lan…
…guages is failing https://bugs.webkit.org/show_bug.cgi?id=188111 Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2021-03-02 Reviewed by Michael Catanzaro. Source/WebKit: The GLib API allows to change the user preferred languages after the web process is created. Since r263094 we are no loner sending the new overrides to the web process. Instead of calling overrideUserPreferredLanguages() we now set the overrides in the WebProcessPool configuration, so that we can remove the language observer. * UIProcess/API/glib/WebKitWebContext.cpp: (webkit_web_context_set_preferred_languages): Use WebProcessPool::setOverrideLanguages() instead of overrideUserPreferredLanguages(). * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::WebProcessPool) Remove the language observer registration. (WebKit::WebProcessPool::~WebProcessPool): Remove the language observer unregistration. (WebKit::WebProcessPool::setOverrideLanguages): Update the language overrides in the configuration and notify all processes. (WebKit::WebProcessPool::languageChanged): Deleted. * UIProcess/WebProcessPool.h: * WebProcess/WebProcess.cpp: (WebKit::WebProcess::userPreferredLanguagesChanged const): Call overrideUserPreferredLanguages() again here. * WebProcess/WebProcess.h: * WebProcess/WebProcess.messages.in: Tools: * TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebContext.cpp: (testWebContextLanguages): Invalid locale is ignored now instead of throwing a exception. * TestWebKitAPI/glib/TestExpectations.json: Remove test expectation now that it passes again. Canonical link: https://commits.webkit.org/234750@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
33fe757
commit 8078504297dbdb6d3d862f5ea4895ff6c7f9671d
Showing
10 changed files
with
53 additions
and
27 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
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