Skip to content

Commit e1d60bf

Browse files
committed
Fix nwjs#5622: use mixed context mode in webview
1 parent 3cffd31 commit e1d60bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/renderer/nw_extensions_renderer_hooks.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ void ContextCreationHook(blink::WebLocalFrame* frame, ScriptContext* context) {
205205

206206
if (extension)
207207
extension->manifest()->GetBoolean(manifest_keys::kNWJSMixedContext, &mixed_context);
208+
// handle navigation in webview #5622
209+
if (nwjs_guest)
210+
mixed_context = true;
208211
v8::Local<v8::Context> node_context;
209212
g_get_node_context_fn(&node_context);
210213
if (node_context.IsEmpty() || mixed_context) {

0 commit comments

Comments
 (0)