cef/libcef/browser/extensions
Marshall Greenblatt a12c2ab3e1 Add support for MimeHandlerViewInCrossProcessFrame (fixes issue #2727)
The PDF loading documentation in extension_system.cc has be updated to
describe the new code paths.

To support delivery of input events to the mime handler renderer process it is
now necessary to route events via the correct RWHV interface. For Aura-based
platforms (Windows/Linux) this means RWHVAura::On*Event and for macOS this
means RWHVMac::RouteOrProcess*Event. Since Aura uses UI event types these have
become the source of truth on Aura-based platforms with conversion to Web event
types when needed (primarily for OSR).

This change also adds a timeout for CefProcessHostMsg_GetNewBrowserInfo to
avoid a hung renderer process if the guest WebContents route is not
registered via CefMimeHandlerViewGuestDelegate::OnGuestDetached as expected
prior to CefBrowserInfoManager::OnGetNewBrowserInfo being called. This
timeout can be disabled for testing purposes by passing the
`--disable-new-browser-info-timeout` command-line flag.

The `--disable-features=MimeHandlerViewInCrossProcessFrame` command-line
flag can be used for a limited time to restore the previous implementation
based on BrowserPlugin. That implementation will be deleted starting with
the 3897 branch update.

Known issues:
- ExecuteJavaScript calls on the frame hosting the PDF extension will not
  be routed to the mime handler renderer process.
- The PDF extension will not load successfully if blocked by
  ChromePluginPlaceholder and then manually continued via the "Run this
  plugin" context menu option (see https://crbug.com/533069#c41).
2020-01-24 20:16:47 -05:00
..
api libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
value_store libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
browser_extensions_util.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
browser_extensions_util.h Move message routing from CefBrowser to CefFrame (see issue #2498). 2019-05-29 17:44:56 +03:00
browser_platform_delegate_background.cc Add support for MimeHandlerViewInCrossProcessFrame (fixes issue #2727) 2020-01-24 20:16:47 -05:00
browser_platform_delegate_background.h Add support for MimeHandlerViewInCrossProcessFrame (fixes issue #2727) 2020-01-24 20:16:47 -05:00
chrome_api_registration.cc Update to Chromium version 71.0.3578.0 (#599034) 2018-10-25 12:57:05 -04:00
chrome_api_registration.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
component_extension_resource_manager.cc Update to Chromium version 77.0.3865.0 (#681094) 2019-09-04 15:13:32 +00:00
component_extension_resource_manager.h Update to Chromium version 76.0.3809.0 (#665002) 2019-07-16 15:34:16 -04:00
extension_background_host.cc Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
extension_background_host.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
extension_function_details.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
extension_function_details.h Update to Chromium version 78.0.3904.0 (#693954) 2019-10-01 13:55:16 +00:00
extension_host_delegate.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
extension_host_delegate.h Update to Chromium version 77.0.3865.0 (#681094) 2019-09-04 15:13:32 +00:00
extension_system_factory.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
extension_system_factory.h Update to Chromium revision cb947c01 (#352221) 2015-10-09 17:31:27 -04:00
extension_system.cc Add support for MimeHandlerViewInCrossProcessFrame (fixes issue #2727) 2020-01-24 20:16:47 -05:00
extension_system.h Update to Chromium version 77.0.3865.0 (#681094) 2019-09-04 15:13:32 +00:00
extension_view_host.cc Update to Chromium revision 9ef2aa86 (#550428) 2018-05-04 10:50:26 +02:00
extension_view_host.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
extension_web_contents_observer.cc Add NetworkService support for extensions and downloads (see issue #2622). 2019-05-01 17:10:52 -04:00
extension_web_contents_observer.h Update to Chromium version 73.0.3665.0 (#620590) 2019-01-18 11:25:51 +01:00
extensions_api_client.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
extensions_api_client.h Add support for Chrome Storage Extension API (issue #1947) 2017-09-11 18:42:30 +00:00
extensions_browser_api_provider.cc Update to Chromium version 70.0.3538.0 (#587811) 2018-09-05 15:42:42 +02:00
extensions_browser_api_provider.h Update to Chromium version 70.0.3538.0 (#587811) 2018-09-05 15:42:42 +02:00
extensions_browser_client.cc libcef: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:49:22 +01:00
extensions_browser_client.h Update to Chromium version 78.0.3904.0 (#693954) 2019-10-01 13:55:16 +00:00
mime_handler_view_guest_delegate.cc Add support for MimeHandlerViewInCrossProcessFrame (fixes issue #2727) 2020-01-24 20:16:47 -05:00
mime_handler_view_guest_delegate.h Add support for MimeHandlerViewInCrossProcessFrame (fixes issue #2727) 2020-01-24 20:16:47 -05:00
pdf_extension_util.cc Update to Chromium revision adb61db1 (#508578) 2017-10-26 15:58:05 -04:00
pdf_extension_util.h Add PDF extension support (issue #1565) 2015-07-23 14:02:03 -04:00
pdf_web_contents_helper_client.cc Add support for MimeHandlerViewInCrossProcessFrame (fixes issue #2727) 2020-01-24 20:16:47 -05:00
pdf_web_contents_helper_client.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00