/* 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 "TabParent.h" // TabParent.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/HTMLIFrameElement.h" #include "mozilla/dom/ToJSValue.h" #include "nsIInterfaceRequestorUtils.h" #include "nsVariant.h" #include "mozilla/dom/BrowserElementDictionariesBinding.h" #include "mozilla/dom/CustomEvent.h" using namespace mozilla; using namespace mozilla::dom; namespace { using mozilla::BrowserElementParent; /** * Create an