From 6b33564056bd18c9661f47dfd61797add6d584fb Mon Sep 17 00:00:00 2001 From: gellert Date: Sun, 9 Apr 2017 23:02:02 +0200 Subject: [PATCH] adds ipc send to disable external popups on macos --- atom/browser/osr/osr_web_contents_view.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/atom/browser/osr/osr_web_contents_view.cc b/atom/browser/osr/osr_web_contents_view.cc index 303a73ec5ac0..f5c07c8ed1f6 100644 --- a/atom/browser/osr/osr_web_contents_view.cc +++ b/atom/browser/osr/osr_web_contents_view.cc @@ -4,6 +4,7 @@ #include "atom/browser/osr/osr_web_contents_view.h" +#include "content/common/worker_messages.h" #include "content/public/browser/render_view_host.h" #include "third_party/WebKit/public/platform/WebScreenInfo.h" #include "ui/display/screen.h" @@ -124,6 +125,11 @@ void OffScreenWebContentsView::RenderViewCreated( content::RenderViewHost* host) { if (GetView()) GetView()->InstallTransparency(); + +#if defined(OS_MACOSX) + host->Send(new WorkerProcessMsg_DisableExternalPopupMenus( + host->GetRoutingID())); +#endif } void OffScreenWebContentsView::RenderViewSwappedIn(