Commit Graph

372 Commits

Author SHA1 Message Date
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 f341c5ba1f Improve display of TooltipTest.html - minor html cleanup 2015-10-13 13:11:27 +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 20b8aa5732 Add IDragHandler.OnDraggableRegionsChanged 2015-10-12 07:16:33 +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
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 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
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
amaitland d9c3569bd7 Add IRequestHandler.OnResourceResponse 2015-09-29 08:03:54 +10:00
amaitland 73df171a22 Add example of setting Referer in OnBeforeResourceLoad 2015-09-29 06:51:38 +10:00
amaitland 2153c51d15 Add PostData null checks to examples
Add basic ajax post example for custom scheme handler test page/handler
2015-09-25 11:47:10 +10:00
amaitland 83f5ae94fa Add popup to open BindingTest.html 2015-09-24 18:48:53 +10:00
amaitland 78dbdcd8ee Update CI build to 45
Update another 43 reference to 43 in Home.html
2015-09-23 09:11:36 +10:00
amaitland 190178e79e Only enable WCF if a bound object has been registered
Fixes #1272
2015-09-18 13:56:43 +10:00
amaitland fff0808693 Demo opening OnOpenUrlFromTab - rough example 2015-09-18 13:22:11 +10:00
illfang a9f5ab4c97 merge with master 2015-09-16 18:05:13 +09:00
illfang 94e352908a added test for WebGL content which is loaded in a cefsharp/CefSharp/issues/1226 2015-09-16 17:59:20 +09:00
amaitland 99762a8e05 Add pointer check to CefPostDataWrapper - return an empty collection if no CefPostData was passed in
Handle the empty post data better in the example SchemeHandler
2015-09-16 16:07:40 +10:00
amaitland 3fac742403 Demo Post data for #1267 2015-09-16 16:01:48 +10:00
Alex Maitland 3ba9dc914d Merge pull request #1268 from amaitland/fix/schemeregistration
Register Custom Schemes in all sub processes
2015-09-16 09:06:41 +10:00
amaitland 561b50b2cd Register the same scheme twice to confirm parsing of command line arguments
Fix up some urls in the custom scheme popup test
Add PopupTest.html to WPF example menu
2015-09-16 09:05:52 +10:00
amaitland 7f46d90e00 Add EnableInternalPdfViewerOffScreen to simplify disabling surfaces for internal PDF viewer (offscreen rendering) 2015-09-16 07:22:18 +10:00
amaitland 5f8f09ec1f Remove some duplication from the offscreen performance args part 2015-09-16 07:18:58 +10:00
amaitland 9ece6dcbbd Update Home.html - make code relevant for newer branches
Start adding new sections making it more info a full tutorial on CefSharp
Still a work in progress
2015-09-10 21:59:49 +10:00
amaitland be9ef20985 Add example of registering custom scheme for cookie manager 2015-09-09 17:08:03 +10:00
amaitland 5aa45a8107 Add using(callback) so dispose is called in the event of an exception 2015-09-09 11:45:57 +10:00
amaitland 52791957d5 Update callback usage examples
Add some comments in example RequestHandler about disposing of callbacks
2015-09-09 09:18:27 +10:00
amaitland b9bad5ebf3 Formatting - braces on new lines 2015-09-08 13:58:15 +10:00
illfang a62ff446bb format exception log for html output 2015-09-08 11:33:23 +09:00
illfang 81c545cf39 added test html logging exception log messages: ExceptionTest.html
custom://cefsharp/ExceptionTest.html
2015-09-08 11:20:31 +09:00
amaitland 7df00f8851 Demo PDF viewer working in WPF (Added extra command line switch to disable surfaces)
Remove NPAPI reference
2015-09-04 08:00:04 +10:00
amaitland bda5e9eeea Rework some of the example handlers to include the IsDispose check on their callbacks 2015-09-01 12:16:08 +10:00
amaitland fa89d306e1 Add CefSettings.SetOffScreenRenderingBestPerformanceArgs helper method based on https://bitbucket.org/chromiumembedded/cef/commits/e3c1d8632eb43c1c2793d71639f3f5695696a5e8 2015-08-27 10:36:41 +10:00
amaitland 48d364aed7 Load basic error message when render process crashes
TODO: Make this a little more elegant
2015-08-26 17:26:45 +10:00
amaitland ad336a8928 First draft of sslinfo
Conflicts:
	CefSharp.Core/CefSharp.Core.vcxproj.filters
	CefSharp.Example/RequestHandler.cs
2015-08-17 14:49:47 +10:00
amaitland 315e345582 Add OnOpenUrlFromTab and OnRenderViewReady 2015-08-17 13:59:48 +10:00
amaitland 6e1c9ad778 Add OnResetDialogState and OnDialogClosed to IJsDialogHandler 2015-08-17 13:16:45 +10:00
amaitland 78a8bab09b Add some extra command line options and reference to getting best performance using OSR rendering (at the cost of WebGL) 2015-08-12 09:10:17 +10:00
amaitland 5a09a5ef35 Merge branch 'cefextensions' of https://github.com/arsher/CefSharp 2015-08-03 12:12:51 +10:00
amaitland 25be7265f2 Add DebuggerHidden attribute so VS doesn't break when Break on User-Unhandled Exceptions is checked 2015-08-03 11:37:49 +10:00
amaitland 20ae2b51e4 Add a little more detail to BindingTest.html async output 2015-08-03 10:57:36 +10:00
amaitland 7498c65741 Add copyright to CefSharp.Example 2015-08-03 10:41:29 +10:00
amaitland 52f5ac5302 Formatting, make class private 2015-08-03 10:37:09 +10:00
amaitland aabbb65f8d Merge branch 'asyncmethods' of https://github.com/cefsharp-ms/CefSharp 2015-08-03 10:29:52 +10:00
amaitland ab98228b51 Merge branch 'cookiemanager' of https://github.com/arsher/CefSharp 2015-08-03 10:13:56 +10:00
David Serfozo 4fdca242d0 CefExtension modified to null-check JavascriptCode in constructor 2015-08-02 16:07:43 +02:00
David Serfozo 756bd44bbd added extension example 2015-08-01 20:26:03 +02:00
cefsharp-ms 0b300d5dda Merged master 2015-07-31 17:41:00 +02:00