Return null from native window.open when allowpopups is unset

This commit is contained in:
Kevin Sawicki 2017-05-23 15:59:17 -07:00
parent a0571e3c72
commit dbd240a7cb
5 changed files with 32 additions and 2 deletions

View file

@ -122,11 +122,13 @@ class AtomBrowserClient : public brightray::BrowserClient,
struct ProcessPreferences {
bool sandbox;
bool native_window_open;
bool disable_popups;
};
void AddProcessPreferences(int process_id, ProcessPreferences prefs);
void RemoveProcessPreferences(int process_id);
bool IsRendererSandboxed(int process_id);
bool RendererUsesNativeWindowOpen(int process_id);
bool RendererDisablesPopups(int process_id);
// pending_render_process => current_render_process.
std::map<int, int> pending_processes_;