Add support for native chromium popups on sandboxed renderers.
authorThiago de Arruda <tpadilha84@gmail.com>
Tue, 16 Aug 2016 00:13:18 +0000 (21:13 -0300)
committerThiago de Arruda <tpadilha84@gmail.com>
Tue, 27 Sep 2016 09:01:46 +0000 (06:01 -0300)
commit06cc9a44fe15aabb891ddaeeb90233b9977f374d
treec56d96ed281345d95e9b8253d3d40473658f354c
parent0b3b29938fc414222a197c62c50e11bb8f241c59
Add support for native chromium popups on sandboxed renderers.

- Allow `api::Window` instances to be created from existing `api::WebContents`.
- Override `WebContentsCreated` and `AddNewContents` to wrap renderer-created
  `content::WebContents` into `api::WebContents`.
- For `content::WebContents` that should be displayed in new windows, pass the
  wrapped `api::WebContents` object to window manager.
atom/browser/api/atom_api_web_contents.cc
atom/browser/api/atom_api_web_contents.h
atom/browser/api/atom_api_window.cc
atom/browser/native_window.cc
lib/browser/api/browser-window.js
lib/browser/guest-window-manager.js