Alex Maitland
c0aae6842f
Test - Add IntegrationTestFacts.LoadJavaScriptBindingAsyncTaskQunitTestsSuccessfulCompletion
...
- Runs the AsyncTask binding tests
2022-01-27 16:06:13 +10:00
campersau
5e16914d9a
OffScreen - Fix ResizeAsync with deviceScalingFactor ( #3964 )
...
* OffScreen - Fix ResizeAsync with deviceScalingFactor
* OffScreen - Fix CaptureScreenshotAsync Width / Height calculation to include X and Y
Always apply Scale changes
2022-01-18 11:03:44 +10:00
campersau
0401cf8abe
Test - Fix CanEvaluateDoubleValues by not relying on the current culture ( #3966 )
2022-01-16 07:37:56 +10:00
Alex Maitland
82d7ae7ab2
Upgrade to CEF 97.1.1+g50067f2+chromium-97.0.4692.71 / Chromium 97.0.4692.71
2022-01-10 13:44:29 +10:00
Alex Maitland
d45aaff7ca
Upgrade to CEF 97.0.11+g695453b+chromium-97.0.4692.71 / Chromium 97.0.4692.71
2022-01-05 10:54:41 +10:00
Alex Maitland
d0c9adcf9d
Core - Add TryGetBrowserCoreById
...
- Can be used to obtain an IBrowser reference by Browser Identifier (Id).
- Added a couple of basic unit tests.
2022-01-05 10:47:48 +10:00
Alex Maitland
f619a1a194
Upgrade to CEF 97.0.8+g4eb2da6+chromium-97.0.4692.36 / Chromium 97.0.4692.36
2021-12-07 14:46:51 +10:00
Alex Maitland
3130caf737
Upgrade to CEF 96.0.14+g28ba5c8+chromium-96.0.4664.55 / Chromium 96.0.4664.55
2021-11-24 13:33:07 +10:00
Alex Maitland
e7f1ea3189
Test - Skip LoadLegacyJavaScriptBindingQunitTestsSuccessfulCompletion when run via AppVeyor
...
Is failing all the time now.
Issue #3867
2021-11-19 10:17:14 +10:00
Alex Maitland
9b63b0caab
Upgrade to CEF 96.0.13+g622afbd+chromium-96.0.4664.45 / Chromium 96.0.4664.45
2021-11-18 10:01:19 +10:00
Alex Maitland
c54205efae
Upgrade to CEF 96.0.12+g147b5f5+chromium-96.0.4664.35 / Chromium 96.0.4664.35
2021-11-11 09:47:59 +10:00
Alex Maitland
cbd5f3f00b
Upgrade to CEF 96.0.11+g4bd7c35+chromium-96.0.4664.35 / Chromium 96.0.4664.35
2021-11-10 10:59:43 +10:00
Alex Maitland
7e0a32af53
Upgrade to CEF 95.7.14+g9f72f35+chromium-95.0.4638.69 / Chromium 95.0.4638.69
2021-11-01 13:19:55 +10:00
Alex Maitland
4112340e48
Core - LoadUrlAsync require url and remove SyncContext param
...
- Remove url optional null, a Url is now required and an exception will be
thrown if null or empty. If the browser wasn't loading an null was passed
in then the task would have never resolved. This provides a predictable behaviour.
A new WaitForInitialLoadAsync method was added to simplify waiting for initial
browser load.
- Remove SynchronizationContext param, best to let the framework handle
Issue #3842
2021-10-28 10:51:18 +10:00
Alex Maitland
4a07af26e9
Core - Rename WaitForBrowserInitialLoadAsync to WaitForInitialLoadAsync and simplify
...
- Initial intention was to have a reusable method that could be used CefSharp.Wpf.HwndHost,
upon further deliberation I've decided to build the functionality into the ChromiumWebBrowser.Partial.cs
and will need to duplicate the functionality in CefSharp.Wpf.HwndHost. This guarantees that the
Task will be resolved in all cases. The previous implementation there was a theoretical change we'd
miss subscribing to the relevant events
- Remove CancellationToken as it's not possible to cancel
Issue #3842
2021-10-28 10:31:03 +10:00
Alex Maitland
91b7514a1c
WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync
...
Second attempt at WaitForBrowserInitialLoadAsync, includes optional
CancellationToken param.
Issue #3842
2021-10-27 13:58:57 +10:00
Alex Maitland
c832f7b7be
Core - V8Serialization incorrectly returns negative numbers
...
- CEF doesn't differentiate between UINT and INT
so we have to do some additional bounds checking
To make sure the correct value is returned
- Add xUnit tests
Issue #3858
2021-10-27 09:58:31 +10:00
Alex Maitland
239372a780
Test - Rearrange Assert args
2021-10-26 13:57:27 +10:00
Alex Maitland
0e242a8706
Upgrade to CEF 95.7.10+g00d4ad5+chromium-95.0.4638.54 / Chromium 95.0.4638.54
...
Remove CefBrowserSettings.universal_access_from_file_urls and CefBrowserSettings.file_access_from_file_urls.
https://bitbucket.org/chromiumembedded/cef/commits/ff33d7f72144
Remove CefBrowserSettings.application_cache
https://bitbucket.org/chromiumembedded/cef/commits/370a7749e950ef6784c29a666d07a0b67148dd5f
Remove ignore_certificate_errors setting
https://bitbucket.org/chromiumembedded/cef/commits/aabe4ce466766f8bd9907e7fa30546a3afada214
RequestContextSettings.IgnoreCertificateErrors was removed, the CefSettings.IgnoreCertificateErrors property
now set the command line arg
Use CefRect for CefWindowInfo bounds
https://bitbucket.org/chromiumembedded/cef/commits/8587cc4e4bbc187aa989152e521318818b3f41d3
Additional overload has been added to pass in a Rect directly to SetAsChild
Rename SendFocusEvent to SetFocus
https://bitbucket.org/chromiumembedded/cef/commits/49a4611e28d7bbc221cff816d7c4a96c55ba2721
SendFocusEvent will now call SetFocus internally, the project internally has been updated to use SetFocus for WPF
Replace CefRequestCallback with CefCallback
https://bitbucket.org/chromiumembedded/cef/commits/3e7f1bb529442a6c7674262d9219df57964e9524
No changes to the API for this, I've kept the same interface and just mapped internally
Resolves #3857 , #3667 , #3668
2021-10-22 14:45:12 +10:00
Alex Maitland
dfa6d979da
Test - Update WaitForQUnitTestExeuctionToComplete to ignore other messages
2021-10-21 13:36:50 +10:00
Alex Maitland
4f51b8a4b2
Upgrade to CEF 94.4.11+gc4d96f0+chromium-94.0.4606.81 / Chromium 94.0.4606.81
2021-10-21 10:25:42 +10:00
Alex Maitland
a441c1a318
Test - Attempt to log more detailed failure from JSB Tests
...
Currently only some of the legacy tests are failing with Chromium Site isolation enabled
2021-10-16 17:52:39 +10:00
Alex Maitland
aedd60e3ff
Upgrade to 94.4.9+g09ee681+chromium-94.0.4606.71 / Chromium 94.0.4606.71
2021-10-16 13:40:20 +10:00
Alex Maitland
aac5439a5c
Test - Fix compile error
2021-10-14 19:37:15 +10:00
Alex Maitland
439970d8cc
Test - Fix NetCore test case
2021-10-14 19:28:53 +10:00
Alex Maitland
1a854192e5
Test - Output QUnit results if tests failed
2021-10-14 13:00:08 +10:00
Alex Maitland
fd78c0cffc
Test - CanLoadRequestWithPostData now navigates to domain of same origin first
...
When Chromium Site Isolation is enabled we must first navigate to
a web page of the same origin to use LoadRequest
When Site Isolation is disabled we can navigate to any web page
https://magpcss.org/ceforum/viewtopic.php?f=10&t=18672&p=50266#p50249
Issue #2967
2021-10-14 10:11:33 +10:00
Alex Maitland
bd88019327
Test - Add RuntimeIdentifiers and fix build.ps1
...
- Seems the Nuget restore doesn't work correctly without having RuntimeIdentifiers set
Must also set RuntimeIdentifier manually so the files are copied correctly.
- Move the msbuild restore after the vcvarsall.bat call so the script runs successfully
2021-10-13 09:04:13 +10:00
Alex Maitland
ee431d7add
Test - Add RuntimeIdentifiers so libcef.dll etc copied to output folder
...
- Adding <RuntimeIdentifiers/> didn't work as expected so set RuntimeIdentifier based on PlatformTarget
- Updated appveyor.yml as output path for CefSharp.Test.dll changed
2021-10-13 07:06:59 +10:00
Alex Maitland
5356e1b89e
Test - Update Nuget PackageReferences
...
- Forgot to change to the chromiumembeddedframework.runtime package
- Simplify references
Follow up to https://github.com/cefsharp/CefSharp/commit/67a08c47eedf0bb76493a63e99a467f23cf7cf73
Issue #3706
2021-10-13 05:15:34 +10:00
Alex Maitland
67a08c47ee
BrowserSubProcess/Examples/Tests - Migrate to newer SDK Style projects
...
- Migrate to new SDK style projects
- Migrate to chromiumembeddedframework.runtime packages
- Remove old packages.config files
- Update post build event for BrowserSubprocess to set TSAware/LargeAddressAware
- Change project build order
Issue #3706
2021-10-12 19:48:11 +10:00
Alex Maitland
544abc68d1
Revert "WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync"
...
Tests started failing so will revisit later.
This reverts commit 08e5140060 .
2021-10-11 10:14:31 +10:00
Alex Maitland
08e5140060
WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync
...
Change all the tests to use WaitForBrowserInitialLoadAsync instead of LoadUrlAsync
as LoadUrlAsync will require a Url as part of #3842
2021-10-10 14:41:04 +10:00
Alex Maitland
15cf58c273
Core - Add IRequestContext.GetCookieManagerAsync extension method
...
- Will return the cookie manager when the backing store has loaded
otherwise returns null
2021-10-08 13:08:31 +10:00
Alex Maitland
b82fa05291
WinForms/WPF/OffScreen - Update Load(string url) behaviour
...
- All three implementations updated to include an IsDisposed check which
will simply return immediately
- OffScreen updated to match the WinForms behaviour
- WPF is more complex because of the initialAddress and Address properties
initialAddress will be set if the browser hasn't been created, if the browserCreated
has been created and OnAfterBrowserCreated hasn't been called then we'll set the Address
dependency property.
NOTE: For WinForms/OffScreen there's a small window
here between CreateBrowser and OnAfterBrowserCreated
where the Address prop will be updated, though LoadUrl
won't be called.
2021-10-08 12:40:54 +10:00
Alex Maitland
2e55f7d1aa
Upgrade to CEF 94.4.2+g6a963ca+chromium-94.0.4606.61 / Chromium 94.0.4606.61
2021-09-29 09:49:40 +10:00
Alex Maitland
a3504aa5ad
Tests - Add CanEvaluateScriptInParallel
2021-09-25 11:01:43 +10:00
Alex Maitland
d1c7b8b998
Upgrade to CEF 94.3.0+gffef496+chromium-94.0.4606.54 / Chromium 94.0.4606.54
2021-09-24 10:23:33 +10:00
Alex Maitland
0f2e213576
Upgrade to CEF 94.2.2+g0c2cc26+chromium-94.0.4606.50 / Chromium 94.0.4606.50
2021-09-20 11:40:45 +10:00
Alex Maitland
fa2b6e22e3
Test - Rewrite test case to use Theory with Inline data
...
- Use inline data
- Move test into OffScreenBrowserBasicFacts as it's not actually javascript binding
at a later point all the tests should be rearranged so they're not just all lumped into OffScreenBrowserBasicFacts
Issue #3808
2021-09-16 10:13:33 +10:00
Alex Maitland
c5ba1ce430
Core - Add Cef.ParseUrl
...
Uses GURL to parse the Url (Google's URL parsing library)
2021-09-16 10:05:34 +10:00
Romout
1847c89b37
Fix for arrays with empty elements ( #3811 )
...
* Fix for arrays with empty elements
* Changed implementation so that it doesn't require the keys at all and added a unit-test
2021-09-16 10:05:14 +10:00
Alex Maitland
d4a9e20a90
Upgrade to CEF 94.0.5+g506b164+chromium-94.0.4606.41 / Chromium 94.0.4606.41
2021-09-12 16:40:10 +10:00
Alex Maitland
0804a404c7
DevTools Client - Add Event error handling
...
- New event that is raised when an exception occurs during converting a response to JSON
- Test cleanup
- New unit test to validate IEventProxy has been removed from ConcurrentDictionary
Resolves #3787
2021-09-10 14:15:57 +10:00
Alex Maitland
4cd8c11f49
Upgrade to CEF 94.0.3+g5c40d9f+chromium-94.0.4606.31 / Chromium 94.0.4606.31
2021-09-07 11:09:51 +10:00
Alex Maitland
c62563c52c
Upgrade to CEF CEF 93.1.11+g9e254fa+chromium-93.0.4577.63 / Chromium 93.0.4577.63
2021-09-03 11:42:32 +10:00
Alex Maitland
d350cad52a
Update to M93 ( #3781 )
...
* Upgrade to CEF 93.1.7+g9117d6a+chromium-93.0.4577.42 / Chromium 93.0.4577.42
- Core - Add basic ref counting implementation
IMPLEMENT_REFCOUNTING implementation uses atomic which
forces the VC++ compiler to compile as native which doesn't work for our managed ref classes.
- Use InterlockedCompareExchange for custom ref count reads
- Use InterlockedIncrement/InterlockedDecrement directly
- There's no memory barrier for HasOneRef/HasAtLeastOneRef as the read of a LONG should happen in one operation
on 32/64 bit architectures (at least that's my understanding at this point in time).
References:
https://github.com/chromiumembedded/cef/blob/4472/include/base/internal/cef_atomicops_x86_msvc.h#L125
https://github.com/chromiumembedded/cef/blob/4472/include/base/internal/cef_atomicops_arm64_msvc.h#L107
https://github.com/chromiumembedded/cef/blob/4472/include/base/cef_atomic_ref_count.h#L114
https://github.com/chromiumembedded/cef/blob/4472/include/cef_base.h#L91
- Remove Microsoft.Net.Compilers package from projects
Now that we require a min of VS2019 to build there's no need for a custom compiler package
- Start removing VS2015/VC++2015 references
- Remove RegisterWidevineCdm
This is a breaking change. CEF will now automatically download the Widevine CDM component
Resolves #3767
- RequestContext.LoadExtension now uses managed to code spawn on CEF UI Thread
Avoid having to use cef_callback.h which was causing problems for x86 builds
2021-09-03 10:51:18 +10:00
Alex Maitland
ceda8fe390
Upgrade to CEF 92.0.25+gd15cfa8+chromium-92.0.4515.131 / Chromium 92.0.4515.131
2021-08-14 13:38:51 +10:00
campersau
9a37ebdbd3
DevTools Client - Generic ExecuteDevToolsMethodAsync and add RegisterEventHandler ( #3674 )
...
* Make ExecuteDevToolsMethodAsync generic
* Make RegisterEventHandler generic
* PR feedback and added test for registering multiple event handlers
* Updated generated code to latest version
* Fix possible NRE when removing event listener before adding one
2021-07-26 12:01:46 +10:00
Alex Maitland
823a6582a9
Upgrade to CEF 92.0.16+g3492b1b+chromium-92.0.4515.107 / Chromium 92.0.4515.107
2021-07-22 13:11:02 +10:00