Commit Graph

  • 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 amaitland 2015-10-26 12:04:40 +10:00
  • b07c112544 Remove redundant else statement from StringUtils.h amaitland 2015-10-26 11:49:14 +10:00
  • 8e17df70cd added missing include for CI build illfang 2015-10-23 16:51:22 +09:00
  • 49a2416683 create JS exceptions for callbacks and eval js using string utils, removed check for exception as contained in string utils illfang 2015-10-23 16:40:42 +09:00
  • 88c15ebcbe added CreateExceptionString to the string utils which creates a verbose message from a Cef V8 exception, if possible illfang 2015-10-23 16:40:25 +09:00
  • f7d139a8d2 test for js exceptions created in callbacks illfang 2015-10-23 16:40:07 +09:00
  • cb927c5ef6 Remove redundant else statement from StringUtils.h amaitland 2015-10-26 11:49:14 +10:00
  • 99ef5399e8 Merge pull request #1356 from illfang/feature-sanitized-and-verbose-js-exception-strings Alex Maitland 2015-10-26 11:47:19 +10:00
  • c5a9ed9038 added missing include for CI build illfang 2015-10-23 16:51:22 +09:00
  • cd93572a1e create JS exceptions for callbacks and eval js using string utils, removed check for exception as contained in string utils illfang 2015-10-23 16:40:42 +09:00
  • bd95633741 added CreateExceptionString to the string utils which creates a verbose message from a Cef V8 exception, if possible illfang 2015-10-23 16:40:25 +09:00
  • 8c76967b62 test for js exceptions created in callbacks illfang 2015-10-23 16:40:07 +09:00
  • 677943e628 Merge pull request #1355 from illfang/feature-optimized-promise-creation Alex Maitland 2015-10-23 11:07:21 +10:00
  • f609484ac4 Merge pull request #1358 from illfang/fix-offscreen-browser-browser-settings-nullptr-interface-breaking Alex Maitland 2015-10-23 07:43:49 +10:00
  • 7c07fb48d9 always create the offscreen browser using the instance settings, request context and address illfang 2015-10-22 20:23:07 +09:00
  • 4fb963fc71 do not create two objects in the promis creaton function illfang 2015-10-22 14:17:07 +09:00
  • 52c8b66383 Expose explicit message loop handling. bartwe 2015-10-19 16:34:29 +02:00
  • a3dff183dc Upgrade to 3.2454.1342 amaitland 2015-10-21 20:07:13 +10:00
  • fe11f2eada Add Cef.DoMessageLoopWork example to WinForms.Example project amaitland 2015-10-21 19:56:45 +10:00
  • 221ec0dacc Expose explicit message loop handling. bartwe 2015-10-19 16:34:29 +02:00
  • d2aa11ec75 Conditionally create response for kEvaluateJavascriptRequest and kJavascriptCallbackRequest (was only going to create the kEvaluateJavascriptResponse before amaitland 2015-10-19 13:40:36 +10:00
  • 03f73b5960 Conditionally create response for kEvaluateJavascriptRequest and kJavascriptCallbackRequest (was only going to create the kEvaluateJavascriptResponse before amaitland 2015-10-19 13:40:36 +10:00
  • 17b7f0ced1 BindingTest - Braces on new lines Fix CefAppUnmanagedWrapper code formatting Slightly more descriptive error message when frame not found amaitland 2015-10-19 13:23:01 +10:00
  • 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. Greg Martin 2015-10-18 14:47:54 -07:00
  • a598af2a2e BindingTest - Braces on new lines Fix CefAppUnmanagedWrapper code formatting Slightly more descriptive error message when frame not found amaitland 2015-10-19 13:23:01 +10:00
  • 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. Greg Martin 2015-10-18 14:47:54 -07:00
  • 9aacd3cc61 VS2012 has problem with the auto keyboard in for each loops amaitland 2015-10-17 12:58:39 +10:00
  • be29bb8270 Add notes about CefLoadHandler methods/events being called on the CEF UI thread and that blocking is not advised. amaitland 2015-10-18 08:15:48 +10:00
  • 4a66273d8e Add notes about CefLoadHandler methods/events being called on the CEF UI thread and that blocking is not advised. amaitland 2015-10-18 08:15:48 +10:00
  • f676288894 VS2012 has problem with the auto keyboard in for each loops amaitland 2015-10-17 12:58:39 +10:00
  • 16e55d3865 Upgrade to 43.0.1 in pre for next release amaitland 2015-10-17 12:50:08 +10:00
  • 7c157f742c Resolve merge issues when cherry picking from master branch amaitland 2015-10-17 12:35:12 +10:00
  • d0460e50df 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 amaitland 2015-10-16 07:06:06 +10:00
  • 6e79d50640 Allow for custom rendering in OffScreen project - Add BitmapFactory property - Expose InvokeRenderAsync as virtual amaitland 2015-10-15 21:45:07 +10:00
  • fb7777a19f CefAppWrapper no longer inherits from DisposableResource No need for CefRenderProcess to keep a list of browsers any more, one less thing to cleanup amaitland 2015-10-13 22:06:53 +10:00
  • eab056608f Remove unused references amaitland 2015-10-13 22:05:33 +10:00
  • a255020721 create a root object even if no objects have been registered but only bind the root object if objects are available illfang 2015-10-14 19:01:13 +09:00
  • aa14254c06 Add IsDisposed checks Resolves #1307 amaitland 2015-10-13 19:46:38 +10:00
  • 98fe58c38c Formatting - else if on new line Minor change to message of callback registry is not available amaitland 2015-10-13 18:55:04 +10:00
  • 7fdd5476db ensure destroyed root objects are not accessed in cef app unmanaged warpper message handling illfang 2015-10-13 13:00:39 +09:00
  • 482b727d26 do not delete shared callback registry in js method handler destructor, added comment to clarify the missing destructor call illfang 2015-10-13 12:59:51 +09:00
  • 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) amaitland 2015-10-11 20:41:17 +10:00
  • dbc1671af5 Change CefBrowserWrapper Dictionary to ConcurrentDictionary amaitland 2015-10-11 19:50:55 +10:00
  • fc9b095544 fix formatting of multi binding test illfang 2015-10-09 17:55:14 +09:00
  • 88342c1594 added multi binding test for testing bindings with multiple contexts and dynamic context creation / destruction illfang 2015-10-09 15:23:50 +09:00
  • 553ccfc8cc replaced tabs for spaces in test html files illfang 2015-10-09 17:56:17 +09:00
  • ea0f0e3071 Add CefSharpSettings.WcfTimeout - allow user to specify custom timeout when closing the WCF channel host Can set to TimeSpan.Zero to Abort the channel (close without timeout) amaitland 2015-10-08 22:42:37 +10:00
  • 71acc04c40 Add CefSharpSettings.ShutdownOnExit - all the user to disable the inbuilt call to Cef.Shutdown (Also needs to set shutdownOnProcessExit:false when calling Cef.Initialize, or the ParentProcessExitHandler will be called to Shutdown Cef) amaitland 2015-10-08 22:37:14 +10:00
  • d9d84d781a Remove stray quotes amaitland 2015-09-30 08:30:03 +10:00
  • e0c8284507 Fix up some of the vc++ include mess that we had going Cleanup using namespace statements as well amaitland 2015-09-29 15:14:18 +10:00
  • 1148f022fc Keep a WeakReference to IBrowserAdapter instead of IBrowser and lookup the browser by it's Id for callbacks amaitland 2015-09-24 21:00:53 +10:00
  • a450fd79bb Add TODO about callbacks being executed in the context of a popup amaitland 2015-09-24 20:24:16 +10:00
  • c95291ce03 Async JSB now working in popups Still have the issue of callbacks not working as expect, for some reason it can't find the context amaitland 2015-09-24 20:08:15 +10:00
  • c7030d0f05 Remove unused MethodInvocation constructor amaitland 2015-09-24 19:56:01 +10:00
  • 946b107f4f Only send kJavascriptRootObjectRequest when main browser is created (OnRenderViewReady) Remove IsPopup check from async binding amaitland 2015-09-24 19:50:48 +10:00
  • 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 amaitland 2015-09-24 19:36:47 +10:00
  • 42dd4d9cef Remove JavascriptCallbackWrapper.cpp - move methods into header (super simple class doesn't need the extra overhead of a cpp file) amaitland 2015-09-24 19:00:26 +10:00
  • 1aa30ad9a2 Fix small build error - had to do a full rebuild before compiler showed a problem amaitland 2015-09-24 18:51:07 +10:00
  • ea3cbb74f7 Add popup to open BindingTest.html amaitland 2015-09-24 18:48:53 +10:00
  • 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 amaitland 2015-09-24 18:44:30 +10:00
  • d2ed4afa7a Pass JavascriptObject in as param rather than keeping reference when calling Bind amaitland 2015-09-24 18:35:26 +10:00
  • 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 amaitland 2015-10-16 07:06:06 +10:00
  • 1238392642 Allow for custom rendering in OffScreen project - Add BitmapFactory property - Expose InvokeRenderAsync as virtual amaitland 2015-10-15 21:45:07 +10:00
  • 8f61fc618b Update to 3.2454.1333 amaitland 2015-10-15 21:12:16 +10:00
  • 4dbc90333d CefAppWrapper no longer inherits from DisposableResource No need for CefRenderProcess to keep a list of browsers any more, one less thing to cleanup amaitland 2015-10-13 22:06:53 +10:00
  • 68b2c461b5 Remove unused references amaitland 2015-10-13 22:05:33 +10:00
  • b9de2b0bcb Merge pull request #1335 from illfang/fix-create-callback-registry-without-root-objects Alex Maitland 2015-10-15 12:55:42 +10:00
  • 91976cddba create a root object even if no objects have been registered but only bind the root object if objects are available illfang 2015-10-14 19:01:13 +09:00
  • 7aa128781d Add IsDisposed checks Resolves #1307 amaitland 2015-10-13 19:46:38 +10:00
  • 4ba7e95012 Formatting - else if on new line Minor change to message of callback registry is not available amaitland 2015-10-13 18:55:04 +10:00
  • 13bdc090ae Merge pull request #1321 from amaitland/enhancement/v8contextperframe Alex Maitland 2015-10-13 18:47:42 +10:00
  • 4d6575f9fa Merge pull request #4 from illfang/fix-v8contextperframe-destructor Alex Maitland 2015-10-13 18:23:06 +10:00
  • adc57b2b2b Merge branch 'enhancement/v8contextperframe' of https://github.com/amaitland/CefSharp into fix-v8contextperframe-destructor illfang 2015-10-13 15:39:46 +09:00
  • b1053cb6a5 Merge remote-tracking branch 'remotes/upstream/master' into enhancement/v8contextperframe amaitland 2015-10-13 14:08:32 +10:00
  • e9675a2c3e ensure destroyed root objects are not accessed in cef app unmanaged warpper message handling illfang 2015-10-13 13:00:39 +09:00
  • c5215bbbca do not delete shared callback registry in js method handler destructor, added comment to clarify the missing destructor call illfang 2015-10-13 12:59:51 +09:00
  • 1f31ea9573 Merge branch 'enhancement/v8contextperframe' of https://github.com/amaitland/CefSharp into fix-v8contextperframe-destructor illfang 2015-10-13 12:30:38 +09:00
  • f341c5ba1f Improve display of TooltipTest.html - minor html cleanup amaitland 2015-10-13 13:11:27 +10:00
  • cf9f9a1461 Comment out RequestContext from WPF example - it's not required. Add a comment about OnBeforePluginLoad amaitland 2015-10-13 13:00:49 +10:00
  • 75ab9c4db0 Merge pull request #1325 from amaitland/implement/OnBeforePluginLoad Alex Maitland 2015-10-12 22:54:52 +10:00
  • ad9f7c70ac Add IPluginHandler.OnBeforePluginLoad Can now be used through the RequestContext Add Example to WPF application amaitland 2015-10-12 15:10:04 +10:00
  • b739c155f9 Make ICookieManager.FlushStore Async Resolves #1276 amaitland 2015-10-12 08:47:38 +10:00
  • 935d3900ba Merge pull request #1323 from amaitland/implement/RunContextMenu Alex Maitland 2015-10-12 08:12:37 +10:00
  • 514d7e275d Add IContextMenuHandler.RunContextMenu amaitland 2015-10-12 08:03:50 +10:00
  • 01b51fa746 Merge pull request #1322 from amaitland/feature/OnDraggableRegionsChanged Alex Maitland 2015-10-12 07:38:19 +10:00
  • 20b8aa5732 Add IDragHandler.OnDraggableRegionsChanged amaitland 2015-10-12 07:16:33 +10:00
  • 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) amaitland 2015-10-11 20:41:17 +10:00
  • 5869b20068 Change CefBrowserWrapper Dictionary to ConcurrentDictionary amaitland 2015-10-11 19:50:55 +10:00
  • a707902485 Merge pull request #1318 from illfang/feature-multi-binding-test Alex Maitland 2015-10-09 19:46:36 +10:00
  • de0009c1e9 Merge pull request #1320 from illfang/quickfix-test-html-format-spaces-for-tab Alex Maitland 2015-10-09 19:45:43 +10:00
  • 1f601c9beb replaced tabs for spaces in test html files illfang 2015-10-09 17:56:17 +09:00
  • 06597c3368 fix formatting of multi binding test illfang 2015-10-09 17:55:14 +09:00
  • 441a2872c5 added multi binding test for testing bindings with multiple contexts and dynamic context creation / destruction illfang 2015-10-09 15:23:50 +09:00
  • d1ba723bd5 Add CefSharpSettings.WcfTimeout - allow user to specify custom timeout when closing the WCF channel host Can set to TimeSpan.Zero to Abort the channel (close without timeout) amaitland 2015-10-08 22:42:37 +10:00
  • efb841fdca Add CefSharpSettings.ShutdownOnExit - all the user to disable the inbuilt call to Cef.Shutdown (Also needs to set shutdownOnProcessExit:false when calling Cef.Initialize, or the ParentProcessExitHandler will be called to Shutdown Cef) amaitland 2015-10-08 22:37:14 +10:00
  • ac4df2e7c5 Merge pull request #1310 from illfang/quickfix-build-script-redist-version-upgrade Alex Maitland 2015-10-02 13:44:43 +10:00
  • 35de8bc137 quickfix for the upgraded default redist version of the build script (3.2454.1317 -> 3.2454.1326) illfang 2015-10-02 12:21:37 +09:00
  • c2b712f06c Update to CEF 3.2454.1326 Remove IRequestHandler.OnBeforePluginLoad (was moved on the upstream API, will need to be re-added) Fixes #1306 amaitland 2015-10-01 20:15:04 +10:00
  • 8f2dbcbe91 Remove stray quotes amaitland 2015-09-30 08:30:03 +10:00
  • 5c95498799 Merge pull request #1303 from amaitland/cleanup/vcpp Alex Maitland 2015-09-29 16:40:34 +10:00