Commit Graph

6179 Commits

Author SHA1 Message Date
Alex Maitland 307ba5aff7 Update pull_request_template.md
Formatting
2020-04-01 07:38:44 +10:00
Alex Maitland 04a969dbca Update CONTRIBUTING.md
Update testing with CEF Sample application section
2020-03-31 16:33:24 +10:00
amaitland 5880c51883 Update version number 2020-03-31 12:47:15 +10:00
amaitland 509c0dfcb5 Upgrade to CEF 80.1.2+g9d2a31e+chromium-80.0.3987.149 / Chromium 80.0.3987.149 2020-03-31 07:14:53 +10:00
amaitland 3ba0290676 WPF - Add IWebBrowser.IsBrowserInitialized explicit interface implementation
Can be called from any Thread, the ChromiumWebBrowser.IsBrowserInitialized property remains
as Dependency property.

Issue #3033
2020-03-26 09:10:36 +10:00
amaitland 2b47cf56ce Core - Make ResourceHandler.GetMimeType obsolete
Instead use Cef.GetMimeType to use the Chromium MimeType Mappings

Rather than maintain our own mapping (which is out of date) we'll defer to Chromium.

Make ResourceHandler.FromString(string, string) and ResourceHandler.GetMimeType obsolete, they will be removed at some point
ResourceHandler.FromString uses ResourceHandler.GetMimeType internally, Replacing with ResourceHandler.FromString(resource, mimeType: Cef.GetMimeType(extension));
uses a different overload.

Issue #3041
2020-03-26 08:50:08 +10:00
amaitland 006445df03 MimeType - Add extra checking to Cef.GetMimeType
Also update the ResourceHandler.FromFilePath xml doc to reference Cef.GetMimeType

Issue #3041
2020-03-26 08:50:07 +10:00
amaitland 344a9297dd Examples - Update ResourceHandler.GetMimeType to Cef.GetMimeType
Transition away from our incomplete implementation to using the Chromium mapping

