electron/shell/browser
marekharanczyk 507cbdc80a
fix: do not cancel CORS preflight request on proxy auth. (#29266)
* fix: do not cancel CORS preflight request on proxy auth.

If connecting via proxy, preflight request can receive 407
header response from proxy. This does not mean request
was finished even though it received headers (from proxy,
not the destination server), so prevent "completing"
and most importantly deleting it, which causes request
to be canceled in network layer. Just continue to monitor it
and await proper response from server. Also add circut breaker
to cancel request if proxy auth failed 3 times (for example
user keeps cancelling auth). This behavior happens only
when app registered WebRequest api listeners.

* Port chromium webrequest changes to electron code.

Move relevant parts of chromium WebRequestProxyingURLLoaderFactory from
https://chromium-review.googlesource.com/c/chromium/src/+/2011781
into electron ProxyingURLLoaderFactory.

* Update code to upstreamed version and remove retyr count failsafe.

Co-authored-by: Milan Burda <milan.burda@gmail.com>
2021-06-21 14:06:52 +09:00
..
api chore: tune-up electron::api::NetLog (#29534) 2021-06-20 18:52:28 -07:00
badging chore: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09:00
bluetooth chore: bump chromium to 93.0.4539.0 (main) (#29608) 2021-06-16 15:43:51 -07:00
extensions chore: bump chromium to 93.0.4539.0 (main) (#29608) 2021-06-16 15:43:51 -07:00
lib fix: select-bluetooth-device on Windows (#29591) 2021-06-09 10:48:18 -04:00
linux refactor: use auto env = base::Environment::Create(); everywhere (#29502) 2021-06-04 09:23:06 +09:00
mac chore: bump chromium to 92.0.4511.0 (master) (#29173) 2021-05-19 16:15:47 -07:00
media refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
net fix: do not cancel CORS preflight request on proxy auth. (#29266) 2021-06-21 14:06:52 +09:00
notifications chore: use std::make_unique/base::MakeRefCounted when possible (#29510) 2021-06-08 11:00:05 +09:00
osr chore: bump chromium to 93.0.4539.0 (main) (#29608) 2021-06-16 15:43:51 -07:00
plugins chore: bump chromium to 93.0.4530.0 (master) (#29256) 2021-06-03 01:05:04 -07:00
printing chore: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09:00
resources Bump v15.0.0-nightly.20210618 2021-06-18 06:01:54 -07:00
serial chore: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09:00
ui fix: fix hover state not clear bug when BrowserWindow is not resizable (#611) (#29721) 2021-06-21 10:10:40 +09:00
win chore: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09:00
auto_updater.cc chore: bump chromium to 0e4ca9c0a63d7a39bd910997ad4c6 (master) (#24687) 2020-08-12 11:33:58 -07:00
auto_updater.h chore: use consistent parameter names (#29361) 2021-06-01 10:46:25 +09:00
auto_updater_mac.mm refactor: ginify autoUpdater (#24678) 2020-07-28 11:04:34 -07:00
browser.cc refactor: use PathProvider for user-data-dir and others (#29649) 2021-06-15 09:32:56 +09:00
browser.h chore: bump chromium to 93.0.4530.0 (master) (#29256) 2021-06-03 01:05:04 -07:00
browser_linux.cc refactor: use auto env = base::Environment::Create(); everywhere (#29502) 2021-06-04 09:23:06 +09:00
browser_mac.mm chore: bump chromium to 93.0.4530.0 (master) (#29256) 2021-06-03 01:05:04 -07:00
browser_observer.h chore: bump chromium to 0e4ca9c0a63d7a39bd910997ad4c6 (master) (#24687) 2020-08-12 11:33:58 -07:00
browser_process_impl.cc refactor: use PathProvider for user-data-dir and others (#29649) 2021-06-15 09:32:56 +09:00
browser_process_impl.h chore: bump chromium to 93.0.4532.2 (main) (#29527) 2021-06-04 19:03:31 -07:00
browser_win.cc chore: bump chromium to 93.0.4530.0 (master) (#29256) 2021-06-03 01:05:04 -07:00
child_web_contents_tracker.cc chore: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09: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
cookie_change_notifier.cc chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
cookie_change_notifier.h chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
electron_autofill_driver.cc Revert "chore: bump chromium to 91.0.4448.0 (master) (#28009)" 2021-03-30 21:28:40 -05:00
electron_autofill_driver.h Revert "chore: bump chromium to 91.0.4448.0 (master) (#28009)" 2021-03-30 21:28:40 -05:00
electron_autofill_driver_factory.cc Bump v12.0.0-nightly.20200827 2020-08-27 07:31:51 -07:00
electron_autofill_driver_factory.h Bump v12.0.0-nightly.20200827 2020-08-27 07:31:51 -07:00
electron_browser_client.cc feat: bring --enable-logging functionality in line with Chromium (#25089) 2021-06-17 14:17:25 -07:00
electron_browser_client.h feat: bring --enable-logging functionality in line with Chromium (#25089) 2021-06-17 14:17:25 -07:00
electron_browser_context.cc feat: bring --enable-logging functionality in line with Chromium (#25089) 2021-06-17 14:17:25 -07:00
electron_browser_context.h chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
electron_browser_handler_impl.cc chore: remove unused and broken ipcRendererInternal.sendTo() (#29743) 2021-06-17 23:26:18 -05:00
electron_browser_handler_impl.h chore: remove unused and broken ipcRendererInternal.sendTo() (#29743) 2021-06-17 23:26:18 -05:00
electron_browser_main_parts.cc feat: bring --enable-logging functionality in line with Chromium (#25089) 2021-06-17 14:17:25 -07:00
electron_browser_main_parts.h chore: bump chromium to 93.0.4539.0 (main) (#29608) 2021-06-16 15:43:51 -07:00
electron_browser_main_parts_mac.mm chore: bump chromium to 92.0.4511.0 (master) (#29173) 2021-05-19 16:15:47 -07:00
electron_browser_main_parts_posix.cc chore: bump chromium to 92.0.4511.0 (master) (#29173) 2021-05-19 16:15:47 -07:00
electron_download_manager_delegate.cc chore: bump chromium to 93.0.4530.0 (master) (#29256) 2021-06-03 01:05:04 -07:00
electron_download_manager_delegate.h chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09: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: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09:00
electron_javascript_dialog_manager.h Revert "chore: bump chromium to 91.0.4448.0 (master) (#28009)" 2021-03-30 21:28:40 -05:00
electron_navigation_throttle.cc refactor: wire will-navigate up to a navigation throttle instead of OpenURL (#25065) 2020-08-21 12:34:09 -07:00
electron_navigation_throttle.h refactor: wire will-navigate up to a navigation throttle instead of OpenURL (#25065) 2020-08-21 12:34:09 -07:00
electron_pdf_web_contents_helper_client.cc chore: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09: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 refactor: use rfh instead of process id in permission manager (#28791) 2021-04-26 16:24:12 +09:00
electron_permission_manager.h chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09: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: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
electron_speech_recognition_manager_delegate.h chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
electron_web_ui_controller_factory.cc chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
electron_web_ui_controller_factory.h chore: bump chromium to 7264889ce3aad1568ff3d211c81fe (master) (#27003) 2020-12-22 14:14:44 -08:00
event_emitter_mixin.cc refactor: EventEmitters without gin_helper (#22726) 2020-03-18 12:57:08 -07:00
event_emitter_mixin.h feat: add webContents.setWindowOpenHandler API (#24517) 2020-11-10 09:06:03 -08:00
extended_web_contents_observer.h chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09: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 chore: disable default async spellchecker on Windows (#29690) 2021-06-15 09:11:49 -07:00
feature_list.h feat: initialize field trials from command line arguments (#28305) 2021-03-26 09:49:00 +09:00
file_select_helper.cc chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
file_select_helper.h chore: use consistent parameter names (#29361) 2021-06-01 10:46:25 +09:00
file_select_helper_mac.mm fix: transparently package bundles as zip archives (#25030) 2020-10-27 17:05:28 -07:00
font_defaults.cc Revert "chore: bump chromium to 91.0.4448.0 (master) (#28009)" 2021-03-30 21:28:40 -05:00
font_defaults.h chore: bump chromium to ec5bc1743792d64724693eb357083 (master) (#24984) 2020-09-21 01:00:36 -07:00
javascript_environment.cc chore: bump Node.js to v16.2.0 (#29244) 2021-06-17 08:50:56 +02:00
javascript_environment.h fix: let Node.js perform microtask checkpoint in the main process (#24131) 2020-06-17 10:08:10 -07:00
login_handler.cc chore: bump chromium to 93.0.4530.0 (master) (#29256) 2021-06-03 01:05:04 -07:00
login_handler.h fix: implement 'login' event for net.ClientRequest (#21096) 2019-11-14 10:01:18 -08:00
microtasks_runner.cc refactor: use public node::CallbackScope where possible (#27001) 2020-12-15 11:39:25 -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: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
native_browser_view.h fix: draggable regions calculation in BrowserWindow/BrowserView (#26690) 2020-11-30 21:02:04 -08:00
native_browser_view_mac.h fix: draggable regions calculation in BrowserWindow/BrowserView (#26690) 2020-11-30 21:02:04 -08:00
native_browser_view_mac.mm chore: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09:00
native_browser_view_views.cc chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
native_browser_view_views.h fix: draggable views on BrowserViews on Windows (#26738) 2020-12-01 15:03:00 -08:00
native_window.cc chore: use std::make_unique/base::MakeRefCounted when possible (#29510) 2021-06-08 11:00:05 +09:00
native_window.h chore: bump chromium to 93.0.4530.0 (master) (#29256) 2021-06-03 01:05:04 -07:00
native_window_mac.h fix: ensure custom traffic lights float to top (#29595) 2021-06-10 14:52:23 +02:00
native_window_mac.mm chore: remove c-style conversion for vibrantView (#29724) 2021-06-16 10:13:42 -07:00
native_window_observer.h feat: include resize edge with will-resize event (#29199) 2021-06-02 11:37:10 +09:00
native_window_views.cc chore: use std::make_unique/base::MakeRefCounted when possible (#29510) 2021-06-08 11:00:05 +09:00
native_window_views.h chore: bump chromium to 93.0.4530.0 (master) (#29256) 2021-06-03 01:05:04 -07:00
native_window_views_win.cc feat: include resize edge with will-resize event (#29199) 2021-06-02 11:37:10 +09:00
network_hints_handler_impl.cc refactor: ginify Session (#23569) 2020-05-19 10:18:12 -07: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
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 chore: use =default for default constructors/destructors (#29511) 2021-06-04 13:16:13 +09:00
protocol_registry.h fix: load source maps from custom protocols and asar bundles (#28573) 2021-04-11 21:59:36 -07:00
relauncher.cc chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
relauncher.h chore: use consistent parameter names (#29361) 2021-06-01 10:46:25 +09:00
relauncher_linux.cc refactor: apply some 'clang-tidy -fix' changes (#20172) 2019-09-13 10:26:59 -04:00
relauncher_mac.cc
relauncher_win.cc chore: bump chromium to 6d130075d378a64187360ba4e7820 (master) (#24256) 2020-07-13 21:13:34 -04:00
session_preferences.cc feat: add webContents.setWindowOpenHandler API (#24517) 2020-11-10 09:06:03 -08:00
session_preferences.h feat: add webContents.setWindowOpenHandler API (#24517) 2020-11-10 09:06:03 -08:00
special_storage_policy.cc chore: bump chromium to 6d130075d378a64187360ba4e7820 (master) (#24256) 2020-07-13 21:13:34 -04:00
special_storage_policy.h chore: bump chromium to 6d130075d378a64187360ba4e7820 (master) (#24256) 2020-07-13 21:13:34 -04: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 93.0.4539.0 (main) (#29608) 2021-06-16 15:43:51 -07:00
web_contents_permission_helper.h feat: add serial api support (#25237) 2020-09-28 12:22:03 -04:00
web_contents_preferences.cc feat: add new imageAnimationPolicy webpref and webContents setter (#29095) 2021-06-08 11:00:22 +09:00
web_contents_preferences.h feat: add webContents.setWindowOpenHandler API (#24517) 2020-11-10 09:06:03 -08:00
web_contents_zoom_controller.cc chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
web_contents_zoom_controller.h chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
web_dialog_helper.cc chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00
web_dialog_helper.h chore: use consistent parameter names (#29361) 2021-06-01 10:46:25 +09:00
web_view_guest_delegate.cc feat: add webContents.setWindowOpenHandler API (#24517) 2020-11-10 09:06:03 -08:00
web_view_guest_delegate.h chore: bump chromium to 6b9fa6b352d824d052222e1abe541 (master) (#25558) 2020-10-15 18:30:41 -07:00
web_view_manager.cc chore: remove unused element_instance_id_to_guest_map_ from WebViewManager (#28979) 2021-05-04 09:59:44 -04:00
web_view_manager.h chore: remove unused element_instance_id_to_guest_map_ from WebViewManager (#28979) 2021-05-04 09:59:44 -04:00
window_list.cc chore: bump chromium to 0e4ca9c0a63d7a39bd910997ad4c6 (master) (#24687) 2020-08-12 11:33:58 -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 refactor: use C++11 class member variable initialization (#27477) 2021-01-26 12:16:21 -06:00
zoom_level_delegate.h chore: trim unused STL includes (#29414) 2021-06-01 10:34:44 +09:00