mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Catch and return Exception for TryCallMethod, TryGetProperty, TrySetProperty methods, passed back to the browsersubprocess though currently not displayed in the UI
This commit is contained in:
@@ -49,7 +49,8 @@ namespace CefSharp
|
||||
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
|
||||
|
||||
Object^ result;
|
||||
auto success = browserProxy->GetProperty(_object->Id, memberName, result);
|
||||
String^ exception;
|
||||
auto success = browserProxy->GetProperty(_object->Id, memberName, result, exception);
|
||||
return result;
|
||||
};
|
||||
|
||||
@@ -57,6 +58,7 @@ namespace CefSharp
|
||||
{
|
||||
auto browserProxy = CefAppWrapper::Instance->CreateBrowserProxy();
|
||||
|
||||
browserProxy->SetProperty(_object->Id, memberName, value);
|
||||
String^ exception;
|
||||
browserProxy->SetProperty(_object->Id, memberName, value, exception);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user