Commit Graph

5336 Commits

Author SHA1 Message Date
amaitland b2e0e04d58 Update version number to 81.3.100 v81.3.100 2020-05-23 10:17:08 +10:00
deonberlin a2b61f3e37 WPF - Implement AltGr support. (#3131)
* Fixed #3104 AltGr support.

* Code format adjusted.

* Moved AltGr code to better location within the function.

Co-authored-by: Daniel Bitterlich <bitterlich@deon.de>
2020-05-23 10:12:02 +10:00
amaitland 2a62f97392 Tests - Add OffScreenBrowserBasicFacts.CanExecuteJavascriptInMainFrameAfterNavigatingToDifferentOrigin
Confirm CanExecuteJavascriptInMainFrame is true after navigating to a different origin

Resolves #3021
2020-05-19 08:25:02 +10:00
amaitland 919487452e Tests - Convert BinderFacts.NullToValueType to NullToValueTypeTheory
Now uses Theory with InlineData
2020-05-18 11:46:40 +10:00
amaitland d1b4492549 Core - Cef.GetMimeType custom/fallback mimeType mapping
- return application/octet-stream when no mapping found
- Add custom dictionary with some additional mimeTypes, users can add their own to this dictionary
- Add xunit test

Resolves #3041
2020-05-18 11:40:38 +10:00
amaitland 8803f1c041 Core - DefaultBinder InvalidOperationException when binding [1,2,3,1.23] to double[]
- Bind for all elements in a collection, not just when the collection contains list/arrays
- Add additional unit tests

JavaScript array of [1,2,3,1.23] translates to [int, int, int, double], when attempting to Bind
to a double[] an InvalidOperationException was thrown. We now call Bind for each element,
when the type is directly assignable we return the value, for cases like above we perform a
type conversion.

Resolves #3129
2020-05-18 09:12:11 +10:00
amaitland 7dc74b2e2f Upgrade to CEF 81.3.10+gb223419+chromium-81.0.4044.138 2020-05-16 20:25:54 +10:00
amaitland 8b40e9bd05 WPF - Resize Hack for when browser switches from hidden to visible (#2779)
- Add 1 to the width/height rather than subtracts like the hack in the previous
versions
- Delay between resizes is now configurable via ResizeHackForIssue2279DelayInMs
v81.3.20-pre
2020-05-09 06:33:04 +10:00
amaitland 1e2ddba7a6 Update README.md - Add details for the upcoming cefsharp/81 branch 2020-05-09 06:03:05 +10:00
amaitland 99dd3f4273 Upgrade version number to 81.3.20 2020-05-09 05:56:39 +10:00
amaitland 0f3de6f432 Upgrade to CEF 81.3.2+gb9282cc+chromium-81.0.4044.138 / Chromium 81.0.4044.138 2020-05-09 05:54:38 +10:00
amaitland 6c29d3b4e6 Core - Update CefErrorCode
Resolves #3106
2020-05-08 10:22:56 +10:00
amaitland d6ca2531eb WPF Example - Add LoadExtension Test
Uses the set_page_color that CEF uses for testing
2020-05-05 15:06:11 +10:00
amaitland c63c301451 Core - Improve IBrowserHost.NotifyMoveOrResizeStarted xml doc 2020-05-05 08:34:48 +10:00
amaitland 545cbce36d WinForms - Form minimise set browser size to 0,0
When the form is minimized set the browser window size to 0x0 to reduce resource usage.

https://github.com/chromiumembedded/cef/blob/c7701b8a6168f105f2c2d6b239ce3958da3e3f13/tests/cefclient/browser/browser_window_std_win.cc#L89

Issue #2922
2020-05-05 08:30:27 +10:00
amaitland 1824a0334d WPF/WinForms/OffScreen - CanExecuteJavascriptInMainFrame incorrectly false after loading page with different origin
Proof of concept for a workaround. The frameId for the second OnContextReleased that arrives after the OnContextCreated from
the old render process strangely has a frameId greater than the new frameId

TODO: Unit tests

Issue #3021
2020-05-04 12:34:47 +10:00
amaitland 71a190dfe6 OffScreen Example - Demo Cef.WaitForBrowsersToClose();
Issue #3047
2020-05-04 11:34:52 +10:00
amaitland 6b440a84a3 Shutdown - Improve WaitForBrowsersToClose
- Add Cef.PreShutdown
- For WPF hook the DispatcherShutdownStarted and DispatcherShutdownFinished events then call Cef.PreShutdown
- Add NoOpBrowserRefCounter and set as default, needs a little more testing before it's enabled by default.
  Can be enabled by calling Cef.EnableWaitForBrowsersToClose before calling Cef.Initialize

Issue #3047
2020-05-03 21:58:05 +10:00
amaitland 09661c6ac7 Core - PathCheck fix typo in comment 2020-05-03 19:31:51 +10:00
amaitland 98b7abeeea Core - PathCheck rewrite to match Chromium FilePath::IsAbsolute
Resovles #3102
2020-05-03 19:28:32 +10:00
amaitland e1401e7092 Core - Ensure CachePath/RootCachePath/LocalesDirPath/BrowserSubprocessPath are absolute
CEF now requires this to be absolute, we enforce this by throwing exception if non-absolute

Resolves  #3102
2020-05-03 16:59:57 +10:00
amaitland 2602212f79 Upgrade to CEF 81.3.1+gb2b49f1+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-05-03 14:01:48 +10:00
amaitland 349c9a938b Core - IResourceRequestHandler implement IDisposible
Add ResourceRequestHandler.Dispose protected virtual method
Instance will be disposed when ref count frees the last instance.
2020-05-02 08:50:16 +10:00
amaitland b71381980c Core - Remove unused files
They were renamed (spelling mistake) and the old ones seem to have been retained,
probably a merge issue
2020-05-02 07:17:43 +10:00
amaitland 46006b4a44 Core - Add DependencyChecker.AssertPathAbsolute
Issue #3102
2020-05-01 11:03:30 +10:00
amaitland d82370eb14 Example - Add additional popup test
Also remove unused file
2020-05-01 11:00:45 +10:00
amaitland 4d7fa50c16 Example - Make BrowserSubProcess paths absolute
Issue #3102
2020-04-29 08:13:08 +10:00
amaitland 924e7bd457 WPF/OffScreen - Remove disable-gpu-compositing command line arg
Now that https://bitbucket.org/chromiumembedded/cef/issues/2733/viz-osr-might-be-causing-some-graphic
is resolved this shouldn't be required.

There are some glitches with resizing, the CEF OSR engine still needs some improvements. At least
the basics appear to be working now
2020-04-29 08:12:36 +10:00
amaitland 0d399e6fd4 WPF Example - Update EvaluateJavascriptTextBox to simple js example
Use 1 + 1 as a simple example

Objects aren't bound on the home page so the old script would fail to execute.
2020-04-29 08:07:33 +10:00
amaitland 3bac04d1d0 Upgrade to CEF 81.2.25+g3afea62+chromium-81.0.4044.113 2020-04-29 07:57:02 +10:00
amaitland e2d3d9dc02 Bug Report Template - Add additional command line args. 2020-04-29 07:10:05 +10:00
amaitland e6e8b9032f WPF - NullReferenceException when pressing key before underlying CefBrowser created
Pressing a key before the CefBrowser instance is created would throw an exception

For consistence we add checks like the mouse and touch handlers

Eventually the browser != null checks should be replaced with a browser initialized
check for clearer intent.

As suggested at https://gitter.im/cefsharp/CefSharp?at=5ea84e147a24ff01b0eb662b
2020-04-29 06:06:30 +10:00
amaitland 0f22224c37 WPF Example - Readd Legacy Binding
if CefSharpSettings.LegacyJavascriptBindingEnabled then register bound and boundAsync objects
2020-04-28 20:54:22 +10:00
amaitland bce627097b Upgrade version number to 81.2.210 2020-04-27 17:45:53 +10:00
amaitland 7e121305ae Example - Add AcceptRangeResourceHandler demo
CEF in theory now supports partial range requests see https://bitbucket.org/chromiumembedded/cef/issues/2873/streamreaderurlloader-doesnt-correctly

Not production tested, just a rough working prototype at this point in time. It's not clear that CEF
2020-04-23 17:10:37 +10:00
amaitland 14072b48e3 Core - ResourceHandler.Skip return true on successful seek 2020-04-23 17:07:06 +10:00
amaitland f566d99b12 Upgrade to CEF 81.2.21+ge864886+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-04-23 05:56:17 +10:00
amaitland 296e75a775 Core - CefEventFlags fix capitalisation of AltGrDown
Was previously AltgrDown

Issue #3098
2020-04-18 20:31:04 +10:00
amaitland aef48bdd17 Core - CefEventFlags.AltGrDown Typo
Issue #3098
2020-04-18 14:52:41 +10:00
amaitland f46a8a7175 Core - Add CefEventFlags.AltGrDown
Resolves #3098
2020-04-18 10:55:27 +10:00
amaitland 51fef05989 Upgrade to CEF 81.2.17+gb382c62+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-04-18 10:52:53 +10:00
Alex Maitland b2c1d924c0 Update CONTRIBUTING.md
Add extra command line args for testing
2020-04-17 14:55:20 +10:00
amaitland ea3b1398d0 Example - RegisterTestResources now registers resource if no factory found 2020-04-08 18:07:01 +10:00
amaitland cb429ce9bf WPF - Improve ToolTip Text Wrapping
When no ToolTip style is defined we'll use a TextBlock to wrap the text so it's
usable by default. If a style is applied then we leave it up to user.

Resolves #2488
2020-04-08 16:43:47 +10:00
amaitland 73e7c5de13 Core - Rename AbstractCefSettings to CefSettingsBase
This is a somewhat cosmetic change so the API Doc looks better, the
classes appear next to each other (CefSettings, CefSettingsBase)
when sorted alphabetically.

Resolves #3093
2020-04-06 14:59:33 +10:00
amaitland defc2c3af6 WinForms - Remove WS_EX_NOACTIVATE style on initial page Load
- When LoadingStateChanged occurs we remove the ExStyle WS_EX_NOACTIVATE flag
- Previous change to the FocusHandler was reverted in 917480da3b

Updated to match the cefclient example
https://github.com/chromiumembedded/cef/blob/9df4a54308a88fd80c5774d91c62da35afb5fd1b/tests/cefclient/browser/root_window_win.cc#L1088

Resolves #2776
2020-04-06 10:48:53 +10:00
amaitland 917480da3b Revert "WinForms - DefaultFocusHandler now allows browser to take focus on initial load"
This reverts commit f725ab3907.

Issue #2776
2020-04-06 10:28:54 +10:00
amaitland 955b3f3c1a Core - Consistent C++ naming
- Following the adapter/wrapper naming scheme
- Moved classes to internals that aren't public facing

Resolves #1005
2020-04-06 06:50:32 +10:00
amaitland b2dc7bfc0d Upgrade to CEF 80.1.15+g7b802c9+chromium-80.0.3987.163 / Chromium 80.0.3987.163 2020-04-05 07:56:02 +10:00
amaitland 0592d69784 Core - FolderSchemeHandlerFactory add protected virtual Create method
override Create to implement custom behaviour
2020-04-05 05:33:22 +10:00