electron/spec-main
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
..
fixtures fix: set default menu in will-finish-launching event (#23214) 2020-04-23 10:51:31 -07:00
.eslintrc
.gitignore spec: add tests for the autoUpdater on macOS that actually test if it works (#17442) 2019-03-29 17:32:52 -07:00
ambient.d.ts chore: make WebContentsView take webPreferences as parameter (#22997) 2020-04-09 16:01:16 +09:00
api-app-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-auto-updater-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-autoupdater-darwin-spec.ts build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
api-browser-view-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-browser-window-affinity-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-browser-window-spec.ts test: refactor crashReporter tests (#23178) 2020-04-22 15:53:12 -07:00
api-callbacks-registry-spec.ts build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
api-content-tracing-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-context-bridge-spec.ts refactor: port parts of window-setup to use ctx bridge instead of being run in the main world (#23194) 2020-04-22 12:42:51 -07:00
api-crash-reporter-spec.ts test: fix crashReporter test on woa (#23242) 2020-04-23 16:08:50 -04:00
api-debugger-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-deprecate-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-desktop-capturer-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-dialog-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-global-shortcut-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-in-app-purchase-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-ipc-main-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-ipc-renderer-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-ipc-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-menu-item-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-menu-spec.ts refactor: return null when passing empty menu templates (#23364) 2020-05-04 08:19:21 -07:00
api-native-theme-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-net-log-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-net-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-notification-dbus-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-notification-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-power-monitor-spec.ts refactor: ginify powerMonitor (#22751) 2020-03-24 09:03:29 -07:00
api-power-save-blocker-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-protocol-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-remote-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-screen-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-service-workers-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-session-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-shell-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-subframe-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-system-preferences-spec.ts chore: fix type check in systemPreferences module specs (#23064) 2020-04-09 15:55:47 -07:00
api-touch-bar-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-tray-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-view-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-web-contents-spec.ts spec: fix type errors in devToolsWebContents (#23187) 2020-04-20 16:51:27 -07:00
api-web-contents-view-spec.ts chore: make WebContentsView take webPreferences as parameter (#22997) 2020-04-09 16:01:16 +09:00
api-web-frame-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
api-web-request-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
asar-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
autofill-spec.ts test: add test for datalist autofills (#23110) 2020-04-21 12:28:31 -07:00
chromium-spec.ts fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
events-helpers.ts build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
extensions-spec.ts refactor: remove code for non-native extensions shim (#23340) 2020-04-30 09:38:09 -07:00
guest-window-manager-spec.ts refactor: improve feature string parsing (#23130) 2020-04-21 16:23:00 -04:00
index.js test: refactor crashReporter tests (#23178) 2020-04-22 15:53:12 -07:00
internal-spec.ts refactor: improve feature string parsing (#23130) 2020-04-21 16:23:00 -04:00
modules-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
node-spec.ts fix: use Node's microtasks policy in node_main.cc (#23153) 2020-04-21 12:18:22 -07:00
package.json test: refactor crashReporter tests (#23178) 2020-04-22 15:53:12 -07:00
security-warnings-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
spec-helpers.ts build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
spellchecker-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
types-spec.ts build: enable JS semicolons (#22783) 2020-03-20 13:28:31 -07:00
version-bump-spec.ts build: fix beta version bumper logic for betas beyond 10 (#22810) 2020-03-24 09:04:12 -04:00
visibility-state-spec.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
webview-spec.ts chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
window-helpers.ts feat: expose electron/{process} typed modules (#22937) 2020-04-06 17:04:09 -07:00
yarn.lock test: refactor crashReporter tests (#23178) 2020-04-22 15:53:12 -07:00