Commit Graph

646 Commits

Author SHA1 Message Date
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
amaitland bfe9fe63d9 Upgrade to CEF 3.2454.1344 2015-10-30 07:47:43 +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
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 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 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 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 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
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 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
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
amaitland 2f3d9f868f 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)
2015-10-11 20:41:17 +10:00
amaitland 5869b20068 Change CefBrowserWrapper Dictionary to ConcurrentDictionary 2015-10-11 19:50:55 +10:00
amaitland c2b712f06c Update to CEF 3.2454.1326
Remove IRequestHandler.OnBeforePluginLoad (was moved on the upstream API, will need to be re-added)
Fixes #1306
2015-10-01 20:21:21 +10:00
amaitland b9ee476e8e Fix up some of the vc++ include mess that we had going
Cleanup using namespace statements as well
2015-09-29 16:26:06 +10:00
amaitland 32a9f7fe81 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-09-24 19:36:47 +10:00
amaitland 73c3e515e6 Remove JavascriptCallbackWrapper.cpp - move methods into header (super simple class doesn't need the extra overhead of a cpp file) 2015-09-24 19:00:26 +10:00
amaitland b236d7711c 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-09-24 18:44:30 +10:00
amaitland 9f08683669 Pass JavascriptObject in as param rather than keeping reference when calling Bind 2015-09-24 18:37:35 +10:00
Haraguroicha 8a725bcd7b let cef.sdk reference from SolutionDir\packages not project relative parent 2015-09-23 12:27:51 +08:00
amaitland e492c0d21e Fixes #1263
Pass in CefCustomScheme as command line argument, as they're registered correctly in all processes
2015-09-15 15:15:26 +10:00
amaitland 614bb08fca Cleanup project references - removed some unused ones 2015-09-15 13:13:08 +10:00
illfang aad399ba5f detailed exception string generation for exceptions in injected native functions / properties 2015-09-08 10:49:33 +09:00
amaitland 2a49686541 Fix some version number mistakes 2015-09-01 22:32:28 +10:00
amaitland fd6e93e75c Upgrade tools version to VS2013 2015-09-01 22:14:00 +10:00
amaitland 0ce2562e1e Update to 2454.1317 2015-09-01 22:07:43 +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