Commit Graph

2189 Commits

Author SHA1 Message Date
Aviv Duek
e4f25cec32 Add two missing resource types to cef_resource_type_t enum 2021-09-22 11:07:55 +00:00
Marshall Greenblatt
b223419041 Windows: Add VS2019 path discovery to msvs_env.bat (fixes issue #2925) 2020-05-13 13:25:18 -04:00
Marshall Greenblatt
bb98749dba Remember the user-selected printer by default (fixes issue #2875) 2020-05-13 13:12:13 -04:00
Marshall Greenblatt
1a0137cfb8 Fix window.print() of PDF file (fixes issue #2987) 2020-05-12 16:31:26 -04:00
Marshall Greenblatt
89b49aac2f Windows: cefclient: Fix return value check for AcquireSync (fixes issue #2933) 2020-05-12 15:43:46 -04:00
Marshall Greenblatt
3d028a9efa Fix fatal error: 'chrome/browser/../site_data.pb.h' file not found
Fixes the following error with an official Release build on macOS.

FAILED: obj/chrome/browser/ui/ui/discards_ui.o
In file included from ../../chrome/browser/ui/webui/discards/discards_ui.cc:21:
In file included from ../../chrome/browser/resource_coordinator/local_site_characteristics_data_store.h:13:
../../chrome/browser/resource_coordinator/local_site_characteristics_data_impl.h:17:10: fatal error: 'chrome/browser/performance_manager/persistence/site_data/site_data.pb.h' file not found
2020-05-12 12:42:04 -04:00
Marshall Greenblatt
b547de9ee5 Fix load of non-standard custom scheme URI as iframe src (see issue #2929) 2020-05-11 18:44:56 -04:00
Marshall Greenblatt
8e9984b3e3 Fix registration of WebSafe schemes (fixes issue #2929) 2020-05-11 18:42:30 -04:00
Marshall Greenblatt
072a5f5c70 Update AUTHORS.txt documentation 2020-05-08 12:40:09 -04:00
Marshall Greenblatt
b9282cc6f6 Update to Chromium version 81.0.4044.138 2020-05-07 13:17:20 -04:00
Marshall Greenblatt
b2b49f1076 Save LocalPrefs.json in CefSettings.root_cache_path (see issue #2890) 2020-04-29 15:41:21 -04:00
Marshall Greenblatt
4e13d9991b Add CefMediaSink::GetIconType (see issue #2900)
This attribute is useful for identifying different classes of cast devices
without first requiring a connection (CAST, CAST_AUDIO, CAST_AUDIO_GROUP, etc).
2020-04-29 15:17:16 -04:00
Vladislav
3afea627b4 Fix OSR resize issue with DPI scaling (fixes issue #2733) 2020-04-27 12:50:26 -04:00
Marshall Greenblatt
c0b313d1bf Fix transposed variables in GetRequestInfo (fixes issue #2530) 2020-04-23 14:37:05 -04:00
Marshall Greenblatt
56f4784cae Fix background color assignment for popups (fixes issue #2482) 2020-04-23 14:06:34 -04:00
Marshall Greenblatt
23f4473cca Fix PDF extension loading of large files (fixes issue #2905)
The PDF extension will send Range requests when loading large PDF files. For
these cross-origin requests to be allowed (from extension origin to PDF origin)
the CORB checks in URLLoader must be disabled.
2020-04-22 16:35:16 -04:00
Alex Maitland
e864886056 Change cef_pdf_print_settings_t custom margins from double to int (fixes issue #2694) 2020-04-21 14:46:51 -04:00
Mike Wiedenbauer
a796f47ab6 Fix OSR keyboard input for editable PDF (fixes issue #2907) 2020-04-21 14:32:51 -04:00
Jengerer
3b56636993 Fix handling of partial range request (fixes issue #2873) 2020-04-20 13:23:32 -04:00
Marshall Greenblatt
b1bb21ce4b Remove DCHECK in InterceptedRequest::OnReceiveRedirect (fixes issue #2917) 2020-04-20 12:39:45 -04:00
Marshall Greenblatt
b382c6232d Update to Chromium version 81.0.4044.113 2020-04-16 15:09:55 -04:00
Marshall Greenblatt
dacda4f675 Fix fatal error: 'components/omnibox/browser/buildflags.h' file not found
Fixes the following error message:

FAILED: obj/chrome/browser/extensions/api/api_registration/generated_api_registration.o
In file included from gen/chrome/browser/extensions/api/generated_api_registration.cc:63:
In file included from ../../chrome/browser/extensions/api/omnibox/omnibox_api.h:18:
../../components/omnibox/browser/autocomplete_match.h:20:10: fatal error:
    'components/omnibox/browser/buildflags.h' file not found
1 error generated.
2020-04-10 16:10:43 -04:00
Marshall Greenblatt
e07275dc37 Update to Chromium version 81.0.4044.92 2020-04-08 13:35:47 -04:00
Mike Wiedenbauer
11b3194d5b Fix AltGr handling for OSR keyboard events (fixes issue #2892) 2020-04-08 11:56:00 -04:00
Mike Wiedenbauer
46e4fef7e3 Linux: Fix CefPrintHandler callbacks from PDF viewer (fixes issue #2906) 2020-04-02 17:29:53 -04:00
Andrei Kurushin
7aed8c8873 Windows: cefclient: Fix accessibility where TreeId type has changed from int to string 2020-04-02 17:29:45 -04:00
Andy Tzeng
6a3b8bdae3 Fix UU_REPLACE_PLUS_WITH_SPACE value to match Chromium (fixes issue #2904) 2020-04-02 17:29:36 -04:00
Vladislav
266704291e Fix OSR popup position when the view origin is offset in screen coords (fixes issue #2902) 2020-04-02 17:29:28 -04:00
rcdrone
754b4eefca Windows: Disable the sandbox if windows_sandbox_info is null
This restores the behavior prior to revision 438382c. Calling
InitializeSandboxInfo from inside libcef won’t work unless libcef is
statically linked with the executable, so there's no point in doing so.
See the Chromium sandbox docs for background.
2020-04-02 17:29:20 -04:00
Cristian Amarie
0a69d0d6e3 Remove unexpected content headers when converting from POST to GET request on 302 redirect response (fixes issue #2883) 2020-04-02 17:29:04 -04:00
Andrei Kurushin
51e8afaeef Fix CefFrame::GetSource crash on detached frame (fixes issue #2898) 2020-04-02 17:28:57 -04:00
Mike Wiedenbauer
b1789de00f Enable smooth scrolling with OSR (fixes issue #2895) 2020-04-02 17:28:46 -04:00
Marshall Greenblatt
8341771462 Mac: Remove unicode character in README.redistrib.txt (fixes issue #2910) 2020-04-02 13:43:49 -04:00
Marshall Greenblatt
468bc37d1a Fix no newline at end of file error with Xcode 11.3.1 2020-04-02 13:37:44 -04:00
Marshall Greenblatt
1606b8e456 Always persist local_state by default (fixes issue #2890)
If a cache_path is specified local_state will now be persisted to a
LocalPrefs.json file. This is necessary because local_state is used to store
the cookie encryption key on Windows.
2020-04-01 17:01:23 -04:00
Marshall Greenblatt
910a87e24d Windows: Fix warning C4457: declaration of 'result' hides function parameter in VS2019 2020-04-01 15:58:27 -04:00
Marshall Greenblatt
5633445222 Convert CefCookieManagerImpl to use CefBrowserContext::Getter.
With this change CefCookieManagerImpl no longer keeps a reference to the
originating CefRequestContextImpl. This means that the CefRequestContextImpl
can be destroyed if all other references are released while the
CefCookieManagerImpl exists. If CefRequestContextImpl destruction results in
the underlying CefBrowserContext being destroyed then the CefCookieManagerImpl's
reference to that CefBrowserContext will be invalidated.

This is the same ownership model introduced with CefMediaRouterImpl in the
previous commit.
2020-03-27 16:59:16 -04:00
Marshall Greenblatt
409e14fe5a Add support for media device discovery and messaging (fixes issue #2900)
Chromium supports communication with media devices on the local network via
the Cast and DIAL protocols. This takes two primary forms:

1. Messaging, where strings representing state information are passed between
   the client and a dedicated receiver app on the media device. The receiver
   app communicates directly with an app-specific backend service to retrieve
   and possibly control media playback.
2. Tab/desktop mirroring, where the media contents are streamed directly from
   the browser to a generic streaming app on the media device and playback is
   controlled by the browser.

This change adds support for device discovery and messaging (but not
mirroring) with functionality exposed via the new CefMediaRouter interface.

To test: Navigate to http://tests/media_router in cefclient and follow the
on-screen instructions.
2020-03-27 16:59:09 -04:00
Vladislav
42583eb1a2 Fix OSR crash on window.open with new client (fixes issue #2894) 2020-03-06 14:55:09 -05:00
Andy Tzeng
cd126463a0 Support fragment (hash) component in CefParseURL (fixes issue #2896) 2020-03-06 14:54:58 -05:00
Marshall Greenblatt
d33bb683b3 Add depot_tools version pinning (see issue #2893) 2020-03-06 11:23:45 -05:00
rcdrone
33b89e9389 Windows: Skip InitializeSandboxInfo if no_sandbox is true
The InitializeSandboxInfo method applies mitigations to the main process
that are inappropriate when the sandbox is disabled.
2020-03-05 12:57:39 -05:00
Marshall Greenblatt
dfbb9418fc Update to Chromium version 81.0.4044.34 2020-03-04 19:34:31 -05:00
Marshall Greenblatt
1ab44722e8 Windows: Fix ScreenlockMonitorDeviceSource window creation error.
See https://crbug.com/1058556 for details.
2020-03-04 19:31:55 -05:00
Marshall Greenblatt
4291776473 Windows: Update cef_sandbox mitigations to match Chromium 2020-03-04 19:31:55 -05:00
Marshall Greenblatt
06a5ef3cd8 automate-git: Windows: Patch VS toolchain scripts before runhooks
Split `gclient sync` into separate `gclient sync --nohooks` and
`gclient runhooks` steps so that we can optionally apply patches
from `runhooks.patch` in-between. This is necessary because the
src/tools/clang/scripts/update.py script is run via a hook and has
dependencies on the VS toolchain scripts which must be patched to
properly consider the GYP_MSVS_VERSION environment variable.
2020-03-04 19:31:54 -05:00
Marshall Greenblatt
9d9ee8b45f Update to Chromium version 81.0.4044.0 (#737173) 2020-03-04 19:31:54 -05:00
Marshall Greenblatt
a22b670a00 automate-git: Remove unsupported --disable-syntax-validation flag 2020-03-03 23:00:58 -05:00
Marshall Greenblatt
8c6cc302d0 Fix OSR surface sizing on browser resize (fixes issue #2733).
This includes the following changes:
- Update usage of surface IDs to match the Aura implementation from the
  RWHVAura/Window classes.
- Batch CefBrowserHost::WasResized calls to avoid excessive/unnecessary calls
  to SynchronizeVisualProperties.
- Cache the results of CefRenderHandler::GetViewRect after resize and make
  RWHVOSR::GetViewBounds the source of truth for all size calculations.
- Fix bounds calculations in CefVideoConsumerOSR with GPU enabled.

Known issues:
- The size passed to OnPaint may be off by 1 pixel in cases where the device
  scale factor is not 1 and does not divide evenly into the pixel size. This is
  due to the inexact conversion from integer pixel size to integer logical size
  for GetViewRect.
2020-02-21 15:02:52 -05:00
Iain Apreotesei
afcee77abe Windows: Add ARM64 binary distribution support (see issue #2773) 2020-02-19 16:33:27 +00:00