amaitland
6c14b9239a
Upgrade to CEF 79.1.38+gecefb59+chromium-79.0.3945.130 / Chromium 79.0.3945.130
2020-02-27 15:24:17 +10:00
amaitland
7100c3d0ec
Core - Add Cef.WaitForBrowsersToClose helper function
...
- Add BrowserRefCounter to increment/decrement CefBrowser instance creation
- Add Cef.WaitForBrowsersToClose to dispose of all browser instances and call WaitForBrowsersToClose
Before calling CefShutdown it's important that CEF has finished closing/disposing of all the CefBrowser instances.
If you call CefShutdown before this has finished then you can get the error
"Check failed: !IsCefShutdown(). Object reference incorrectly held at CefShutdown".
This is more a problem when using MultiThreadedMessageLoop where CEF close/dispose happens on a different thread.
Calling ChromiumWebBrowser.Dispose will start to free the resources, CEF internally executes code on it's own thread.
#3047
2020-02-14 19:39:12 +10:00
amaitland
eb9ddc6389
Core - Remove ClientAdapter::ThrowUnknownPopupBrowser (unused)
2020-02-14 19:39:11 +10:00
amaitland
ce698480e3
Core - ClientAdapter::OnAfterCreated pass in the newly created wrapper directly
...
Minor code cleanup
2020-02-14 19:39:11 +10:00
amaitland
726f762f57
Core - IBrowser.TryCloseBrowser throw exception if called on invalid thread
...
Can only be called on the CEF Ui thread.
https://github.com/chromiumembedded/cef/blob/9df4a54308a88fd80c5774d91c62da35afb5fd1b/libcef/browser/browser_host_impl.cc#L608
2020-02-11 10:32:46 +10:00
amaitland
9dcb0ccad2
Core - Add IBrowserHost.TryCloseBrowser
2020-02-11 07:06:50 +10:00
amaitland
8706aadd3f
CefSettings - Update GPU Disabled comments regarding WebGl
...
Swiftshader will be used for CPU based software rendering
2020-02-01 12:17:58 +10:00
amaitland
94ae6bea17
Upgrade to CEF 79.1.36+g90301bd+chromium-79.0.3945.130 / Chromium 79.0.3945.130
2020-01-31 10:59:33 +10:00
Gilberto Stankiewicz
e011086883
Fix all C6246 warnings: Local declaration hides declaration of the same name in outer scope. ( #3027 )
...
* Fix all C6246 warnings: Local declaration hides declaration of the same name in outer scope.
* Removing outter scope `global`
2020-01-29 16:17:14 +10:00
amaitland
27cae10f15
Upgrade to CEF 79.1.35+gfebbb4a+chromium-79.0.3945.130 / Chromium 79.0.3945.130
2020-01-29 05:52:55 +10:00
amaitland
39a305cac1
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-29 05:36:54 +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
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
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
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
99c177aa30
IBrowserHost.GetVisibleNavigationEntry - Add call to ThrowIfExecutedOnNonCefUiThread guard and improve xml doc
...
Resolves #2986
2019-12-10 08:08:19 +10:00
amaitland
93336a0031
Core - CefSettings add disable-site-isolation-trials and remove process-per-site-instance arg
...
Steps towards supporting Chromium Site Isolation
Issue #2967
2019-12-04 09:22:44 +10:00
amaitland
30950e5bd1
Core - Cef.GetGlobalCookieManager add ICompletionCallback overload
...
- Callback is executed after the store is ready.
- CookieManagerDecorator added (not yet used), will look at providing the user with clearer feedback
that the store isn't ready, quite often people attempt to get/set cookies when the manager just isn't ready
TODO: Add tests for CookieManagerDecorator and add an overload that uses it
2019-12-02 20:03:59 +10:00
amaitland
617e43cebf
Upgrade to CEF 78.3.9+gc7345f2+chromium-78.0.3904.108 / Chromium 78.0.3904.108
2019-11-28 12:04:02 +10:00
amaitland
f9c9c7fce5
Core - RequestContext.ClearHttpAuthCredentials now defaults to using NoOpCompletionCallback if callback was null
...
Workaround for a CEF bug which crashes if NULL is passed in as arg to CefRequestContext::ClearHttpAuthCredentials
https://github.com/cefsharp/CefSharp/issues/2957#issuecomment-555285400
2019-11-27 11:23:07 +10:00
amaitland
6af44d7777
Core - Add IRequest.PostData setter
...
can be used with the new PostData public class
request.PostData = new PostData();
2019-11-23 15:21:18 +10:00
amaitland
ec8d58bcec
Core - Rename CefSharp.Internals.CefUrlRequestWrapper to CefSharp.UrlRequest
...
- Make public
- Add public constructor
2019-11-23 15:11:14 +10:00
amaitland
493897983d
Core - Rename CefSharp.Internals.CefRequestWrapper to CefSharp.Request
...
- Made public
- Added public constructor
Related issue #1721
2019-11-23 14:27:27 +10:00
amaitland
b8418f4045
Core - CefRequestWrapper code cleanup
...
- Variable rename
2019-11-23 14:12:25 +10:00
amaitland
8b8dbad3d1
Core - Rename CefSharp.Internals.CefPostDataWrapper to CefSharp.PostData
...
- Made public
- Added public constructor
Related Issue #1721
2019-11-23 14:09:37 +10:00
amaitland
dbc2293d8f
Core - Rename CefSharp.Internals.CefPostDataWrapper to CefSharp.PostDataElement
...
- Make public
- Added public constructor
Related issue #1721
2019-11-23 14:04:16 +10:00
Nick
876d3f9ecf
Add IRequestContext.ClearHttpAuthCredentials ( #2959 )
...
Add IRequestContext.ClearHttpAuthCredentials
2019-11-18 13:13:30 +11:00
amaitland
966890588e
Upgrade to CEF 78.3.1+g8819d2e+chromium-78.0.3904.87 / Chromium 78.0.3904.87
2019-11-08 12:18:46 +10:00
amaitland
60a1f640cf
CEF Upgrade - Breaking Changes
...
- Remove CefSettings.EnableNetSecurityExpiration
- Remove RequestContextSettings.EnableNetSecurityExpiration
#2954
- Remove IFrame.LoadStringForUrl and IWebBrowser.LoadString
Resolves #2955
2019-11-03 12:33:45 +10:00
amaitland
3ee5b4544a
Upgrade to CEF 78.2.9+g4907ec5+chromium-78.0.3904.70 / Chromium 78.0.3904.70
2019-11-03 12:33:44 +10:00
amaitland
a8d5b85ed3
Request/Response Headers - Fix incorrect handling of readonly
...
- Rename ReadOnlyNameValueCollection to HeaderNameValueCollection
- Set ReadOnly after the collection has been populated.
Resolves #2946
2019-10-29 19:36:01 +10:00
amaitland
7f1d3ffb6a
CefSettings - BrowserSubProcess path resolved to CefSharp.Core assembly location
...
This was the original intent, didn't check closely enough that GetType resolves to the Wpf/OffScreen/WinForms
implementation of AbstractCefSettings
2019-10-25 09:22:27 +10:00
amaitland
441e8bc8cb
WPF/Offscreen - GetViewRect width/height lte 0 now 1
...
Previously eq 0 check, now lte 0 is changed to 1 as CEF will crash if passed a value less than 1
Issue #2930
2019-10-21 18:48:22 +10:00
amaitland
6ea0db49e7
Upgrade to CEF 77.1.18+g8e8d602+chromium-77.0.3865.120 / Chromium 77.0.3865.120
2019-10-21 16:04:01 +10:00
amaitland
770eee012d
Upgrade to CEF 77.1.11+g1687a63+chromium-77.0.3865.90 / Chromium 77.0.3865.90
2019-10-07 11:16:26 +10:00
amaitland
264da3c237
AbstractCefSettings - Remove "1" from command line args
...
Issue https://github.com/cefsharp/CefSharp/issues/2858
2019-10-01 20:51:40 +10:00
amaitland
4e18f9783b
CefSettings - Add EnablePrintPreview method
...
Appends enable-print-preview command line arg
Resolves https://github.com/cefsharp/CefSharp/issues/2332
2019-10-01 20:49:14 +10:00
amaitland
4a79b75726
IUrlRequest - Minor formatting and xml doc improvements
...
- Formatting
- Xml doc improvements
- Rewrite test case to run continuation async
Issue #2881
2019-10-01 20:44:46 +10:00
David M Iserovich
a843407dab
Core - Add IURLRequest #1721 ( #2881 )
...
* Core - Add IURLRequest #1721
Add IURLRequest, IURLRequestClient, and GetURLRequest to IFrame
* Rename URL classes to Url, add xmldoc and licenses
* Add UrlRequestClient to CefSharp.Example, more minor cleanup
* Getters
* Rebase tweaks
* Fix filenames, remove unused
* Use UnmanagedMemoryStream instead of byte array for IUrlRequestClient.OnDownloadData
2019-10-01 20:11:10 +10:00
amaitland
802bb7f43c
Remove IAudioHandler
...
The Chromium implementation has changed so dramatically that CEF has removed support see https://bitbucket.org/chromiumembedded/cef/commits/1f893c76a97eaa88e3ff782b8e2e47dd0f5d27b2
Track https://bitbucket.org/chromiumembedded/cef/issues/2755/reimplement-audio-mirroring-for for details on when it will be reimplemented
Original Issue #2727
2019-10-01 20:06:37 +10:00
amaitland
c270d0a00c
Upgrade to CEF 77.1.3+gf0a1c44+chromium-77.0.3865.90 / Chromium 77.0.3865.90
2019-10-01 19:54:29 +10:00
amaitland
b1b930605c
WPF - Replace RtlCopyMemory p/invoke with NativeMethodWrapper.MemoryCopy
...
- RtlCopyMemory only works on x64, we could use the slower RtlMoveMemory, going with a native wrapper around RtlCopyMemory
- Renamed CopyMemoryUsingHandle to MemoryCopy (cannot be CopyMemory or RtlCopyMemory as macro with that name already exists)
https://github.com/cefsharp/CefSharp/pull/2885#issuecomment-529033351
Issue #2885
2019-09-07 09:02:30 +10:00
amaitland
f088a7c169
CefSettings - Add custom dictionary to allow setting of command line args with no value
...
- Updated CefExample to remove "1" values from the command line arg examples
Issue #2858
2019-09-06 13:05:50 +10:00
amaitland
25ab209380
MethodRunnerQueue/ConcurrentMethodRunnerQueue - Remove custom task execution queue
...
- ConcurrentMethodRunnerQueue we now directly queue tasks on TaskScheduler.Default
- MethodRunnerQueue now uses LimitedConcurrencyLevelTaskScheduler (example from Microsoft) to limit execution to one concurrent task
- MethodRunnerQueue tasks are now run on the ThreadPool directly instead of our own custom thread, should have some threading implications
for user
- IMethodRunnerQueue now implements IDisposable
Resolves #2873
2019-09-06 11:05:18 +10:00
amaitland
b35d5151fe
IRequest/IResponse - Improve IsReadOnly handling
...
- Throw exception if attempting to set property on readonly request/response
- return ReadOnlyNameValueCollection if Headers are readonly
2019-09-05 19:55:32 +10:00
amaitland
794c77e79d
IBrowserHost - Add GetZoomLevel
...
Can be called directly on the CEF UI thread
2019-09-02 11:39:21 +10:00
amaitland
61e82bc50c
ClientAdapter::GetResourceRequestHandler - LoadHtml and (Un)RegisterResource would only work if RequestHandler not null
...
- Revised login so RequestHandler not required
2019-08-24 07:40:32 +10:00
amaitland
88ab0a1a69
Update version numbers to 76.1.90
2019-08-14 10:14:18 +10:00
amaitland
e5ff2fe8e0
Upgrade to CEF 76.1.9+g2cf916e+chromium-76.0.3809.87 / Chromium 76.0.3809.87
2019-08-14 10:09:53 +10:00