Commit Graph

5230 Commits

Author SHA1 Message Date
amaitland 6e2acc709e Upgrade version number to 79.1.380 2020-02-27 15:22:39 +10:00
amaitland a6c81d94d2 Upgrade to CEF 79.1.38+gecefb59+chromium-79.0.3945.130 / Chromium 79.0.3945.130 2020-02-27 13:29:36 +10:00
amaitland 5d08078ca5 WinForms - Update xml doc Dock = DockStyle.Fill is the default
Make it clear we are setting the default to DockStyle.Fill, this may not be expected
by some. It has been that way for 5+ years, so changing the default would be difficult
and unexpected, instead we make it clearer this is the case.

Resolves #3019
v79.1.360
2020-02-11 07:26:22 +10:00
amaitland 3601c3065b Upgrade to CEF 79.1.36+g90301bd+chromium-79.0.3945.130 / Chromium 79.0.3945.130 2020-02-11 07:25:31 +10:00
amaitland bc466ef434 Core - Add IBrowserHost.TryCloseBrowser 2020-02-11 06:57:50 +10:00
amaitland 891e5c539b WPF Example - Readd Legacy Binding
if CefSharpSettings.LegacyJavascriptBindingEnabled then register bound and boundAsync objects
2020-02-10 11:11:03 +10:00
amaitland d2a00e522e Core - ResourceHandler Add MimeType Mappings
Adding some newer video/audio/font mappings

#3041
2020-02-05 11:46:02 +10:00
amaitland 8d01faabe2 Core - ResourceHandler free resources in Dispose instead of Cancel
There is no example of Cancel in the source code and the description in the doc doesn't
really provide a clear explanation of it's intended use case.

See code comment for further details
2020-02-05 11:45:58 +10:00
amaitland 6a2175ad43 Core - ResourceHandler.Read only read as many bytes as can be written to DataOut
Previously we'd read too many bytes and attempting to write them to dataOUt would cause a see System.NotSupportedException

Resolves #3038
2020-02-05 11:45:52 +10:00
amaitland 28d1d07e28 WPF - InternalDispose add browser null check
It's possible to Dispose the browser before OnAfterBrowserCreated is called
resulting in a NRE when attempting to set WasHidden(true).

Resolves #3037
2020-02-01 20:36:37 +10:00
amaitland 0db36b246e CefSettings - Update GPU Disabled comments regarding WebGl
Swiftshader will be used for CPU based software rendering
2020-02-01 20:36:37 +10:00
amaitland 96ab749707 nuget - Update nupkg tags 2020-02-01 20:36:36 +10:00
amaitland 360740d340 WebBrowserExtensions - Add missing semi colon 2020-01-31 08:17:31 +10:00
amaitland 355213ab29 WPF - ChromiumWebBrowser.GetBrowser() Throws InvalidOperationException if called on Non UI Thread.
- Extract error message out into a internal const so it's not duplicated
- Manually check InternalIsBrowserInitialized() method instead of using the extension method

Resolves #3032
2020-01-31 07:47:01 +10:00
amaitland b5fa1a4479 Update README.md and bug_report.md
- Include details on version 79.1.350 release
2020-01-29 18:30:37 +10:00
amaitland 511bbf71ef xml doc improvements v79.1.350 2020-01-29 08:05:41 +10:00
amaitland ee8de7ec28 xml doc - remove seealso internal interface references 2020-01-29 07:25:13 +10:00
amaitland 0cad8054ab Upgrade to CEF 79.1.35+gfebbb4a+chromium-79.0.3945.130 / Chromium 79.0.3945.130 2020-01-29 06:13:16 +10:00
amaitland 221f035841 Sandcastle - Update version and excluded namespaces 2020-01-29 05:36:02 +10:00
amaitland 36fa45230c Xml Doc improvements 2020-01-28 21:08:37 +10:00
amaitland d4d1286a03 Core - Update ReferrerPolicy enum values
**Breaking Change**

