Skip to content

Commit 6fe9282

Browse files
committed
Do not override XMLHttpRequest in background Node context
The trick was used in pre-0.13 to add XMLHttpRequest in Node to support content verification. It's not needed any more. Fix nwjs#6410
1 parent 65cc2f4 commit 6fe9282

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/renderer/nw_extensions_renderer_hooks.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ void ContextCreationHook(blink::WebLocalFrame* frame, ScriptContext* context) {
329329
base::ReplaceChars(root_path, "'", "\\'", &root_path);
330330
v8::Local<v8::Script> script = v8::Script::Compile(v8::String::NewFromUtf8(isolate, (
331331
set_nw_script +
332-
"nw.global.XMLHttpRequest = XMLHttpRequest;" +
333332
// Make node's relative modules work
334333
"if (typeof nw.process != 'undefined' && "
335334
"(!nw.process.mainModule.filename || nw.process.mainModule.filename === 'blank' ||"

0 commit comments

Comments
 (0)