amaitland
d2aa11ec75
Conditionally create response for kEvaluateJavascriptRequest and kJavascriptCallbackRequest (was only going to create the kEvaluateJavascriptResponse before
2015-10-19 13:41:24 +10:00
amaitland
a598af2a2e
BindingTest - Braces on new lines
...
Fix CefAppUnmanagedWrapper code formatting
Slightly more descriptive error message when frame not found
2015-10-19 13:23:01 +10:00
Greg Martin
1a01b95619
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:13:12 +10:00
amaitland
f676288894
VS2012 has problem with the auto keyboard in for each loops
2015-10-17 12:58:39 +10:00
amaitland
fb7777a19f
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-17 12:29:49 +10:00
illfang
a255020721
create a root object even if no objects have been registered but only bind the root object if objects are available
2015-10-17 12:29:47 +10:00
amaitland
98fe58c38c
Formatting - else if on new line
...
Minor change to message of callback registry is not available
2015-10-17 12:29:47 +10:00
illfang
7fdd5476db
ensure destroyed root objects are not accessed in cef app unmanaged warpper message handling
2015-10-17 12:29:43 +10:00
illfang
482b727d26
do not delete shared callback registry in js method handler destructor, added comment to clarify the missing destructor call
2015-10-17 12:29:43 +10:00
amaitland
015855a653
Make js callbacks and async methods Frame aware - add FrameId so they can be executed on a specific frame
...
Resolves a problem where multiple contexts are created and only the first one is dealt with properly (each frame has it's own V8 context)
Conflicts:
CefSharp.Core/Internals/JavascriptCallbackProxy.cpp
CefSharp.Core/Internals/JavascriptCallbackProxy.h
2015-10-17 12:29:41 +10:00
amaitland
dbc1671af5
Change CefBrowserWrapper Dictionary to ConcurrentDictionary
2015-10-17 12:27:34 +10:00
amaitland
e0c8284507
Fix up some of the vc++ include mess that we had going
...
Cleanup using namespace statements as well
Conflicts:
CefSharp.Core/Cef.h
CefSharp.Core/CefSharp.Core.vcxproj
CefSharp.Core/Internals/CefGetGeolocationCallbackWrapper.h
CefSharp.Core/Internals/CefPdfPrintCallbackWrapper.h
2015-10-17 12:26:16 +10:00
amaitland
81ce8d265a
Only keep reference to the property/method objects long enough to bind the object
...
No need to store a reference to them long term
2015-10-17 12:20:32 +10:00
amaitland
42dd4d9cef
Remove JavascriptCallbackWrapper.cpp - move methods into header (super simple class doesn't need the extra overhead of a cpp file)
2015-10-17 12:20:32 +10:00
amaitland
2d49fcf085
Restructure code so JavascriptRootObject's are stored and can be used across multiple CefBrowserWrapper instances (popups in this context)
...
Code is now very much dependant on using --process-per-tab for this structure to work
2015-10-17 12:20:30 +10:00
amaitland
d2ed4afa7a
Pass JavascriptObject in as param rather than keeping reference when calling Bind
2015-10-17 12:20:29 +10:00
amaitland
12b31a7782
Fixes #1263
...
Pass in CefCustomScheme as command line argument, as they're registered correctly in all processes
2015-09-16 09:12:31 +10:00
amaitland
0f55e1cbfd
Cleanup project references - removed some unused ones
2015-09-16 09:12:30 +10:00
illfang
010a7f326d
detailed exception string generation for exceptions in injected native functions / properties
...
Conflicts:
CefSharp/Internals/JavascriptObjectRepository.cs
2015-09-08 16:27:02 +10:00
amaitland
2e75ae32b1
Add some missing override statements (general cleanup)
2015-08-19 13:05:59 +10:00
amaitland
350d96ac82
Upgrade to CEF 3.2357.1287
2015-08-11 11:09:35 +10:00
amaitland
b4e6d6262b
Make const and pass by ref
2015-08-07 13:45:12 +10:00
amaitland
826aa4fcbf
Make JavascriptRootObjectWrapper internal to resolve compiler warning
2015-08-07 13:27:13 +10:00
amaitland
fc58a7db32
Cleanup some compiler warnings by making classes private
...
Remove unused using statements
2015-08-07 13:21:09 +10:00
amaitland
3d1cd667ab
Add missing braces
2015-08-07 12:56:16 +10:00
David Serfozo
437cf20160
normal bound objects transfered with cef ipc as well
2015-08-06 10:25:33 +02:00
amaitland
22fa4c3b10
Register custom schemes in render process
...
Fixes #1014
2015-08-03 12:30:58 +10:00
amaitland
bec6fe4618
Formatting and naming fixups
2015-08-03 12:16:20 +10:00
amaitland
5a09a5ef35
Merge branch 'cefextensions' of https://github.com/arsher/CefSharp
2015-08-03 12:12:51 +10:00
amaitland
e274340438
Make params const and pass by ref
2015-08-03 10:43:35 +10:00
amaitland
52f5ac5302
Formatting, make class private
2015-08-03 10:37:09 +10:00
David Serfozo
4fdca242d0
CefExtension modified to null-check JavascriptCode in constructor
2015-08-02 16:07:43 +02:00
David Serfozo
c8c100025a
whitespace diffs redone
2015-08-01 20:37:55 +02:00
David Serfozo
c9b7366786
Extensions transmitted in OnRenderThreadCreated and registered after webkit initialization
2015-08-01 20:25:12 +02:00
cefsharp-ms
0b300d5dda
Merged master
2015-07-31 17:41:00 +02:00
cefsharp-ms
0333437917
fixed tabs again
2015-07-31 17:30:07 +02:00
cefsharp-ms
0a66e90f24
added destructor for JavascriptAsyncMethodHandler
2015-07-31 17:27:10 +02:00
cefsharp-ms
c395f03ba2
jscallbackregistry lifecycle is managed by javascriptrootobjectwrapper, async methods too bound by javascriptrootobjectwrapper
2015-07-31 17:26:59 +02:00
cefsharp-ms
dbf5e94293
updated kPromisCreatorScript field to be static const
2015-07-31 17:17:55 +02:00
cefsharp-ms
c9451f160e
async binding handler cleanup
2015-07-31 17:17:42 +02:00
cefsharp-ms
561c2de020
RootObject message renamed to include async
2015-07-31 17:17:35 +02:00
cefsharp-ms
d6c72c6433
CefBrowserWrapper forward declarations removed
2015-07-31 17:17:29 +02:00
cefsharp-ms
43acbbe3fc
CefAppUnmanagedWrapper wrapped up a little bit
2015-07-31 17:17:22 +02:00
cefsharp-ms
4523ddfaab
method call message names include Async now
2015-07-31 17:17:16 +02:00
amaitland
2a6e42f2f8
Remove RenderThreadTaskFactory - no longer used now that we use native IPC for Eval js
2015-07-29 11:13:29 +10:00
amaitland
3d19b3a587
Cleanup Binding, rather than keep references to the V8 objects, just use them and then let them be released
...
Code should be a little easier to debug now.
2015-07-28 22:22:30 +10:00
cefsharp-ms
fc85d90877
added callback capability for async bound method with promises
2015-07-23 15:12:50 +02:00
cefsharp-ms
a8db666642
added async bound method result callback on browser process side
2015-07-23 15:12:28 +02:00
cefsharp-ms
4ec6d1ca6e
async method bindings added
2015-07-23 15:11:27 +02:00
cefsharp-ms
0e073bcd0a
added message to transmit async bound jsrootobject to render process
2015-07-23 15:10:52 +02:00