359 Commits

Author SHA1 Message Date
amaitland b1d0bcf836 Add missing using statement
Using var - another resharper inspired change
2015-10-26 20:19:33 +10:00
illfang f7d139a8d2 test for js exceptions created in callbacks 2015-10-26 11:50:29 +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 7c157f742c Resolve merge issues when cherry picking from master branch 2015-10-17 12:35:12 +10:00
illfang fc9b095544 fix formatting of multi binding test 2015-10-17 12:27:33 +10:00
illfang 88342c1594 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

Conflicts:
	CefSharp.Example/CefSharpSchemeHandler.cs
	CefSharp.Example/Properties/Resources.Designer.cs
	CefSharp.Example/Properties/Resources.resx
2015-10-17 12:27:33 +10:00
illfang 553ccfc8cc replaced tabs for spaces in test html files
Conflicts:
	CefSharp.Example/Resources/FramedWebGLTest.html
2015-10-17 12:26:27 +10:00
amaitland ea3cbb74f7 Add popup to open BindingTest.html 2015-10-17 12:20:32 +10:00
amaitland 94c508eb0b Set supported cookie schemes for https and http 2015-09-25 06:09:43 +10:00
amaitland f9ff345c4d Only enable WCF if a bound object has been registered
Fixes #1272
2015-09-18 13:40:07 +10:00
amaitland 15a509fb2e 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:12:31 +10:00
amaitland a217cceeff Add "chrome-devtools" to cookie schemes - removes error from debug.log 2015-09-09 17:13:05 +10:00
amaitland 50f3cd082c Add example of registering custom scheme for cookie manager 2015-09-09 17:09:21 +10:00
amaitland 00e9bdd902 Add using(callback) so dispose is called in the event of an exception 2015-09-09 11:47:33 +10:00
amaitland 979d3fbf99 Update callback usage examples
Add some comments in example RequestHandler about disposing of callbacks
2015-09-09 11:47:33 +10:00
amaitland 8c01046d3d Remove unused references
Braces on new lines
Make method static
2015-09-08 16:33:10 +10:00
amaitland cafa4a937b Formatting - braces on new lines 2015-09-08 16:27:06 +10:00
illfang 4c39a511e9 format exception log for html output 2015-09-08 16:27:05 +10:00
illfang ae32ed4955 added test html logging exception log messages: ExceptionTest.html
custom://cefsharp/ExceptionTest.html
2015-09-08 16:27:05 +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
cefsharp-ms f74b245e9b added examples for async bindings 2015-07-31 17:17:48 +02:00
David Serfozo abd1f9a89e added missing method in ICookieManager and removed now unnecessary methods from Cef.h 2015-07-29 22:55:35 +02:00
amaitland 1d197795ab Using debug.log turns out to be an infinite loop, so change to using CefSharp.Core.xml as an example 2015-07-29 20:59:34 +10:00
amaitland abb06171b6 Add basic example of reading the Debug.log file from disk and add option to use ResourceHandler in a SchemeHandlerFactory
(Means that ISchemeHandler had to be removed - which is an unfortunate breaking change, better to be done now though)
2015-07-29 20:55:28 +10:00
amaitland 39bc589991 Add w3school url to WPF example 2015-07-28 17:26:34 +10:00
Alex Maitland a672d239eb Merge pull request #1137 from amaitland/features/add2357
Add Features related to 2357 Update
2015-07-28 11:17:35 +10:00
amaitland 1ca9d90bd8 By default enable system wide PPAPI support
Can be overridden by modifying CefCommandLineArgs and setting the value of `enable-system-flash` to `0`
2015-07-23 19:30:42 +10:00
amaitland 0edb5534bf Add example of how to explicitly load a Pepper Flash version 2015-07-23 19:21:33 +10:00
amaitland 7a940a9617 Add Open Plugins tab in the WPF example
Add system-enable-flash example to enable PPAPI otherwise it's disabled
2015-07-23 19:18:07 +10:00
amaitland 8afb090f06 Add Timeout to Cef.GetPlugins
Made TaskExtensions public otherwise the c++ code cannot access it
Add try catch to CefExample to handle task being cancelled
2015-07-23 09:57:24 +10:00
amaitland 6291240a4f Enable NPAPI in the example projects 2015-07-23 08:31:32 +10:00
amaitland a88ca171c9 Add IBrowser param to OnFaviconUrlChange
Add IBrowser param to OnResourceRedirect
Update comment so hopefully it's clearer that the browserControl param is the ChromiumWebBrowser instance
2015-07-22 14:53:34 +10:00
amaitland 1aba3b59e6 Add Request param to OnResourceRedirect 2015-07-22 14:47:28 +10:00