amaitland
f0d2995ef1
WPF Example - Improve demo of hosting popup in ChromiumWebBrowser instance
...
- LifespanHandler renamed to ExperimentalLifespanHandler to make it clear the feature is experimental
- Add additional check for devtools popup
2019-08-14 07:45:11 +10:00
amaitland
aa0970268f
LegacyJavascriptBinding - Enabled field was overwritten when a popup was opened
...
Popups don't transmit their own bound object information, _legacyBindingEnabled was being set to false
2019-08-12 09:21:59 +10:00
Andrey Belykh
c7655e95c6
Fixed typo in readme.md ( #2857 )
2019-08-12 09:21:58 +10:00
amaitland
e5749ad1c5
WPF - Handle InvalidOperationException for Resize Hack
...
Assignment and check are on different threads, take local copy of struct to avoid threading null pointer.
Feedback in https://github.com/cefsharp/CefSharp/commit/0d67b05513c2f716db8151d763eaf021de993e4f#commitcomment-34649134
Issue #2779
2019-08-12 09:20:47 +10:00
amaitland
9766360de7
ClientAdapter::MethodInvocationComplete - Add checking for valid frame
...
Make we have a frame that matches the Id and that it's valid before attempting to create a IPC message
2019-08-06 14:27:01 +10:00
amaitland
fdc189d8b1
ISelectClientCertificateCallback - Update xml doc, return null means no certificate selected.
...
Update WinForms Example to deal with user cancellation of certificate selection UI
Resolves #2853
2019-07-31 19:55:12 +10:00
amaitland
247b1d0ed6
Scheme Registration - Only register custom scheme name one
...
Adding multiple entries to CefSettings.RegisterScheme that share the same scheme name
yet have different domain/schemehandlerfactory implementations is valid.
We will only register the first set of SchemeName/SchemeOption values (first call to RegisterScheme).
2019-07-31 19:55:11 +10:00
amaitland
5a3ce3c536
WcfEnabledSubProcess - OnBrowserDestroyed add null checks and log msg if WCF was null
...
It's likely the WCF host didn't start and some break points should be added in ManagedCefBrowserAdapter::InitializeBrowserProcessServiceHost
to catch the actual exception. We're not logging as it causes too many false positives as it's expected there will be errors
when browser is created then rapidly Disposed.
Resolves #2839
v75.1.140-pre01
2019-07-27 21:50:58 +10:00
amaitland
f35765fe3f
Upgrade version to 75.1.140
2019-07-27 21:32:33 +10:00
amaitland
6497f1ac58
Upgrade to CEF 75.1.14+gc81164e+chromium-75.0.3770.100
2019-07-27 21:29:08 +10:00
amaitland
22a9149e0a
WPF - OnWindowStateChanged only call WasHidden(false) when previous state was Minimized
...
Store the previous window state and only call IBrowserHost.WasHidden(false) if the browser was
previous hidden. Call isn't required when transitioning between Normal and Maximized
2019-07-27 21:13:27 +10:00
amaitland
c912277fcf
WPF - Add ability to Enable/Disable Hack for 2779
...
Issue https://github.com/cefsharp/CefSharp/issues/2779
2019-07-27 19:43:41 +10:00
amaitland
0d67b05513
WPF - Black browser in TabControl/When Hidden
...
Hack for issue #2779
2019-07-26 22:40:31 +10:00
amaitland
4f2e72105a
Rect - Change to use Math.Ceiling as that appears to match what CEF uses
...
cefclient uses Math.Floor though when I examine the values returned they're always one less
use use Math.Ceiling appears to match
2019-07-26 22:37:49 +10:00
amaitland
30ba69ddc5
WPF - GetScreenInfo scale Rect/AvailableRect
...
Scale by DpiScaleFactor
2019-07-26 20:41:20 +10:00
amaitland
9ca6fa92ab
Rect - Add DebuggerDisplay
2019-07-26 20:02:47 +10:00
amaitland
1423a9741a
WPF - store width/height in local variable upon size change
...
Do this so it's easier to implement a workaround for #2779
2019-07-26 17:51:13 +10:00
amaitland
cc1f1e40e5
Upgrade to CEF 75.1.7+gb34af23+chromium-75.0.3770.100
2019-07-26 14:02:29 +10:00
ye4241
1709103ea2
update CefGlue source code link; ( #2850 )
2019-07-26 14:02:28 +10:00
Chen Huang
405cc5bb55
Use Canvas.Top="0" for PART_image absolute position. ( #2844 )
...
Using Canvas.Bottom will cause glitchiness when resizing the browser.
On a height change, the height of the canvas changes first, and since
a new frame has not yet been rendered, PART_image still has the old
height, causing the image to jump around
2019-07-26 14:02:27 +10:00
amaitland
196920add8
README.md - Update in preparation for 75 -pre release
2019-07-23 20:50:07 +10:00
amaitland
7928578cf1
ICookieManager - Update xml doc (methods are executed on UI thread now)
2019-07-23 20:46:46 +10:00
amaitland
00d9b59b55
CefAppUnmanagedWrapper - Minor refactor in kJavascriptRootObjectResponse and kJavascriptAsyncMethodCallResponse
...
kJavascriptRootObjectResponse - delete the callback when not used
kJavascriptAsyncMethodCallResponse - Only execute if we have a valid frame
2019-07-23 20:46:45 +10:00
amaitland
9c908b797d
JsonString - Revert to older throw style syntax
...
VS2015 C# compiler doesn't like it and we still haven't installed the newer compiler Nuget packages
2019-07-23 20:46:44 +10:00
amaitland
bcd339a8e7
Code cleanup - Rename IWebBrowser browserControl to chromiumWebBrowser
...
Hopefully this makes it clearer that the IWebBrowser instance is actually the ChromiumWebBrowser
Updated almost all instances, there's one WinForms example that wasn't updated
2019-07-23 20:46:43 +10:00
amaitland
2bf8767c4b
WPF - Update ZoomLevel xml doc re same origin
...
Issue #2834
2019-07-20 13:42:37 +10:00
amaitland
209bde2c04
BindingTest.html - Reformat using editorconfig
2019-07-20 12:28:51 +10:00
amaitland
3989864ab0
V8Serialization - Fix compile error
2019-07-20 12:20:46 +10:00
Angshuman Agarwal
48eaff87dc
Javascript Integration - Passing empty array in JS now maps to empty list/array instead of null ( #2829 )
...
* Set empty list instead of null
* Added QUnit Test for testing Empty Array
2019-07-20 12:17:44 +10:00
amaitland
b072d97c1b
V8Serialization - Don't throw exceptions
...
Instead of throwing an exception which will in most cases crash the MethodRunnerQueue
we'll populate the returned data with an error message for an unknown type
For an unknown enum convert to string
2019-07-20 12:16:56 +10:00
amaitland
750fc9f22e
Javascript Binding - Add support for JsonString
...
JsonString is parsed into CefValue using the CefParseJson function
If your data is already stored in JSON then it can be parsed directly
or you can use a serializer of your choosing to turn a object into JSON
2019-07-20 12:11:43 +10:00
amaitland
6233925efd
Upgrade version number to 75.1.40
2019-07-18 21:23:41 +10:00
amaitland
256e7275d5
IRequestHandler.GetAuthCredentials - Replace frame param with sourceUrl
...
https://bitbucket.org/chromiumembedded/cef/commits/5e9ca096e0bbdbd6661df5d882082e3324237993
2019-07-18 21:18:56 +10:00
amaitland
51b21f7fca
Upgrade to CEF 75.1.4+g4210896+chromium-75.0.3770.100 / Chromium 75.0.3770.100
2019-07-18 20:14:09 +10:00
amaitland
cdca99c548
CefExample - Remove disable-direct-write
...
No longer supported by Chromium.
2019-07-18 19:59:47 +10:00
amaitland
a02d510abc
InternalWebBrowserExtensions.SetHandlersToNullExceptLifeSpan - Add missing handlers
2019-07-17 22:01:35 +10:00
amaitland
2a8d8ec42e
.editorconfig - Add javascript formatting section
2019-07-17 15:46:27 +10:00
amaitland
6c002f8cfe
HtmlString - Add FromFile static helper method
2019-07-17 15:46:26 +10:00
Alex Maitland
e3fcc90c2d
Update README.md
...
Update financial support section with details about upcoming version 75 release
2019-07-12 10:03:54 +10:00
amaitland
f8972c6c45
WinForms - Add new constructor overload (HtmlString html, RequestContext context = null)
...
- New HtmlString class can be used to create a DataUri encoded string for use with the WinForms
ChromiumWebBrowser constructor
- Remove duplication in WebBrowserExtensions extensions, use new HtmlString class
Related issue is #2668
2019-07-11 12:44:57 +10:00
amaitland
4183b464d1
WPF/WinForms Example - Allow mailto to trigger OnProtocolExecution
...
- When Url starts with mailto then use our ExampleResourceRequestHandler
- Ignore unknown scheme errors when it's mailto, we expect that it's unknown
- WPF Example remove duplicate OnLoadError in BrowserTabViewModel
2019-07-10 20:47:55 +10:00
amaitland
c50b495458
IResourceHandler - Update Obsolete attribute as methods will be removed next version
2019-07-09 07:33:50 +10:00
amaitland
31fdcd459b
BindObjectAsyncHandler - Switch to using Promise.resolve when immediate response available
...
Instead of creating a new promise then resolving it, we just resolve directly
Requires a slightly different approach using Eval with a string as I couldn't get a reference to Promise.resolve
then execute it successfully.
2019-07-08 21:06:32 +10:00
amaitland
6fcd3e67ff
BindObjectAsyncHandler - Add destructor
...
Release managed resources
2019-07-08 20:14:57 +10:00
amaitland
ae2acc0905
BindObjectAsyncHandler - Move some variables closer to their usage
2019-07-08 20:14:56 +10:00
amaitland
b983457158
BindObjectAsyncHandler - Further reduce nesting, simplifying frame checks in the progress
2019-07-08 20:14:55 +10:00
amaitland
eda2e2f33c
BindObjectAsyncHandler - Reduce nesting
...
Combine Context Get and Context Enter error handling
2019-07-08 20:14:53 +10:00
amaitland
f6edbd5ad8
CefSharp.BindObjectAsync - Split out into it's own Handler
...
- Add BindObjectAsyncHandler
- Remove unneeded params from RegisterBoundObjectHandler
2019-07-08 20:14:52 +10:00
amaitland
ec21d01182
WebBrowserExtensions - Reenable CanExecuteJavascriptInMainFrame checks
2019-07-08 20:14:51 +10:00
Matthew Thomas
e6f854f8ca
PdfPrintSettings - Update xml doc as margins are measured in points, not mm ( #2822 )
2019-07-08 08:51:39 +10:00