amaitland
b18e74be1e
Upgrade to 3.2526.1362 (Chromium 47.0.2526.80)
2015-12-17 11:47:35 +10:00
amaitland
c18f951a97
Move OnContextCreated from IRequestHandler to IRenderProcessMessageHandler
...
Manually resolve some merge conflicts
2015-12-09 11:32:24 +10:00
amaitland
af02212217
Merge branch 'feature/oncontextcreated' of https://github.com/amaitland/CefSharp
2015-12-09 11:26:07 +10:00
amaitland
d33c41ec5d
Remove unused include
...
No need to wrap bool in gcroot
Move command line parsing into c# land - can be reused in a few places.
Reduce code duplication in OnProcessMessageReceived - kOnFocusedNodeChanged handler
Minor changes for code consistency/formatting
2015-12-09 11:23:06 +10:00
Rich McNeary
5784444f43
Merge remote-tracking branch 'refs/remotes/cefsharp/master' into focus-changed-1256
...
# Conflicts:
# CefSharp/IRequestHandler.cs
2015-12-08 09:36:44 -05:00
Rich McNeary
443804084e
Changed to specifically request FocusNodeChanged messages.
2015-12-08 09:04:22 -05:00
amaitland
4684cfcbb9
Upgrade to CEF 3.2526.1359 (Chromium 47.0.2526.73)
2015-12-08 10:27:08 +10:00
Rich McNeary
1fb54241f7
Add the OptionalMessages property to CefSettings.
2015-12-07 16:27:17 -05:00
Rich McNeary
5323818d7b
Fix comment.
2015-12-07 10:54:20 -05:00
Rich McNeary
ae49a5385b
Fix: tabs to spaces, if and for braces, use frame ID.
2015-12-07 09:48:57 -05:00
Rich McNeary
1ecf2d57b0
Initial implementation complete.
...
Add support for when an element node in the DOM gets focus. Also invoked
when focus passes from an element node to an non-element node or
nothing.
2015-12-04 16:01:26 -05:00
Rich McNeary
ce79f71275
When OnFocusedNodeChanged data is passed from render to browser process.
2015-12-03 15:59:27 -05:00
amaitland
8cd491562d
Reorder params for SetInt64, SetJsCallback and SetCefTime - they're not in a logical order
2015-12-02 19:20:54 +10:00
amaitland
6f272833fb
Add IRequestHandler.OnContextCreated handler
...
Send an IPC message when OnContextCreated is called in the render process
Currently only called for the main frame
Should be possible to hook the DOMContentLoaded event
2015-12-02 19:04:19 +10:00
amaitland
07820e9c8b
For v8serialization Instead of creating a null and then not using refactor slightly
2015-11-18 18:45:28 +10:00
amaitland
3f15b53ab7
Resolves #1407
...
More the DeserializeV8Object call to within the context->Enter so a V8Object can be created
Change callback to use a struct as it's return type to demo the solution to this bug
Add missing list->SetDictionary call in V8Serialization.cpp
2015-11-18 09:17:16 +10:00
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