summaryrefslogtreecommitdiff
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
commite538e351a502b24d7caa26be9a4a209a6c491dc5 (patch)
tree520e4009150463dcdf90fc0f03547ee3c3da6521
parentd88995f8745353cff23aa170f17c571d4d40bbbf (diff)
downloaduxp-e538e351a502b24d7caa26be9a4a209a6c491dc5.tar.gz
Revert "[accessibility] Remove selection listeners from shutting down PresShell."
This reverts commit 684000d9a5be65aaea5864ae1869d7cab737e089.
-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