Alex Maitland
8134e8280e
Merge pull request #1426 from amaitland/fix/1407
...
Add Support for executing a JavascriptCallback with a Struct as a param
2015-11-19 18:12:19 +10:00
amaitland
1bce19a051
Remove unnecessary safe cast and cleanup the code a little
2015-11-18 18:50:38 +10:00
amaitland
263ac29a40
Reorder serializer params - now slightly more logical
2015-11-18 18:49:12 +10:00
amaitland
07820e9c8b
For v8serialization Instead of creating a null and then not using refactor slightly
2015-11-18 18:45:28 +10:00
amaitland
401dd969fc
Make params const and pass by ref
2015-11-18 18:39:36 +10:00
amaitland
3f15b53ab7
Resolves #1407
...
More the DeserializeV8Object call to within the context->Enter so a V8Object can be created
Change callback to use a struct as it's return type to demo the solution to this bug
Add missing list->SetDictionary call in V8Serialization.cpp
2015-11-18 09:17:16 +10:00
Alex Maitland
1f945770d2
Add branches status column
...
Add Status column to display the release/development status of the different branches.
2015-11-16 15:19:03 +10:00
Atvaark
b04ccbb269
Add missing comments
2015-11-04 13:10:00 +10:00
amaitland
2f4dd4af41
Update appveyor.yml version number
...
Fix build.ps1 error for CEF version
2015-11-01 20:24:29 +10:00
amaitland
42281eb9f9
Switch ternary evaluation to == rather than !=
...
Change variable naming to be consistent with rest of code.
Add code comment
2015-11-01 20:00:17 +10:00
JoViehmann
39c8c2fe79
Use RenderOptions of the control in Wpf ChromiumWebBrowser.cs CreateImage
...
This little change allows users to set the RenderOptions BitmapScalingMode for the ChromiumWebBrowser Wpf control just like this:
<cefSharp:ChromiumWebBrowser RenderOptions.BitmapScalingMode="Fant">
While NearestNeighbor (fixed value before my edit) looks fine if each rendered pixel is exactly displayed as a single pixel, using that setting for a browser placed in a viewport leads to ugly results.
You can test the different BitmapScalingMode settings for example in the Wpf.Example application if you set the RenderOptions.BitmapScalingMode property for the ChromiumWebBrowser in BrowserTabView.xaml.
Just change the Angel (Tweak WPF Rendering) of the browser in the running application to actually see the differences.
Best Regards
Johannes Viehmann
2015-10-30 13:58:45 +01:00
amaitland
0ecd64dfd2
Upgrade to 3.2526.1347
...
Upgrade 45.0.0 references to 47.0.0
Remove BrowserSettings.Java as it's an NPAPI plugin and support was removed in version 45
2015-10-30 09:10:12 +10:00
Alex Maitland
f2f9704e98
Add cefsharp/45 branch
v45.0.0-pre01
2015-10-30 08:46:05 +10:00
amaitland
95040059be
Resolves #1386 - Add UserDataPath
...
Also add JavascriptFlags and UncaughtExceptionStackSize
Hopefully all the properties have been exposed now
2015-10-30 08:06:46 +10:00
amaitland
c135fe2d90
Fixes #1387 StatusCode, StatusText and MimeType were always being overwritten in the constructor
2015-10-30 08:00:02 +10:00
amaitland
11b379f526
NuGet/Readme.txt add a second note about VC++ 2013 now being required and update the line number pointing to the CEF Readme.txt in cef-binary
2015-10-30 07:53:53 +10:00
amaitland
bfe9fe63d9
Upgrade to CEF 3.2454.1344
2015-10-30 07:47:43 +10:00
Alex Maitland
ef52b6943a
Merge pull request #1372 from amaitland/feature/executescriptparams
...
ExecuteScriptAsync Execute method with params
2015-10-29 11:14:36 +10:00
amaitland
ab894a4ff4
Handle case where args.Length == 0
...
Previously would have stripped off the last two chars of the script
2015-10-29 11:13:53 +10:00
Alex Maitland
485f159a14
Merge pull request #1380 from illfang/fix-ensure-context-binding-of-root-object
...
Fix ensure context binding of root object
2015-10-28 22:02:20 +10:00
illfang
ccedf79114
bind root objects created during the OnProcessMessageReceived upon the context creation triggered by the evaluation of JS.
...
00c926a4cc
#1354
2015-10-28 20:32:58 +09:00
illfang
0ddfd1cb21
added a flag indicating if the root object has already been bound
2015-10-28 20:32:12 +09:00
amaitland
00c926a4cc
Proposed solution to #1354
...
The problem seems to be that OnContextCreated is never called as the page has no javascript code on it.
Keep the same callbackRegistry logic for kJavascriptCallbackRequest as without a context there cannot be a callback
For kEvaluateJavascriptRequest we now manually create a callback registry for the frame if required. Once the script is executed OnContextCreated is called, the wrapper creation is ignored and the context should be released as per normal in OnContextReleased
2015-10-26 18:23:10 +10:00
amaitland
e4db664801
Add override to ExecuteScriptAsync extension that takes in a method name and array of params, then generates the relevant script and executes
2015-10-26 12:43:35 +10:00
amaitland
94b77750e6
Fix #1357
...
In GetBrowserWrapper check if _cefBrowser has a valid pointer
Add ManagedCefBrowserAdapter IsDisposed check in JavascriptCallbackProxy::GetBrowser
Add CanExecute to check if underlying resources are still available
2015-10-26 12:04:54 +10:00
amaitland
cb927c5ef6
Remove redundant else statement from StringUtils.h
2015-10-26 11:49:14 +10:00
Alex Maitland
99ef5399e8
Merge pull request #1356 from illfang/feature-sanitized-and-verbose-js-exception-strings
...
Feature sanitized and verbose js exception strings
2015-10-26 11:47:19 +10:00
illfang
c5a9ed9038
added missing include for CI build
2015-10-23 16:51:22 +09:00
illfang
cd93572a1e
create JS exceptions for callbacks and eval js using string utils, removed check for exception as contained in string utils
2015-10-23 16:40:42 +09:00
illfang
bd95633741
added CreateExceptionString to the string utils which creates a verbose message from a Cef V8 exception, if possible
2015-10-23 16:40:25 +09:00
illfang
8c76967b62
test for js exceptions created in callbacks
2015-10-23 16:40:07 +09:00
Alex Maitland
677943e628
Merge pull request #1355 from illfang/feature-optimized-promise-creation
...
Feature optimized promise creation
2015-10-23 11:07:21 +10:00
Alex Maitland
f609484ac4
Merge pull request #1358 from illfang/fix-offscreen-browser-browser-settings-nullptr-interface-breaking
...
Fix offscreen browser browser settings nullptr (breaking current interface)
2015-10-23 07:43:49 +10:00
illfang
7c07fb48d9
always create the offscreen browser using the instance settings, request context and address
2015-10-22 20:23:07 +09:00
illfang
4fb963fc71
do not create two objects in the promis creaton function
2015-10-22 14:17:07 +09:00
amaitland
a3dff183dc
Upgrade to 3.2454.1342
2015-10-21 20:07:13 +10:00
amaitland
fe11f2eada
Add Cef.DoMessageLoopWork example to WinForms.Example project
2015-10-21 19:56:45 +10:00
bartwe
221ec0dacc
Expose explicit message loop handling.
2015-10-21 19:46:13 +10:00
amaitland
03f73b5960
Conditionally create response for kEvaluateJavascriptRequest and kJavascriptCallbackRequest (was only going to create the kEvaluateJavascriptResponse before
2015-10-19 13:40:36 +10:00
amaitland
17b7f0ced1
BindingTest - Braces on new lines
...
Fix CefAppUnmanagedWrapper code formatting
Slightly more descriptive error message when frame not found
2015-10-19 13:24:24 +10:00
Greg Martin
a64f25193f
This should fix #1336 (IJavascriptCallback.ExecuteAsync never returns when callback no longer exists) and likely fixes as-of-yet undiscovered related callback problems.
...
The code previously in CefAppUnmanagedWrapper.cpp's OnProcessMessageReceived method did not check for a nullptr callbackWrapper resulting in an exception.
Also note that previously the success and reponse variables were not initialized by default which I believe to have been a mistake after following all of the if..else code paths (most importantly some error conditions would never be returned back).
I added a new test to BindingTest.html entitled "Test Disposed Callback" which makes the same 1.5 second delayed callback that "Test Callback" does, but then immediately navigate the page to www.google.com. Without the fix in CefAppUnmanagedWrapper.cpp the browser's renderer process will die in about 10 seconds.
2015-10-19 13:24:24 +10:00
amaitland
9aacd3cc61
VS2012 has problem with the auto keyboard in for each loops
2015-10-18 08:18:33 +10:00
amaitland
4a66273d8e
Add notes about CefLoadHandler methods/events being called on the CEF UI thread and that blocking is not advised.
2015-10-18 08:15:48 +10:00
amaitland
dca52f931f
OffScreen - Allow for the delayed creation of the underlying OffScreenBrowser, useful for binding and potentially using as an custom popup implementation (when that eventually works properly)
...
Resolves #1170
2015-10-16 07:06:06 +10:00
amaitland
1238392642
Allow for custom rendering in OffScreen project
...
- Add BitmapFactory property
- Expose InvokeRenderAsync as virtual
2015-10-15 21:45:07 +10:00
amaitland
8f61fc618b
Update to 3.2454.1333
...
https://bitbucket.org/chromiumembedded/cef/commits/a594fe2ca4bcb1a7b7bccd814fbd6a382a4dc825
Resolves #1337
2015-10-15 21:12:16 +10:00
amaitland
4dbc90333d
CefAppWrapper no longer inherits from DisposableResource
...
No need for CefRenderProcess to keep a list of browsers any more, one less thing to cleanup
2015-10-15 21:00:27 +10:00
amaitland
68b2c461b5
Remove unused references
2015-10-15 21:00:26 +10:00
Alex Maitland
b9de2b0bcb
Merge pull request #1335 from illfang/fix-create-callback-registry-without-root-objects
...
Missing callback registry for browsers created without registered js objects
2015-10-15 12:55:42 +10:00
illfang
91976cddba
create a root object even if no objects have been registered but only bind the root object if objects are available
2015-10-15 11:35:41 +09:00