Resolves #3026
2020-01-28 20:59:31 +10:00
amaitland b661fbd2d3 Xml Doc - Improvements and fixes
- Some classes are now excluded
- Many minor fixes should hopefully reduce the number of errors reported by Sandcastle
- Some of the xml doc is generated by Atomineer, usually in cases where CEF lacks documentation
2020-01-28 20:47:25 +10:00
amaitland b1d127957d WPF - Resize Hack for when browser switches from hidden to visible (#2779) 2020-01-24 16:17:24 +10:00
amaitland 4cb77e4ca5 Core - Add IBrowserHost.GetNavigationEntriesAsync extension method 2020-01-24 16:02:07 +10:00
amaitland 87c8725184 Core - ResourceHandler set Stream.Position = 0 and if CanSeek
- Prior to version 75 the Stream.Position was set to 0 before the ResourceHandler would read the Stream.
This restores that behaviour.
- Minor refactor of if statement for Stream.Can seek, only override ResponseLength with Stream.Length of not already set

Resolves #2903
2020-01-23 07:57:05 +10:00
amaitland 731c626cfe Add cefsharp/79 branch details and update build numbers
- Update appveyor.yml/build.ps1 version numbers to 79.1.310
- Created release branch in README.md

Branch to follow shortly
v79.1.310-pre
2020-01-22 10:27:58 +10:00
amaitland 99fedd23ab CefSharp.Common.targets - Remove message output for PlatformCheck as they're not displayed in a fashion users will actually see them
- Tabs to spaces for consistency
2020-01-21 19:41:18 +10:00
amaitland 8559aa6e50 CefSharp.Common.targets - Update link, condense wording
Issue #3009
2020-01-21 13:38:55 +10:00
amaitland fb6990a195 CefSharp.Common.targets - Improve PlatformCheck error messaging
Only the error will be shown in the VS error pane, hopefully the additional messages are useful.

Issue #3009
2020-01-21 12:33:01 +10:00
amaitland 44113d77a4 DevTools - now shown as popup (visible in taskbar).
- Pass null for CefWindowInfo.SetAsPopup parent handle
- Add optional params to IWebBrowser/IBrowser.ShowDevTools extension methods.

Anyone wishing to use the old behaviour can do something like

var host = browser.GetBrowserHost();

var windowInfo = new WindowInfo();
windowInfo.SetAsPopup(host.GetWindowHandle(), "DevTools");

browser.ShowDevTools(windowInfo);

Resolves #2997
2020-01-21 09:06:28 +10:00
amaitland 1550251940 Upgrade to CEF 79.1.31+gfc9ef34+chromium-79.0.3945.117 / Chromium 79.0.3945.117 2020-01-21 08:56:08 +10:00
amaitland e4312760ce API Change - IJavascriptObjectRepository.Register remove isAsync default param
**BREAKING CHANGE**

- You must now explicitly specify the `isAsync` param.
- Add additional xml doc comment regarding .Net Core and using only isAsync = true

The isAsync = false option (sync binding) requires WCF which isn't available on .Net core, remove the default value so you are forced to specify an option and in the process hopefully read the documentation.

For those who previously hadn't provided a param then simply pass in false for the third argument.
e.g.
browser.JavascriptObjectRepository.Register("bound", new BoundObject(), false);

Resolves #3016
2020-01-21 08:39:23 +10:00
amaitland 926cd7243e BrowserSubProcess.Core.BrowserSubprocessExecutable - Return -1 when no type param specified as per the doc 2020-01-15 11:16:40 +10:00
amaitland 94e311844c Upgrade to CEF 79.1.10+g7ec49fa+chromium-79.0.3945.117 / Chromium 79.0.3945.117 2020-01-15 11:16:39 +10:00
amaitland 19a70727f2 WinForms/WPF/OffScreen - Improve Dispose/BrowserInitialized error messaging
- Set CanExecuteJavascriptInMainFrame to false when disposing
- Throw exception if Disposed when calling GetBrowser method
- Improve error messaging
2020-01-15 11:16:06 +10:00
Alex Maitland ad3d1d8244 Update appveyor.yml
Update build version number
2020-01-11 20:05:03 +10:00
amaitland fe83ba0aa5 OffScreen - Disable GPU Compositing 2020-01-08 16:46:49 +10:00
amaitland 1ef327cf9d Upgrade to CEF 79.1.3+ga5342ed+chromium-79.0.3945.88 / Chromium 79.0.3945.88 2020-01-08 16:46:48 +10:00
Alex Maitland 787079155b Update feature_request.md 2019-12-24 09:44:12 +10:00
Alex Maitland 922463c87d Update Readme.txt
Add .Net Core link and revise app.manifest entry
2019-12-21 09:01:12 +10:00
amaitland 57ab2ec982 WPF - Add CompositionTargetRenderHandler (experimental) 2019-12-13 21:07:25 +10:00
amaitland d693ece3ca Example - Fix more home.html links 2019-12-13 19:40:35 +10:00
amaitland c26053ae22 Example - Fix broken link in Home.html 2019-12-13 18:59:43 +10:00
amaitland 00f8cdf59b Core - ResourceHandler add Charset optional param to constructor or FromStream 2019-12-13 18:59:20 +10:00
amaitland 002f023b39 Core - Add Legacy ResourceHandler
Supports the old CEF code path
2019-12-13 18:54:05 +10:00
amaitland 453f8d2077 Core - ResourceHandler now reuses it's temp byte[] buffer 2019-12-11 18:21:19 +10:00
amaitland a6f4f75a0e Core - Add Cef.GetMimeType
Use the Chromium file extension to MimeType mapping.
The built in ResourceHandler.GetMimeType needs updating, doesn't support say webm for example.
2019-12-11 17:46:16 +10:00
amaitland c5c9271cb7 Core - WebBrowserExtensions.RegisterJsObject and WebBrowserExtensions.RegisterAsyncJsObject now throw NotImplementedException
Follow up to commit ffaff5d151.

Resolves #2990
2019-12-11 14:12:31 +10:00
amaitland ffaff5d151 Core - Remove WebBrowserExtensions.RegisterJsObject and WebBrowserExtensions.RegisterAsyncJsObject
This is a breaking change, these methods are being removed as they are used for LegacyBinding which is being drastically changed in #2977

Resolves #2990
2019-12-11 10:08:08 +10:00
amaitland a9d39d7965 Core - Add StreamResponseFilter
- Moved from the Cefsharp.Example.Filters.StreamResponseFilter
- Added CanWrite checks in InitFilter
- Updated example to reflect namespace change.
2019-12-10 18:31:38 +10:00