Skip to content

Commit b1db32d

Browse files
committed
Fix nwjs#6655: Support new-win-policy with external sites
Now we have nw.Window objects in external pages, so the testing of remote pages, which is written long ago, is not needed any more.
1 parent 243b5fc commit b1db32d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/renderer/nw_extensions_renderer_hooks.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,6 @@ void willHandleNavigationPolicy(content::RenderView* rv,
515515
local_frame->MainWorldScriptContext();
516516
ScriptContext* script_context =
517517
g_dispatcher->script_context_set().GetByV8Context(v8_context);
518-
//check extension for remote pages, which doesn't have appWindow object
519-
if (!script_context || !script_context->extension())
520-
return;
521518
v8::Context::Scope cscope (v8_context);
522519
v8::Handle<v8::Value> element = v8::Null(isolate);
523520
v8::Handle<v8::Object> policy_obj = v8::Object::New(isolate);

0 commit comments

Comments
 (0)