Alex Maitland
666a1154d8
Core - Cef.WaitForBrowsersToClose increase Wait Timeout
...
- After upgrading to M102 shutdown appears to be taking longer, so we'll increase
the Wait timeout from 500ms to 750ms to allow CEF a little more time to finish processing.
2022-05-31 15:13:55 +10:00
Alex Maitland
46e9249683
Test - Increase BrowserRefCountDecrementedOnDispose reliability
2022-05-31 14:32:23 +10:00
Alex Maitland
527aab227a
Test - Skip LoadJavaScriptBindingQunitTestsSuccessfulCompletion
...
Issue #3867
2022-05-31 11:16:49 +10:00
Alex Maitland
787665bcfe
Core - WebBrowserExtensions throw explicit ObjectDisposedException if IsDisposed
...
- Make it clear that the ChromiumWebBrowser instance has been disposed.
Previously when the browser was disposed BrowserCore would be null.
An explicit ObjectDisposedException is now thrown.
2022-05-31 10:56:13 +10:00
Alex Maitland
cae407f9f1
WPF/OffScreen - Add WaitForRenderIdleAsync CancellationToken test
2022-05-30 19:22:25 +10:00
Alex Maitland
b8b27f6885
WPF/OffScreen - Add WaitForRenderIdleAsync ( #4080 )
...
* WPF/OffScreen - Add WaitForRenderIdleAsync
- Task resolves when render has been idle for the specified time
- Make TaskTimeoutExtensions public (they're not extension methods as this was expected)
2022-05-30 19:11:17 +10:00
Alex Maitland
923e687fda
Upgrade to CEF 102.0.9+g1c5e658+chromium-102.0.5005.63 / Chromium 102.0.5005.63
2022-05-30 13:37:46 +10:00
Alex Maitland
d701cee655
Enhancement - Add WaitForSelectorAsync extension method. ( #4095 )
...
* Enhancement - Add WaitForSelectorAsync extension method.
string script = "const newDiv = document.createElement('div'); newDiv.id = 'myElement'; document.body.append(newDiv);";
await Task.WhenAll(
browser.WaitForSelectorAsync("#myElement");,
chromiumWebBrowser.EvaluateScriptAsync(script));
Resolves #4094
2022-05-30 12:00:18 +10:00
Alex Maitland
0c6289322f
Upgrade to CEF 102.0.6+g4209780+chromium-102.0.5005.61 / Chromium 102.0.5005.61
2022-05-24 14:54:48 +10:00
Alex Maitland
c5f861594d
Upgrade to CEF 102.0.5+gf11ca74+chromium-102.0.5005.49 / Chromium 102.0.5005.49
2022-05-17 19:33:34 +10:00
Alex Maitland
7eb6d6f3b7
OffScreen - CaptureScreenshotAsync change to Scale default
...
- Previously when no Scale was specified, then the previous ChromiumWebBrowser scale was used.
- Now Viewport defaults to a scale of 1, so the behaviour has been changed so the scale passed as
the param is always used.
- Test updated
This is a minor breaking change.
Resolves #4091
2022-05-05 19:27:29 +10:00
Alex Maitland
dce81299fe
WPF - Remove EmbeddedCursor workaround
...
Bug was fixed upstream and now no longer required.
Related issue #4021
2022-05-05 12:40:55 +10:00
Alex Maitland
40b285fbc3
Upgrade to CEF 101.0.15+gca159c5+chromium-101.0.4951.54 / Chromium 101.0.4951.54
2022-05-04 10:46:36 +10:00
Alex Maitland
59e0b1afdc
Enhancement - Add WaitForNavigationAsync
...
- Add new WaitForNavigationAsync method
- Change LoadUrlAsync to return CefErrorCode.Failed for HttpStatusCode = -1 (better represents there was an error)
Example:
var navigationTask = browser.WaitForNavigationAsync();
var evaluateTask = browser.EvaluateScriptAsync($"window.location.href = '{expected}';");
await Task.WhenAll(navigationTask, evaluateTask);
var navigationResponse = navigationTask.Result;
Resolves #4073
2022-04-27 11:02:45 +10:00
Alex Maitland
684e76c836
Upgrade to CEF 101.0.11+g0692cb0+chromium-101.0.4951.34 / Chromium 101.0.4951.34
2022-04-21 09:04:37 +10:00
Alex Maitland
df562dd251
WPF - Workaround for Cursors not loading correctly
...
- For cursors that are embedded in libcef.dll the OnCursorChange method is passing
in IntPtr.Zero so we're unable to load the cursor.
This commit adds a manual mapping of CursorType to resource Id and loads the cursors manually
- Adds a basic test to assert the cursors load, should validate if the resource ids change
This needs to be fixed upstream https://bitbucket.org/chromiumembedded/cef/issues/3270/osr-pan-icon-missing-when-pressing-the
Test url https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values
Issue #4021
2022-04-04 14:45:27 +10:00
Alex Maitland
b160c1dd4d
Upgrade to CEF 100.0.12+g734f820+chromium-100.0.4896.60 / Chromium 100.0.4896.60
2022-04-01 17:30:31 +10:00
Alex Maitland
d26789bfc2
Test - Add DevToolsClientFacts MediaQuery test
2022-03-22 16:46:04 +10:00
Alex Maitland
e6d9aba3f6
Upgrade to CEF 100.0.11+g45b9728+chromium-100.0.4896.46 / Chromium 100.0.4896.46
2022-03-21 09:10:44 +10:00
Alex Maitland
181271630c
Upgrade to CEF 99.2.12+g2977b3a+chromium-99.0.4844.74 / Chromium 99.0.4844.74
2022-03-18 09:29:12 +10:00
Alex Maitland
87f161dd0f
Upgrade to CEF 99.2.9+gf426765+chromium-99.0.4844.51 / Chromium 99.0.4844.51
2022-03-06 09:21:16 +10:00
Alex Maitland
f6aff4f075
Upgrade to CEF 99.2.7+g674fc01+chromium-99.0.4844.51 / Chromium 99.0.4844.51
2022-03-04 20:46:59 +10:00
Alex Maitland
0d5e830c27
Upgrade to CEF CEF 99.2.3+g962d9c9+chromium-99.0.4844.27 / Chromium 99.0.4844.27
2022-02-22 10:41:32 +10:00
Santosh M Ghanti
9e0236876c
Sync Javascript Binding - Add support for property interception ( #3935 )
...
* Core - added support for property interceptor
* Incorporated the review comments
* Incorporated the review comments 2
* Review comments exclude trygetproperty and trysetproperty for .netcore app
* Added the unit test cases for trygetproperty and trysetproperty
* Fixed .net core app build failure
* Added the separate test case for property interceptor
Co-authored-by: sghanti <santosh_ghanti@intuit.com >
2022-02-14 13:58:35 +10:00
Alex Maitland
21efaf3c46
Upgrade to CEF 98.1.12+gd87e3f4+chromium-98.0.4758.55 / Chromium 98.0.4758.55
2022-01-31 11:30:22 +10:00
Alex Maitland
5704dba5aa
Net Core - Fix failing test
...
- WaitForQUnitTestExeuctionToComplete was renamed to CreateBrowserAndWaitForQUnitTestExeuctionToComplete
2022-01-30 09:01:53 +10:00
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