electron/shell
Sorah Fukumori f176d2494f
fix: respect system language preferences on Win/macOS (#23247)
This commit fixes https://github.com/electron/electron/issues/18829

Previously the full preferences set to OS was not given to Chromium.

Also, this commit improves fallback font selection for CJK text.
Chromium uses browser languages to determine fallback fonts on Windows,
especially kanji/han characters in CJK.

For instance, when user sets 'en-US, ja-JP' to Accept-Language,
while Chromium chooses Japanese font for kanji text, but Electron
chooses Chinese font.  This is because only the first language was given
to Accept-Language on Electron.

This patch is based on https://github.com/electron/electron/pull/15532

Co-authored-by: Nitish Sakhawalkar <nitsakh@icloud.com>
Co-authored-by: Kasumi Hanazuki <kasumi@rollingapple.net>

Co-authored-by: Nitish Sakhawalkar <nitsakh@icloud.com>
Co-authored-by: Kasumi Hanazuki <kasumi@rollingapple.net>
2020-05-04 10:49:29 -07:00
..
app fix: build when some buildflags are disabled (#23307) 2020-04-28 23:16:10 -07:00
browser fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
common fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
renderer fix: do not leak IPC or context bridge promises (#23321) 2020-04-29 15:51:41 -07:00
utility fix: build when some buildflags are disabled (#23307) 2020-04-28 23:16:10 -07:00