amaitland
7fe1d8fe77
Add CefExecuteProcess as Cef.ExecuteProcess - useful for implementing your own very minimal browser without the custom subprocess
v45.0.0
2015-11-19 19:04:30 +10:00
amaitland
4de8dca04b
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-19 18:16:40 +10:00
Alex Maitland
c0df93c1c4
Merge pull request #1399 from Atvaark/cefsharp/45
...
Add missing XML documentation comments
2015-11-04 13:04:28 +10:00
Atvaark
607585d42f
Add missing comments
2015-11-03 18:42:33 +01: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
amaitland
7aa128781d
Add IsDisposed checks
...
Resolves #1307
2015-10-13 19:46:38 +10:00
amaitland
4ba7e95012
Formatting - else if on new line
...
Minor change to message of callback registry is not available
2015-10-13 18:55:04 +10:00
Alex Maitland
13bdc090ae
Merge pull request #1321 from amaitland/enhancement/v8contextperframe
...
Add support for JSB with frames
2015-10-13 18:47:42 +10:00
Alex Maitland
4d6575f9fa
Merge pull request #4 from illfang/fix-v8contextperframe-destructor
...
Adjustment for the v8 context per frame implementation
2015-10-13 18:23:06 +10:00
illfang
adc57b2b2b
Merge branch 'enhancement/v8contextperframe' of https://github.com/amaitland/CefSharp into fix-v8contextperframe-destructor
2015-10-13 15:39:46 +09:00
amaitland
b1053cb6a5
Merge remote-tracking branch 'remotes/upstream/master' into enhancement/v8contextperframe
2015-10-13 14:08:32 +10:00
illfang
e9675a2c3e
ensure destroyed root objects are not accessed in cef app unmanaged warpper message handling
2015-10-13 13:00:39 +09:00
illfang
c5215bbbca
do not delete shared callback registry in js method handler destructor, added comment to clarify the missing destructor call
2015-10-13 12:59:51 +09:00