summaryrefslogtreecommitdiffstats
path: root/dom/base/InProcessBrowserChildMessageManager.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/base/InProcessBrowserChildMessageManager.cpp
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz
firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/base/InProcessBrowserChildMessageManager.cpp')
-rw-r--r--dom/base/InProcessBrowserChildMessageManager.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/dom/base/InProcessBrowserChildMessageManager.cpp b/dom/base/InProcessBrowserChildMessageManager.cpp
index 191ec9f7b5..830c57591b 100644
--- a/dom/base/InProcessBrowserChildMessageManager.cpp
+++ b/dom/base/InProcessBrowserChildMessageManager.cpp
@@ -13,7 +13,6 @@
#include "nsFrameLoaderOwner.h"
#include "nsQueryObject.h"
#include "xpcpublic.h"
-#include "nsIMozBrowserFrame.h"
#include "mozilla/EventDispatcher.h"
#include "mozilla/dom/ChromeMessageSender.h"
#include "mozilla/dom/Document.h"
@@ -100,15 +99,6 @@ InProcessBrowserChildMessageManager::InProcessBrowserChildMessageManager(
mOwner(aOwner),
mChromeMessageManager(aChrome) {
mozilla::HoldJSObjects(this);
-
- // If owner corresponds to an <iframe mozbrowser>, we'll have to tweak our
- // GetEventTargetParent implementation.
- nsCOMPtr<nsIMozBrowserFrame> browserFrame = do_QueryInterface(mOwner);
- if (browserFrame) {
- mIsBrowserFrame = browserFrame->GetReallyIsBrowser();
- } else {
- mIsBrowserFrame = false;
- }
}
InProcessBrowserChildMessageManager::~InProcessBrowserChildMessageManager() {
@@ -236,19 +226,7 @@ void InProcessBrowserChildMessageManager::GetEventTargetParent(
return;
}
- if (mIsBrowserFrame &&
- (!mOwner || !nsContentUtils::IsInChromeDocshell(mOwner->OwnerDoc()))) {
- if (mOwner) {
- if (nsPIDOMWindowInner* innerWindow =
- mOwner->OwnerDoc()->GetInnerWindow()) {
- // 'this' is already a "chrome handler", so we consider window's
- // parent target to be part of that same part of the event path.
- aVisitor.SetParentTarget(innerWindow->GetParentTarget(), false);
- }
- }
- } else {
- aVisitor.SetParentTarget(mOwner, false);
- }
+ aVisitor.SetParentTarget(mOwner, false);
}
class nsAsyncScriptLoad : public Runnable {