Enable webview in sandbox renderer Security: Inherit embedder prefs onto webview

This commit is contained in:
Hari Juturu 2018-06-25 15:08:00 -07:00 committed by Electron Bot
parent 8585372e11
commit 32e40cb4c3
4 changed files with 50 additions and 1 deletions

View file

@ -92,6 +92,12 @@ void InitializeBindings(v8::Local<v8::Object> binding,
b.SetMethod("getHeapStatistics", &AtomBindings::GetHeapStatistics);
b.SetMethod("getProcessMemoryInfo", &AtomBindings::GetProcessMemoryInfo);
b.SetMethod("getSystemMemoryInfo", &AtomBindings::GetSystemMemoryInfo);
// Pass in CLI flags needed to setup the renderer
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kGuestInstanceID))
b.Set(options::kGuestInstanceID,
command_line->GetSwitchValueASCII(switches::kGuestInstanceID));
}
class AtomSandboxedRenderFrameObserver : public AtomRenderFrameObserver {