From f2bae1efc6fa5ad77fcc138fdcae452b72aa8431 Mon Sep 17 00:00:00 2001 From: Nika Layzell Date: Mon, 6 Apr 2020 14:30:26 +0000 Subject: [PATCH] Bug 1616353 - Part 10.1: Remove special handling of window.open in mozbrowser, r=kmag There are no remaining users of mozbrowser in our tree, so this patch removes the logic which used to exist for handling window.open differently within mozbrowser frames. Differential Revision: https://phabricator.services.mozilla.com/D67057 --HG-- extra : moz-landing-system : lando --- dom/browser-element/BrowserElementParent.cpp | 275 ------------------- dom/browser-element/BrowserElementParent.h | 121 -------- dom/browser-element/moz.build | 8 - dom/ipc/BrowserChild.cpp | 41 +-- dom/ipc/BrowserParent.cpp | 30 -- dom/ipc/BrowserParent.h | 5 - dom/ipc/ContentChild.cpp | 70 ++--- dom/ipc/ContentChild.h | 6 +- dom/ipc/PBrowser.ipdl | 16 -- xpfe/appshell/nsContentTreeOwner.cpp | 39 +-- 10 files changed, 42 insertions(+), 569 deletions(-) delete mode 100644 dom/browser-element/BrowserElementParent.cpp delete mode 100644 dom/browser-element/BrowserElementParent.h diff --git a/dom/browser-element/BrowserElementParent.cpp b/dom/browser-element/BrowserElementParent.cpp deleted file mode 100644 index 5941c957042c..000000000000 --- a/dom/browser-element/BrowserElementParent.cpp +++ /dev/null @@ -1,275 +0,0 @@ -/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* vim: set ts=8 sts=2 et sw=2 tw=80: */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include "BrowserParent.h" - -// BrowserParent.h transitively includes , which does -// #define CreateEvent CreateEventW -// That messes up our call to EventDispatcher::CreateEvent below. - -#ifdef CreateEvent -# undef CreateEvent -#endif - -#include "BrowserElementParent.h" -#include "mozilla/EventDispatcher.h" -#include "mozilla/dom/DocumentInlines.h" -#include "mozilla/dom/HTMLIFrameElement.h" -#include "mozilla/dom/ToJSValue.h" -#include "mozilla/dom/WindowProxyHolder.h" -#include "nsIInterfaceRequestorUtils.h" -#include "nsVariant.h" -#include "mozilla/dom/BrowserElementDictionariesBinding.h" -#include "mozilla/dom/CustomEvent.h" - -using namespace mozilla; -using namespace mozilla::dom; -using namespace mozilla::layers; -using namespace mozilla::layout; - -namespace { - -using mozilla::BrowserElementParent; -/** - * Create an