summaryrefslogtreecommitdiff
path: root/accessible
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-07-14 17:30:58 +0000
committerMoonchild <moonchild@palemoon.org>2021-07-14 17:30:58 +0000
commitcaf98496b7a98a01bbd681a9186b6a1be9b86287 (patch)
tree520e4009150463dcdf90fc0f03547ee3c3da6521 /accessible
parent684000d9a5be65aaea5864ae1869d7cab737e089 (diff)
downloaduxp-caf98496b7a98a01bbd681a9186b6a1be9b86287.tar.gz
Revert "[accessibility] Remove selection listeners from shutting down PresShell."
This reverts commit 684000d9a5be65aaea5864ae1869d7cab737e089.
Diffstat (limited to 'accessible')
-rw-r--r--accessible/base/SelectionManager.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/accessible/base/SelectionManager.cpp b/accessible/base/SelectionManager.cpp
index 662ba52b70..30e01cbfcd 100644
--- a/accessible/base/SelectionManager.cpp
+++ b/accessible/base/SelectionManager.cpp
@@ -120,24 +120,6 @@ SelectionManager::RemoveDocSelectionListener(nsIPresShell* aPresShell)
// selection.
Selection* spellSel = frameSel->GetSelection(SelectionType::eSpellCheck);
spellSel->RemoveSelectionListener(this);
-
- if (mCurrCtrlNormalSel) {
- if (mCurrCtrlNormalSel->GetPresShell() == aPresShell) {
- // Remove 'this' registered as selection listener for the normal selection
- // if we are removing listeners for its PresShell.
- mCurrCtrlNormalSel->RemoveSelectionListener(this);
- mCurrCtrlNormalSel = nullptr;
- }
- }
-
- if (mCurrCtrlSpellSel) {
- if (mCurrCtrlSpellSel->GetPresShell() == aPresShell) {
- // Remove 'this' registered as selection listener for the spellcheck
- // selection if we are removing listeners for its PresShell.
- mCurrCtrlSpellSel->RemoveSelectionListener(this);
- mCurrCtrlSpellSel = nullptr;
- }
- }
}
void