Commit Graph

5100 Commits

Author SHA1 Message Date
João Neves ad02fffd3b Fixed crash accessing js objects dictionary concurrently v75.1.143 2019-11-03 12:49:00 +10:00
amaitland ee5b8dd169 Update myget api key 2019-11-03 12:37:52 +10:00
amaitland c8562f09c5 Nuget - Add Visible false to <None/> entries
Issue #2456
2019-11-03 11:08:12 +10:00
amaitland 5e3f05b7ec OffScreen - Add HtmlString constructor overload to ChromiumWebBrowser 2019-11-03 11:08:12 +10:00
João Neves 3f285d5525 WPF - Ensure ZoomLevelProperty is updated on UI thread when Visibility Changed 2019-11-02 06:02:41 +10:00
amaitland 4163c8c61a WPF - Change NotifyDpiChange to accept float instead of double
- Double was being cast to float
- If newDpi is same as old DPI do nothing, no extra floating point comparison is being used, so in some cases
it's possible the DPI change will be triggered when the DPI's are actually the same
2019-10-30 13:39:26 +10:00
amaitland 06b7549b0b WinForms - Demo workaround for activation issue when showing two browser forms
When there are two forms that contain browser instances shown at the same time they rapidly switch between
the two windows.

Issue #2928
2019-10-28 12:56:07 +10:00
amaitland 84c0e3c1d2 CefSharp.csproj - Resolve build failed due to cherry pick
Commit d66798b03e added some files to the csproj file which aren't in this branch
2019-10-28 12:43:06 +10:00
amaitland 7d26605533 WinForms Example - Add demo that reproduces #2928 2019-10-28 12:32:32 +10:00
amaitland 2c623aba93 IUrlRequest - Minor formatting and xml doc improvements
- Formatting
- Xml doc improvements
- Rewrite test case to run continuation async

