mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
BindingTest - Braces on new lines
Fix CefAppUnmanagedWrapper code formatting Slightly more descriptive error message when frame not found
This commit is contained in:
@@ -212,7 +212,7 @@ namespace CefSharp
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMessage = "Unable to Get Frame matching Id";
|
||||
errorMessage = StringUtils::ToNative("Frame " + frameId + " is no longer available, most likely the Frame has been Disposed or Removed.");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -264,19 +264,19 @@ namespace CefSharp
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMessage = "Unable to Enter Context";
|
||||
}
|
||||
errorMessage = "Unable to Enter Context";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
auto responseArgList = response->GetArgumentList();
|
||||
responseArgList->SetBool(0, success);
|
||||
SetInt64(callbackId, responseArgList, 1);
|
||||
if (!success)
|
||||
{
|
||||
responseArgList->SetString(2, errorMessage);
|
||||
}
|
||||
browser->SendProcessMessage(sourceProcessId, response);
|
||||
auto responseArgList = response->GetArgumentList();
|
||||
responseArgList->SetBool(0, success);
|
||||
SetInt64(callbackId, responseArgList, 1);
|
||||
if (!success)
|
||||
{
|
||||
responseArgList->SetString(2, errorMessage);
|
||||
}
|
||||
browser->SendProcessMessage(sourceProcessId, response);
|
||||
|
||||
handled = true;
|
||||
}
|
||||
|
||||
@@ -116,7 +116,8 @@
|
||||
Disposed Javscript Callback Test (navigates to www.google.com before callback fires)
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
function disposedCallback(s) {
|
||||
function disposedCallback(s)
|
||||
{
|
||||
// This callback should be disposed and should not be called
|
||||
window.alert("This callback should not have been called");
|
||||
|
||||
@@ -124,7 +125,8 @@
|
||||
result.innerText += "Callback: " + s + "" + Date();
|
||||
}
|
||||
|
||||
function testDisposedCallback() {
|
||||
function testDisposedCallback()
|
||||
{
|
||||
bound.testCallback(callback);
|
||||
|
||||
var result = document.getElementById('disposedcbresult');
|
||||
|
||||
Reference in New Issue
Block a user