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
- 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
**WORK IN PROGRESS**
Unfortunately the new chromiumembeddedframework.redist.win-x86/chromiumembeddedframework.redist.win-x64 packages
aren't usable yet, the files are copied to the relevant natives folder .net core just doesn't load the dlls.
I suspect if we were to p/invoke the dll then it would be loaded correctly, might need to raise this with .Net Core team.
So for now just using the older cef.redist packages, which expose props that can be used in any other package.
the new CefSharp.Common.win packages will copy the files using the .targets file as before, difference being PlatformTarget
is used instead of Platform so we can detect the actual platform of the project not the solution.
AnyCPU is not currently supported, x86/x64 only, Win32 might work, not tested though.
Not clear that AnyCpu will be possible, more digging to do on that front.
Issue #2795
- 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
- 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
- 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
**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