Issue #2881
2019-10-28 11:59:17 +10:00
David M Iserovich d66798b03e 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-28 11:59:15 +10:00
amaitland 0279430114 WPF - Add OnLostMouseCapture Experimental ChromiumWebBrowserWithMouseCapture 2019-10-28 11:55:52 +10:00
amaitland 727314b4eb 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-28 11:45:57 +10:00
amaitland fe1cf15081 xml doc - Fix mistake 2019-10-28 11:45:56 +10:00
amaitland 70bf190324 Nuget Packages - Default CefSharpTargetDir to '.' so support Desktop Bridge apps
Resolves #2642
2019-10-28 11:45:30 +10:00
amaitland 9bb5e34493 WPF - Update Buffer xml doc
Buffer should only be used within the scope of the relevant event/method
2019-10-28 11:45:30 +10:00
Chris Araman 9ef95dbb40 build.ps1 - escape commas for PowerShell (#2902) 2019-10-28 11:45:29 +10:00
amaitland 66e9855fed WPF - Add NotifyDpiChange method
Extract DPI change code into a public method that can be called when the `WPF` window changes it's DPI
As we target .Net 4.5.2 we don't have access to the new managed DPI change notification that was added in WPF (.Net 4.6)

Resolves #2856
2019-10-28 11:45:25 +10:00
amaitland 5e8ce81892 build.ps1 - Force TLS 1.2 for GitLink download
Running locally the following error was occurring
`Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel.`
2019-10-28 11:43:54 +10:00
amaitland 195569d17d Example - Update ResponseFilter example to reflect NetworkService changes
- MemoryStreamResponseFilter renamed to StreamResponseFilter
- Stream is now passed into StreamResponseFilter constructor
- ExampleResourceRequestHandler updated to reflect that it now represents a single resource request
- ExampleResourceRequestHandler is now used for all requests from the CefSharpSchemeHandlerFactory.SchemeName custom scheme

Issue #2743
2019-09-30 21:03:29 +10:00
amaitland 6ead2b33f8 Example - Add JSB Qunit Tests for Binder UInt conversion
Issue #2906
2019-09-27 06:46:48 +10:00
amaitland 58c9585894 Example - Demo loading Png
https://cefsharp.example/logo.png
2019-09-20 20:38:37 +10:00
Konstantin Preißer 9d6e5de858 Add a ".NETCoreApp3.0" dependency to the .nuspec files. (#2894)
This ensures the transitive dependencies (CefSharp.Common) are correctly resolved in .NET Core 3.0 projects.

Contributes to #2796
v75.1.142
2019-09-08 11:43:08 +10:00
amaitland ffc6987e26 Revert "WPF - Improve ChromiumWebBrowser Dispose"
This reverts commit 489c0edccd.
2019-09-07 13:37:39 +10:00
amaitland 489c0edccd WPF - Improve ChromiumWebBrowser Dispose
- RenderHandler wasn't being disposed at all
- Used newer syntax for null Dispose calls
2019-09-07 13:03:42 +10:00
amaitland 050d354b82 WPF - **UPDATED** CopyMemory PInvoke signature to work with .Net Core
RtlCopyMemory was only working for 64bit, falling back to RtlMoveMemory for now.

Details in https://github.com/cefsharp/CefSharp/pull/2885#issuecomment-529033351

Follow up to https://github.com/cefsharp/CefSharp/commit/c11157fa8e77991baab83f417dfb78ba22f1e34b
2019-09-07 08:36:22 +10:00
amaitland 99c7984f76 WPF - Fix OnMouseLeave in ChromiumWebBrowserWithMouseCapture
- Only send a mouse move on leave
- Update SimpleMainWindow.xaml to use ChromiumWebBrowserWithMouseCapture for testing purposes
2019-09-06 12:31:05 +10:00
amaitland 08b6c05225 WPF - Add Experimental ChromiumWebBrowserWithMouseCapture
Based on https://github.com/cefsharp/CefSharp/pull/2871

Use CaptureMouse/ReleaseMouseCapture instead as there's an additional check in ReleaseMouseCapture
https://referencesource.microsoft.com/#PresentationCore/Core/CSharp/System/Windows/UIElement.cs,d6873c5315db5dbb,references

Issue #2258
2019-09-06 12:15:24 +10:00
amaitland bb5b60b512 WPF Example - Disable Stylus and Touch Support 2019-09-06 11:49:46 +10:00
amaitland 5fa61c58ce WPF - Reize Hack Update #2879 cleanup
- Simplify GetZoomLevel code, await directly on the task rather than the ContinueWith
- Simplify updating of viewRect on resize

Issue #2779
2019-09-06 11:18:43 +10:00
amaitland 3c708dfc52 WPF - Add Resize Hack Test Code
- Add test code from https://github.com/mol/CefSharp/blob/reworkedhack2779/CefSharp.Wpf.Example/MainWindow.xaml.cs#L181
2019-09-06 11:09:48 +10:00
Michael Olsen 79008ae517 WPF - Updated #2779 hack to run asynchronous without crashing. (#2879)
* Updated the issue #2779 hack to run asynchronous without crashing.
* Fixed race condition between ChromiumWebBrowser.Dispose and running code on the CEF UI thread.
2019-09-06 11:08:13 +10:00
amaitland 59cdea0657 WebBrowserExtensions - Make GetScript public and rename to GetScriptForJavascriptMethodWithArgs 2019-09-06 09:58:53 +10:00
amaitland 2010da7292 WPF - Add IWpfWebBrowser.Paint/VirtualKeyboardRequested events to interface 2019-09-05 12:14:44 +10:00
amaitland c11157fa8e WPF - Change CopyMemory PInvoke signature to work with .Net Core
.Net could fails with exception "Unable to find an entry point named 'CopyMemory' in DLL 'kernel32.dll`" as
the export doesn't exist see reference https://github.com/dotnet/coreclr/issues/24008

Issue #2053
2019-09-05 11:29:54 +10:00
amaitland f487f2b675 IBrowserHost - Add GetZoomLevel
Can be called directly on the CEF UI thread
2019-09-02 11:43:36 +10:00
amaitland aab505a1fc ClientAdapter::GetResourceRequestHandler - LoadHtml and (Un)RegisterResource would only work if RequestHandler not null
- Revised login so RequestHandler not required
2019-08-28 08:09:37 +10:00
amaitland 8e1e31c7a2 WPF - Change CefUiThreadRunAsync access modifier internal to protected
Also make  InternalIsBrowserInitialized protected so anyone subclassing can access it

#2779
2019-08-23 12:02:46 +10:00
amaitland 6636525656 WPF - Execute WasResized/WasHidden functions on CEF UI Thread
- Execute all WasResized/WasHidden functions on the CEF UI Thread in an attempt to avoid an assertion in RenderWidgetHostImpl::SynchronizeVisualProperties
- Reduce the delay between WasResized calls in the hack

Refinements made to the hack introduced in https://github.com/cefsharp/CefSharp/issues/2779#issuecomment-515435424

Issue #2779
2019-08-19 19:53:15 +10:00
amaitland 351cae3a2f ICookieManager - Update xml doc
Updated to reflect upstream changes see https://magpcss.org/ceforum/apidocs3/projects/(default)/CefCookieManager.html

Resolves #2855
v75.1.141
2019-08-14 07:45:47 +10:00
amaitland c640d6b34c WPF Example - MenuHandler commands now fire reliably
- The MVVM Light RelayCommand keeps a WeakRef to the command action, for us this is anonymous, so we
need to keep the target alive.
- Updated MVVMLightLibs (required for keepTargetAlive)
2019-08-14 07:45:45 +10:00
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