Commit Graph

3749 Commits

Author SHA1 Message Date
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
illfang 1f31ea9573 Merge branch 'enhancement/v8contextperframe' of https://github.com/amaitland/CefSharp into fix-v8contextperframe-destructor 2015-10-13 12:30:38 +09:00
amaitland f341c5ba1f Improve display of TooltipTest.html - minor html cleanup 2015-10-13 13:11:27 +10:00
amaitland cf9f9a1461 Comment out RequestContext from WPF example - it's not required.
Add a comment about OnBeforePluginLoad
2015-10-13 13:00:49 +10:00
Alex Maitland 75ab9c4db0 Merge pull request #1325 from amaitland/implement/OnBeforePluginLoad
Implement IPluginHandler.OnBeforePluginLoad
2015-10-12 22:54:52 +10:00
amaitland ad9f7c70ac Add IPluginHandler.OnBeforePluginLoad
Can now be used through the RequestContext
Add Example to WPF application
2015-10-12 15:32:10 +10:00
amaitland b739c155f9 Make ICookieManager.FlushStore Async
Resolves #1276
2015-10-12 08:47:38 +10:00
Alex Maitland 935d3900ba Merge pull request #1323 from amaitland/implement/RunContextMenu
Implement IContextMenuHandler.RunContextMenu
2015-10-12 08:12:37 +10:00
amaitland 514d7e275d Add IContextMenuHandler.RunContextMenu 2015-10-12 08:08:41 +10:00
Alex Maitland 01b51fa746 Merge pull request #1322 from amaitland/feature/OnDraggableRegionsChanged
Implement IDragHandler.OnDraggableRegionsChanged
2015-10-12 07:38:19 +10:00
amaitland 20b8aa5732 Add IDragHandler.OnDraggableRegionsChanged 2015-10-12 07:16:33 +10: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
Alex Maitland a707902485 Merge pull request #1318 from illfang/feature-multi-binding-test
Feature multi binding test
2015-10-09 19:46:36 +10:00
Alex Maitland de0009c1e9 Merge pull request #1320 from illfang/quickfix-test-html-format-spaces-for-tab
Quickfix format test HTML files
2015-10-09 19:45:43 +10:00
illfang 1f601c9beb replaced tabs for spaces in test html files 2015-10-09 17:56:17 +09:00
illfang 06597c3368 fix formatting of multi binding test 2015-10-09 17:55:14 +09:00
illfang 441a2872c5 added multi binding test for testing bindings with multiple contexts and dynamic context creation / destruction
1 browser, multiple changing contexts
also added a link to the popuptest
2015-10-09 15:23:50 +09:00
amaitland 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)
2015-10-08 22:42:37 +10:00
amaitland 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)
2015-10-08 22:37:14 +10:00
Alex Maitland ac4df2e7c5 Merge pull request #1310 from illfang/quickfix-build-script-redist-version-upgrade
Upgrade build.ps1 to reference cef.redist 3.2454.1326
2015-10-02 13:44:43 +10:00
illfang 35de8bc137 quickfix for the upgraded default redist version of the build script (3.2454.1317 -> 3.2454.1326)
cefsharp/CefSharp#1306
2015-10-02 12:21:37 +09: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 8f2dbcbe91 Remove stray quotes 2015-09-30 08:30:03 +10:00
Alex Maitland 5c95498799 Merge pull request #1303 from amaitland/cleanup/vcpp
Fix VC++ Include mess
2015-09-29 16:40:34 +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
Alex Maitland d95083ae4e Merge pull request #1284 from amaitland/bug/popupjsb
Add support for JSB in Popups
2015-09-29 08:16:13 +10:00
Alex Maitland 2b80c2a823 Merge pull request #1300 from amaitland/feature/OnResourceResponse
Add IRequestHandler.OnResourceResponse
2015-09-29 08:07:04 +10:00
amaitland d9c3569bd7 Add IRequestHandler.OnResourceResponse 2015-09-29 08:03:54 +10:00