electron/shell/browser/api
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
..
views chore: remove unused classes of views API (#22861) 2020-03-28 15:44:57 +09:00
electron_api_app.cc fix: allow blocking IO for setAppLogsPath to avoid DCHECK (#23111) 2020-04-21 12:28:01 -07:00
electron_api_app.h chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
electron_api_app_mac.mm fix: allow blocking IO for setAppLogsPath to avoid DCHECK (#23111) 2020-04-21 12:28:01 -07:00
electron_api_app_mas.mm chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_auto_updater.cc chore: rename node bindings atom => electron (#22176) 2020-02-14 06:25:39 -05:00
electron_api_auto_updater.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_browser_view.cc chore: rename node bindings atom => electron (#22176) 2020-02-14 06:25:39 -05:00
electron_api_browser_view.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_browser_window.cc chore: make WebContentsView take webPreferences as parameter (#22997) 2020-04-09 16:01:16 +09:00
electron_api_browser_window.h fix: remove cyclic references of BrowserWindow (#22006) 2020-02-11 09:37:46 +09:00
electron_api_browser_window_mac.mm chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_browser_window_views.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_content_tracing.cc refactor: migrate base::ThreadPool() as trait to base::ThreadPool:: API (#22555) 2020-03-09 09:13:59 -07:00
electron_api_cookies.cc chore: bump chromium to 2600291d041c530698616a4716cdf (master) (#23122) 2020-04-20 20:25:38 -04:00
electron_api_cookies.h refactor: ginify Cookies (#22823) 2020-03-25 15:34:53 -07:00
electron_api_data_pipe_holder.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_data_pipe_holder.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_debugger.cc refactor: EventEmitters without gin_helper (#22726) 2020-03-18 12:57:08 -07:00
electron_api_debugger.h refactor: EventEmitters without gin_helper (#22726) 2020-03-18 12:57:08 -07:00
electron_api_desktop_capturer.cc refactor: ginify Menu (#22916) 2020-04-02 16:07:56 -07:00
electron_api_desktop_capturer.h refactor: ginify desktopCapturer (#22746) 2020-03-19 11:35:11 -07:00
electron_api_dialog.cc fix: add handle scope in dialog's promise callback (#22658) 2020-03-12 11:17:47 -07:00
electron_api_download_item.cc refactor: ginify DownloadItem (#22924) 2020-04-02 17:22:46 -07:00
electron_api_download_item.h refactor: ginify DownloadItem (#22924) 2020-04-02 17:22:46 -07:00
electron_api_event.cc chore: rename node bindings atom => electron (#22176) 2020-02-14 06:25:39 -05:00
electron_api_event_emitter.cc chore: stop leaking v8 environment (#22761) 2020-03-20 14:15:55 -07:00
electron_api_event_emitter.h refactor: EventEmitters without gin_helper (#22726) 2020-03-18 12:57:08 -07:00
electron_api_global_shortcut.cc refactor: ginify globalShortcut (#22755) 2020-03-19 14:33:45 -07:00
electron_api_global_shortcut.h refactor: ginify globalShortcut (#22755) 2020-03-19 14:33:45 -07:00
electron_api_in_app_purchase.cc chore: rename node bindings atom => electron (#22176) 2020-02-14 06:25:39 -05:00
electron_api_in_app_purchase.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_menu.cc chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
electron_api_menu.h refactor: ginify Menu (#22916) 2020-04-02 16:07:56 -07:00
electron_api_menu_mac.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_menu_mac.mm refactor: ginify Menu (#22916) 2020-04-02 16:07:56 -07:00
electron_api_menu_views.cc refactor: ginify Menu (#22916) 2020-04-02 16:07:56 -07:00
electron_api_menu_views.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_native_theme.cc chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
electron_api_native_theme.h fix: propagate preferred color scheme to the renderer (#22896) 2020-03-30 15:39:50 -07:00
electron_api_native_theme_mac.mm chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_net.cc refactor: ginify net.request (#22779) 2020-03-23 13:09:45 -07:00
electron_api_net.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_net_log.cc refactor: ginify session.netLog (#22732) 2020-03-18 16:46:05 -07:00
electron_api_net_log.h refactor: ginify session.netLog (#22732) 2020-03-18 16:46:05 -07:00
electron_api_notification.cc refactor: ginify Notification (#22821) 2020-03-31 11:42:32 -07:00
electron_api_notification.h refactor: ginify Notification (#22821) 2020-03-31 11:42:32 -07:00
electron_api_power_monitor.cc refactor: ginify powerMonitor (#22751) 2020-03-24 09:03:29 -07:00
electron_api_power_monitor.h refactor: ginify powerMonitor (#22751) 2020-03-24 09:03:29 -07:00
electron_api_power_monitor_mac.mm chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_power_monitor_win.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_power_save_blocker.cc chore: rename node bindings atom => electron (#22176) 2020-02-14 06:25:39 -05:00
electron_api_power_save_blocker.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_protocol.cc refactor: ginify protocol (#22812) 2020-03-26 10:34:32 -07:00
electron_api_protocol.h refactor: ginify protocol (#22812) 2020-03-26 10:34:32 -07:00
electron_api_screen.cc fix: screen module should still be creatable if the first create is before the ready event (#22895) 2020-03-31 14:49:15 -07:00
electron_api_screen.h chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_service_worker_context.cc refactor: ginify ServiceWorkerContext (#22756) 2020-03-20 14:15:14 -07:00
electron_api_service_worker_context.h refactor: ginify ServiceWorkerContext (#22756) 2020-03-20 14:15:14 -07:00
electron_api_session.cc refactor: ginify DownloadItem (#22924) 2020-04-02 17:22:46 -07:00
electron_api_session.h refactor: ginify protocol (#22812) 2020-03-26 10:34:32 -07:00
electron_api_system_preferences.cc chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
electron_api_system_preferences.h spec: unskip webview.printToPDF (#22122) 2020-02-11 03:35:05 +00:00
electron_api_system_preferences_mac.mm chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_system_preferences_win.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_top_level_window.cc refactor: return null when passing empty menu templates (#23364) 2020-05-04 08:19:21 -07:00
electron_api_top_level_window.h feat: default gtk darkTheme option to nativeTheme.shouldUseDarkColors for better platform support (#20138) 2020-03-30 15:02:16 +09:00
electron_api_tray.cc fix: missing handlescopes in event emission (#23140) 2020-04-27 11:38:43 -07:00
electron_api_tray.h fix: missing handlescopes in event emission (#23140) 2020-04-27 11:38:43 -07:00
electron_api_url_loader.cc chore: bump chromium to 0f4170320ff37e971064916aed1dc (master) (#23285) 2020-04-30 13:20:44 -07:00
electron_api_url_loader.h refactor: ginify net.request (#22779) 2020-03-23 13:09:45 -07:00
electron_api_view.cc chore: remove unused classes of views API (#22861) 2020-03-28 15:44:57 +09:00
electron_api_view.h chore: remove unused classes of views API (#22861) 2020-03-28 15:44:57 +09:00
electron_api_web_contents.cc fix: respect system language preferences on Win/macOS (#23247) 2020-05-04 10:49:29 -07:00
electron_api_web_contents.h fix: build when some buildflags are disabled (#23307) 2020-04-28 23:16:10 -07:00
electron_api_web_contents_impl.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_web_contents_mac.mm chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
electron_api_web_contents_view.cc chore: make WebContentsView take webPreferences as parameter (#22997) 2020-04-09 16:01:16 +09:00
electron_api_web_contents_view.h chore: make WebContentsView take webPreferences as parameter (#22997) 2020-04-09 16:01:16 +09:00
electron_api_web_request.cc fix: webRequest module should work with file:// protocol (#22903) 2020-04-01 16:38:40 +09:00
electron_api_web_request.h fix: make webRequest work with WebSocket (#22040) 2020-02-11 14:56:09 +09:00
electron_api_web_view_manager.cc chore: rename node bindings atom => electron (#22176) 2020-02-14 06:25:39 -05:00
event.cc fix: remove catch-all HandleScope (#22531) 2020-03-10 18:16:58 -07:00
event.h chore: remove native_mate (Part 12) (#20869) 2019-10-31 16:56:00 +09:00
frame_subscriber.cc chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
frame_subscriber.h chore: bump chromium to 98ebf6c3f0b7bd96bdb1a4b42208f (master) (#22999) 2020-04-13 16:39:26 -07:00
gpu_info_enumerator.cc chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064) 2020-03-03 13:35:05 -08:00
gpu_info_enumerator.h chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064) 2020-03-03 13:35:05 -08:00
gpuinfo_manager.cc chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064) 2020-03-03 13:35:05 -08:00
gpuinfo_manager.h chore: bump chromium to 5b340c815ce15ab2efcf277ed19e9 (master) (#22064) 2020-03-03 13:35:05 -08:00
message_port.cc feat: add onclose method to MessagePort (#22532) 2020-03-13 10:00:50 -07:00
message_port.h feat: MessagePorts in the main process (#22404) 2020-03-11 18:07:54 -07:00
process_metric.cc feat: add memory to app.getAppMetrics() (#18831) 2019-07-23 13:41:58 -07:00
process_metric.h feat: add memory to app.getAppMetrics() (#18831) 2019-07-23 13:41:58 -07:00
save_page_handler.cc chore: rename atom -> electron (#21986) 2020-02-04 12:19:40 -08:00
save_page_handler.h refactor: migrates util::Promise to gin (#20871) 2019-11-01 15:10:32 +09:00
ui_event.cc refactor: ginify Tray (#22822) 2020-03-30 10:32:02 +09:00
ui_event.h refactor: ginify Tray (#22822) 2020-03-30 10:32:02 +09:00