From 56d9003017a94e7619f98e76b04929115514d08c Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 11 Jan 2022 15:34:17 +0000 Subject: Issue #953 - Neuter the user-facing controls for e10s This should prevent people using a massive footgun that would blow off their entire legs. Requires appropriate FE changes. --- layout/forms/nsListControlFrame.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'layout') diff --git a/layout/forms/nsListControlFrame.cpp b/layout/forms/nsListControlFrame.cpp index 12fc4a2dde..50e05776ef 100644 --- a/layout/forms/nsListControlFrame.cpp +++ b/layout/forms/nsListControlFrame.cpp @@ -141,14 +141,6 @@ nsListControlFrame::DestroyFrom(nsIFrame* aDestructRoot) mContent->RemoveSystemEventListener(NS_LITERAL_STRING("mousemove"), mEventListener, false); - if (XRE_IsContentProcess() && - Preferences::GetBool("browser.tabs.remote.desktopbehavior", false)) { - nsContentUtils::AddScriptRunner( - new AsyncEventDispatcher(mContent, - NS_LITERAL_STRING("mozhidedropdown"), true, - true)); - } - nsFormControlFrame::RegUnRegAccessKey(static_cast(this), false); nsHTMLScrollFrame::DestroyFrom(aDestructRoot); } @@ -1775,20 +1767,6 @@ nsListControlFrame::GetIndexFromDOMEvent(nsIDOMEvent* aMouseEvent, static bool FireShowDropDownEvent(nsIContent* aContent, bool aShow, bool aIsSourceTouchEvent) { - if (XRE_IsContentProcess() && - Preferences::GetBool("browser.tabs.remote.desktopbehavior", false)) { - nsString eventName; - if (aShow) { - eventName = aIsSourceTouchEvent ? NS_LITERAL_STRING("mozshowdropdown-sourcetouch") : - NS_LITERAL_STRING("mozshowdropdown"); - } else { - eventName = NS_LITERAL_STRING("mozhidedropdown"); - } - nsContentUtils::DispatchChromeEvent(aContent->OwnerDoc(), aContent, - eventName, true, false); - return true; - } - return false; } -- cgit v1.2.3