electron/shell/browser
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
..
api fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
extensions fix: build when some buildflags are disabled (#23307) 2020-04-28 23:16:10 -07:00
lib refactor: ginify powerMonitor (#22751) 2020-03-24 09:03:29 -07:00
linux chore: bump chromium to f5b345dd470f14eef6e44732ccf23 (master) (#20649) 2019-10-28 15:12:35 -07:00
mac fix: revert {Atom => Electron}Application rename (#22206) 2020-02-21 11:05:03 -08:00
media refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
net chore: bump chromium to 0f4170320ff37e971064916aed1dc (master) (#23285) 2020-04-30 13:20:44 -07:00
notifications chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
osr chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
plugins feat: enable pdf viewer (#21794) 2020-02-12 16:39:12 -08:00
printing chore: wrap cb with default invocation (#22013) 2020-02-04 19:06:03 +00:00
resources Bump v10.0.0-nightly.20200504 2020-05-04 08:31:35 -07:00
ui fix: add missing handle scope in file_dialog_gtk (#23109) 2020-04-15 10:45:32 -07:00
win refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
auto_updater.cc chore: remove native_mate (Part 8) (#20598) 2019-10-18 09:31:29 +09:00
auto_updater.h chore: remove native_mate (Part 8) (#20598) 2019-10-18 09:31:29 +09:00
auto_updater_mac.mm chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
browser.cc chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
browser.h chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
browser_linux.cc chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
browser_mac.mm feat: add force option to app.focus() (#22612) 2020-03-11 09:07:01 -07:00
browser_observer.h chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
browser_process_impl.cc chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064) 2020-03-03 13:35:05 -08:00
browser_process_impl.h chore: bump chromium to 28254008f9e7a2aea5d4426906bfd (master) (#22025) 2020-02-06 07:05:30 +00:00
browser_win.cc feat: add force option to app.focus() (#22612) 2020-03-11 09:07:01 -07:00
child_web_contents_tracker.cc feat: enhance native window.open to match the custom implementation's behavior (#19703) 2020-03-26 11:05:45 -07:00
child_web_contents_tracker.h feat: enhance native window.open to match the custom implementation's behavior (#19703) 2020-03-26 11:05:45 -07:00
common_web_contents_delegate.cc refactor: migrate base::ThreadPool() as trait to base::ThreadPool:: API (#22555) 2020-03-09 09:13:59 -07:00
common_web_contents_delegate.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
common_web_contents_delegate_mac.mm refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
common_web_contents_delegate_views.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
cookie_change_notifier.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
cookie_change_notifier.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_autofill_driver.cc fix: remove catch-all HandleScope (#22531) 2020-03-10 18:16:58 -07:00
electron_autofill_driver.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_autofill_driver_factory.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_autofill_driver_factory.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_browser_client.cc fix: build when some buildflags are disabled (#23307) 2020-04-28 23:16:10 -07:00
electron_browser_client.h feat: enhance native window.open to match the custom implementation's behavior (#19703) 2020-03-26 11:05:45 -07:00
electron_browser_context.cc chore: bump chromium to 8f405dc5d5e416ffaf640aa3d088a (master) (#23107) 2020-04-14 17:14:38 -07:00
electron_browser_context.h refactor: ginify protocol (#22812) 2020-03-26 10:34:32 -07:00
electron_browser_main_parts.cc chore: bump chromium to 2600291d041c530698616a4716cdf (master) (#23122) 2020-04-20 20:25:38 -04:00
electron_browser_main_parts.h chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
electron_browser_main_parts_mac.mm fix: revert {Atom => Electron}Application rename (#22206) 2020-02-21 11:05:03 -08:00
electron_browser_main_parts_posix.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_download_manager_delegate.cc fix: missing HandleScope in OnDownloadPathGenerated (#23005) 2020-04-08 12:47:43 -07:00
electron_download_manager_delegate.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_gpu_client.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_gpu_client.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_javascript_dialog_manager.cc chore: remove discouraged base::Passed (#22871) 2020-04-13 13:52:07 -07:00
electron_javascript_dialog_manager.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_navigation_throttle.cc fix: remove catch-all HandleScope (#22531) 2020-03-10 18:16:58 -07:00
electron_navigation_throttle.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_paths.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_pdf_web_contents_helper_client.cc refactor: remove references to non-existent webui (#20867) 2019-11-04 09:50:31 -08:00
electron_pdf_web_contents_helper_client.h refactor: remove references to non-existent webui (#20867) 2019-11-04 09:50:31 -08:00
electron_permission_manager.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_permission_manager.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_quota_permission_context.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_quota_permission_context.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_speech_recognition_manager_delegate.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_speech_recognition_manager_delegate.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_web_ui_controller_factory.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_web_ui_controller_factory.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
event_emitter_mixin.cc refactor: EventEmitters without gin_helper (#22726) 2020-03-18 12:57:08 -07:00
event_emitter_mixin.h fix: missing handlescopes in event emission (#23140) 2020-04-27 11:38:43 -07:00
fake_location_provider.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
fake_location_provider.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
feature_list.cc fix: some websites using WebComponents V0 not loading (#21858) 2020-01-22 22:03:17 +09:00
feature_list.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
font_defaults.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
font_defaults.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
javascript_environment.cc fix: missing handlescopes in event emission (#23140) 2020-04-27 11:38:43 -07:00
javascript_environment.h fix: missing handlescopes in event emission (#23140) 2020-04-27 11:38:43 -07:00
login_handler.cc fix: remove catch-all HandleScope (#22531) 2020-03-10 18:16:58 -07:00
login_handler.h fix: implement 'login' event for net.ClientRequest (#21096) 2019-11-14 10:01:18 -08:00
microtasks_runner.cc chore: bump chromium to f755b70e34659441e72c1a928a406 (master) (#21000) 2019-12-10 16:22:35 -08:00
microtasks_runner.h chore: bump chromium to f755b70e34659441e72c1a928a406 (master) (#21000) 2019-12-10 16:22:35 -08:00
native_browser_view.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
native_browser_view.h feat: add getBounds() method for BrowserView (#19370) 2019-07-29 19:43:05 -07:00
native_browser_view_mac.h feat: add getBounds() method for BrowserView (#19370) 2019-07-29 19:43:05 -07:00
native_browser_view_mac.mm feat: add getBounds() method for BrowserView (#19370) 2019-07-29 19:43:05 -07:00
native_browser_view_views.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
native_browser_view_views.h feat: add getBounds() method for BrowserView (#19370) 2019-07-29 19:43:05 -07:00
native_window.cc chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064) 2020-03-03 13:35:05 -08:00
native_window.h fix: propagate preferred color scheme to the renderer (#22896) 2020-03-30 15:39:50 -07:00
native_window_mac.h fix: propagate preferred color scheme to the renderer (#22896) 2020-03-30 15:39:50 -07:00
native_window_mac.mm fix: propagate preferred color scheme to the renderer (#22896) 2020-03-30 15:39:50 -07:00
native_window_observer.h feat: add rotate gesture for macOS (#19294) 2019-07-23 14:42:26 -05:00
native_window_views.cc fix: moveAbove not working on Windows (#23161) 2020-04-21 15:58:38 -04:00
native_window_views.h feat: default gtk darkTheme option to nativeTheme.shouldUseDarkColors for better platform support (#20138) 2020-03-30 15:02:16 +09:00
native_window_views_win.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
network_hints_handler_impl.cc fix: hold browser_context instead of render_frame_host to fix lifetime issues (#23271) 2020-05-01 16:37:01 +09:00
network_hints_handler_impl.h fix: hold browser_context instead of render_frame_host to fix lifetime issues (#23271) 2020-05-01 16:37:01 +09:00
node_debugger.cc chore: bump node to v12.16.2 (master) (#23057) 2020-04-14 09:59:03 -07:00
node_debugger.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
pref_store_delegate.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
pref_store_delegate.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
protocol_registry.cc fix: webRequest module should work with file:// protocol (#22903) 2020-04-01 16:38:40 +09:00
protocol_registry.h fix: webRequest module should work with file:// protocol (#22903) 2020-04-01 16:38:40 +09:00
relauncher.cc chore: bump chromium to 0f4170320ff37e971064916aed1dc (master) (#23285) 2020-04-30 13:20:44 -07:00
relauncher.h chore: fix linting after shell rename 2019-06-19 17:33:28 -07:00
relauncher_linux.cc refactor: apply some 'clang-tidy -fix' changes (#20172) 2019-09-13 10:26:59 -04:00
relauncher_mac.cc refactor: replace includes for atom with shell 2019-06-19 17:33:28 -07:00
relauncher_win.cc refactor: replace includes for atom with shell 2019-06-19 17:33:28 -07:00
session_preferences.cc chore: bump chromium to 63be48daea281d4f8c834c2e707a7 (master) (#19923) 2019-09-18 15:58:00 -04:00
session_preferences.h fix: ignore non-absolute session preload script paths when sandboxed (#19066) 2019-07-03 08:05:45 -07:00
special_storage_policy.cc refactor: run clang-tidy (#20231) 2019-09-16 18:12:00 -04:00
special_storage_policy.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
unresponsive_suppressor.cc refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
unresponsive_suppressor.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
web_contents_permission_helper.cc chore: bump chromium to bc8f70ed4cfe2262ea833750eaddb (master) (#22649) 2020-03-14 16:54:14 -04:00
web_contents_permission_helper.h chore: bump chromium to f1d9522c04ca8fa0a906f88ababe9 (master) (#18648) 2019-07-02 18:22:09 -07:00
web_contents_preferences.cc feat: disable the remote module by default (#22091) 2020-02-10 10:49:09 -08:00
web_contents_preferences.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
web_contents_zoom_controller.cc chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00
web_contents_zoom_controller.h chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00
web_dialog_helper.cc fix: missing HandleScope in WebDialogHelper (#22843) 2020-03-26 20:37:28 -07:00
web_dialog_helper.h chore: DirectoryLister memory management improvement (#18634) 2019-07-01 07:58:06 -07:00
web_view_guest_delegate.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
web_view_guest_delegate.h chore: bump chromium to f1d9522c04ca8fa0a906f88ababe9 (master) (#18648) 2019-07-02 18:22:09 -07:00
web_view_manager.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
web_view_manager.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
window_list.cc fix: nullptr check when closing windows (#22948) 2020-04-07 20:41:14 -07:00
window_list.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
window_list_observer.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00
zoom_level_delegate.cc chore: bump chromium to e049d599a8332b9b2785b0178be74 (master) (#20314) 2019-10-18 12:57:34 -07:00
zoom_level_delegate.h refactor: rename the atom namespace to electron 2019-06-19 17:33:28 -07:00