diff options
author | Moonchild <moonchild@palemoon.org> | 2022-01-11 15:34:17 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-01-11 15:34:17 +0000 |
commit | e5752cab067ef7ab71cc0639f93fd34918a346c1 (patch) | |
tree | ca15bca693d51121f33c5199774d8ca9e326f0e0 /layout | |
parent | 9ff8e15c6effab231e3fe4e9d94e6d0f5bbeecd5 (diff) | |
download | aura-central-e5752cab067ef7ab71cc0639f93fd34918a346c1.tar.gz |
Issue %3051 - 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.
Diffstat (limited to 'layout')
-rw-r--r-- | layout/forms/nsListControlFrame.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/layout/forms/nsListControlFrame.cpp b/layout/forms/nsListControlFrame.cpp index 12fc4a2dd..50e05776e 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<nsIFrame*>(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; } |