Issue #3041
2020-03-26 08:50:07 +10:00
Gilberto Stankiewicz 29e6a6d03a Fix a typo in an error message (#3087) 2020-03-26 08:37:02 +10:00
amaitland 185d8e5d7b BrowserSubprocess - Add args to MainNetCore
MainNetCore(IntPtr arg, int argLength) is required by default signature.
2020-03-12 17:53:46 +10:00
amaitland 4e3887d85d BrowserSubprocess - Add Main method for .Net Core
Needed to test out my idea outlined in https://github.com/cefsharp/CefSharp/issues/2795#issuecomment-592441989
2020-03-06 16:01:26 +10:00
amaitland 4d47b749b1 Test - Avoid displaying Form in WinForms Test
Call CreateControl instead of displaying form.

Tooltips, context menus may not be positioned/displayed correctly as there is no parent form (window). For testing
purposes that's fine for now.
2020-03-03 07:01:00 +10:00
campersau cde3f385f9 Test - Add CefSharp WPF / WinForms CanLoadGoogle Test Case (#3069)
* enable CefSharp Wpf tests

* enable CefSharp WinForms tests

* using assembly resolver to fix serialization exception when using Xunit.StaFact with default appdomain
2020-03-03 05:30:41 +10:00
amaitland 9d10775566 Test - Rewrite ValidateAsyncTaskMethodOutput to use AsyncManualResetEvent
Also increased timeout.

Issue #3067
2020-03-02 12:16:21 +10:00
Alex Maitland 95623dc339 Merge pull request #3070 from campersau/test_cefshutdown
Test - Call Cef.Shutdown on same thread as Cef.Initialize
2020-03-02 08:05:07 +10:00
campersau 5dd127f134 use Nito.AsyncEx for running methods on the same thread 2020-03-01 22:45:08 +01:00
campersau e184fe2757 make sure Cef.Shutdown is called on the same thread as Cef.Initialize 2020-02-29 14:22:48 +01:00
campersau f1c182853f demonstrate that Cef.Shutdown is currently called on a different thread 2020-02-29 13:47:27 +01:00
amaitland 5c83a560c8 CefSharp.Test - Fix Xunit.TestFramework Test Class name
Remove unused class
2020-02-29 15:04:50 +10:00
amaitland 82ec447d23 Test - ValidateAsyncTaskMethodOutput dispose of MethodRunnerQueue after result complete
Issue #3067
2020-02-29 14:54:05 +10:00
amaitland 1f6492b9ca CefSharp.Test - Refactor BindingRedirectHelper
Split into CefSharpXunitTestFramework and BindingRedirectAssemblyResolver
Allow for more customisation if required.
2020-02-29 14:34:35 +10:00
campersau 967ad22e60 CefSharp.Text - Add BindingRedirectHelper
Replaces BindingRedirectFixtureCollection/BindingRedirectFixture

https://github.com/cefsharp/CefSharp/pull/3065#issuecomment-592828985

Issue #3065
2020-02-29 13:26:13 +10:00
amaitland 30f2204f8e Xml Doc Improvements 2020-02-29 13:16:23 +10:00
Alex Maitland b90b4cf94e remove project reference to CefSharp.BrowserSubprocess for consistency (#3066)
solution dependency already exists
2020-02-29 12:48:03 +10:00
campersau a6aa5ec05c AppVeyor - Enable Unit Tests on Build (#3065)
AppVeyor - Enable Unit Tests on Build

* Test - Fix tests

* use async which isn't that flaky

* rename CurrentDomainAssemblyResolve

* replace project reference to CefSharp.BrowserSubprocess with solution dependency

* updated comment on fixture

* revert whitespace changes

* remove project reference to CefSharp.BrowserSubprocess for consistency

solution dependency already exists

* move binding redirect with assembly resolve to separate fixture

* Revert "remove project reference to CefSharp.BrowserSubprocess for consistency"

This reverts commit b8b1d28c30.

* Revert ConcurrentMethodRunnerQueueFacts
2020-02-29 12:28:45 +10:00
campersau 65becd4160 revert line ending changes 2020-02-29 03:26:14 +01:00
Alex Maitland 081f9db1f1 Merge branch 'master' into pr_wpf 2020-02-29 12:31:45 +10:00
campersau 1c403370cc remove project reference to CefSharp.BrowserSubprocess for consistency
solution dependency already exists
2020-02-29 02:57:15 +01:00
amaitland 749ec15972 Revert "Update appveyor.yml"
This reverts commit 809fa6837f.
2020-02-28 15:16:40 +10:00
amaitland d1279810ff Disable System Wide Flash Installation by Default
Can be re-enabled for a limited time using the enable-system-flash command line arg

Resolves #3048
2020-02-28 11:14:50 +10:00
amaitland 1761e93741 Core - DependencyChecker remove "natives_blob.bin" reference
Issue #3057
2020-02-28 11:10:23 +10:00
amaitland 2c5b07d2d0 Upgrade version to 80.0.40 2020-02-27 17:38:00 +10:00
amaitland ec95a7245b Upgrade to CEF 80.0.4+g74f7b0c+chromium-80.0.3987.122 / Chromium 80.0.3987.122 2020-02-27 16:51:17 +10:00
amaitland 31c7e9957a Upgrade version number to 79.1.380 2020-02-27 15:24:18 +10:00
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
Alex Maitland 809fa6837f Update appveyor.yml
First attempt at enabling AppVeyor xunit test integration
2020-02-23 11:58:03 +10:00
campersau 0d46348c20 Core - DomNode consistent code style (#3058) 2020-02-19 06:54:02 +10:00
campersau 7bed061bbf OffScreen Example - Update Javascript to reflect google change (#3059) 2020-02-19 06:53:27 +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
Alex Maitland 37a6b88dfc Update bug_report.md
Add link to Loading native symbols, for easier diagnosis
2020-02-14 09:55:30 +10:00
Alex Maitland 4640487486 Update bug_report.md
Formatting
2020-02-14 08:49:55 +10:00
Alex Maitland 08a067eabe Update bug_report.md
Expand on What steps will reproduce the problem?
2020-02-14 08:49:28 +10:00
billshinji 6fea930e3a WPF - IME Fix Korean character emitting issue (#3054)
*WPF IME  Fix Korean character emitting issue

Fixes a Korean IME related problem. A user cannot make a word or a sentence by progressing (producing) a single Korean character. Current experimental handler fails to 'emit' a composed Korean character.
2020-02-12 12:25:13 +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 3b6d1a8141 Update bug_report.md to reflect release of 79.1.360 2020-02-11 07:54:11 +10:00
amaitland 9dcb0ccad2 Core - Add IBrowserHost.TryCloseBrowser 2020-02-11 07:06:50 +10:00
amaitland 0772121f5f Core - ResourceHandler Add MimeType Mappings
Adding some newer video/audio/font mappings

#3041
2020-02-05 11:41:02 +10:00
amaitland 5780fb1f58 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 10:06:48 +10:00