mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
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) Conflicts: CefSharp.Core/Internals/JavascriptCallbackProxy.cpp CefSharp.Core/Internals/JavascriptCallbackProxy.h
This commit is contained in:
@@ -20,6 +20,7 @@ namespace CefSharp
|
||||
auto result = gcnew JavascriptCallback();
|
||||
result->Id = newId;
|
||||
result->BrowserId = _browserId;
|
||||
result->FrameId = context->GetFrame()->GetIdentifier();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user