File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
CefSharp.BrowserSubprocess.Core
CefSharp.Test/JavascriptBinding Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,10 @@ namespace CefSharp
134
134
// If the number of cached objects matches the number of args
135
135
// (we have a cached copy of all requested objects)
136
136
// then we'll immediately bind the cached objects
137
- if (cachedObjects->Count == objectCount && ignoreCache == false )
137
+ // If objectCount and cachedObject count are both 0 then we'll
138
+ // send the kJavascriptRootObjectRequest message
139
+ // https://github.com/cefsharp/CefSharp/issues/3470
140
+ if (objectCount > 0 && cachedObjects->Count == objectCount && ignoreCache == false )
138
141
{
139
142
if (Object::ReferenceEquals (_browserWrapper, nullptr ))
140
143
{
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public async Task CanCallCefSharpBindObjectAsyncWithoutParams()
173
173
var evt = Assert . Raises < JavascriptBindingEventArgs > (
174
174
x => browser . JavascriptObjectRepository . ResolveObject += x ,
175
175
y => browser . JavascriptObjectRepository . ResolveObject -= y ,
176
- ( ) => { browser . EvaluateScriptAsync ( "CefSharp.BindObjectAsync({ IgnoreCache: true } );" ) . GetAwaiter ( ) . GetResult ( ) ; } ) ;
176
+ ( ) => { browser . EvaluateScriptAsync ( "CefSharp.BindObjectAsync();" ) . GetAwaiter ( ) . GetResult ( ) ; } ) ;
177
177
178
178
Assert . NotNull ( evt ) ;
179
179
You can’t perform that action at this time.
0 commit comments