amaitland
335c884b08
Javascript Callback - Add additional tests
...
Add Basic tests, still need some more work.
Test changes added in #2748
2019-04-26 14:17:58 +10:00
amaitland
c27524f456
IJavascriptCallback.CanExecute - Add checking for valid frame
...
Now checks if the frame associated with the callback still exists and if it's valid
Updated some of the QUnit tests to call CanExecute
2019-04-26 08:31:33 +10:00
Chris
bef5dd37c4
Maintenance - Fixed formatting, file encoding, and copyright year ( #2504 )
...
* Applied formatting
* Fixed file encoding + Updated copyright year
* Updated License
* Fixed more file encoding
* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00
amaitland
910df4877a
Make callback ids unique within the render process to avoid overlay between different contexts - was possible to dispose of a callback on a different context to which it was created as the Ids were the same
...
Add IJavascriptCallback.Id - mostly for debugging purposes
2017-03-16 15:32:38 +10:00
Chris
cd934267c6
Updated copyright year and made sure it used same format everywhere ( #1966 )
2017-03-06 08:44:37 +10:00
amaitland
627f80c8ec
Pass in only the required params into BrowserProcessServiceHost - was passing in the browser adapter which wasn't strictly required.
...
Pass the IBrowser instance into IWebBrowserInternal.OnAfterBrowserCreated
Keep a reference to IBrowser in the ChromiumWebBrowser instances (reduces the number of GetBrowser calls and also makes it clearer internally when the browser variable is set)
2016-01-12 14:01:37 +10:00
amaitland
bae3c28e92
Update copyright to 2016
2016-01-11 14:11:30 +10: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
263ac29a40
Reorder serializer params - now slightly more logical
2015-11-18 18:49:12 +10:00
amaitland
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
2015-10-26 12:04:54 +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
cb989648cb
Keep a WeakReference to IBrowserAdapter instead of IBrowser and lookup the browser by it's Id for callbacks
2015-09-24 21:00:53 +10:00
amaitland
8bba47d383
Add TODO about callbacks being executed in the context of a popup
2015-09-24 20:24:16 +10:00
amaitland
24a423bfc7
Fixed VS2015 build errors - had to prefix array<> with cli namespace as compiler was reporting ambiguous reference (VS2013 was fine with the code)
...
Basic VS2015 build should now be working
2015-09-01 22:09:47 +10:00
amaitland
330e6b38b0
Add IsDisposed property to interface objects
...
Fixes #1223
2015-08-31 13:32:48 +10:00
amaitland
c201454905
Merge branch 'cefipcjscallbacks' of https://github.com/arsher/CefSharp into feature/replacewcf2
2015-07-10 10:12:53 +10:00
David Serfozo
e0d5dcd283
added error handling when browser id has no match in render process
2015-07-09 23:36:31 +02:00
amaitland
d766cc826e
The Message should be sent on the corresponding browser, not just the first browser - handle popups
...
Remove browserId from the message as it shouldn't be required now
2015-07-09 12:01:44 +10:00
amaitland
7053eebae3
Reduce nesting for if statement
2015-07-09 11:06:36 +10:00
David Serfozo
5c9681e62e
renamed javascriptcallbackimpl
2015-07-08 18:41:04 +02:00