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
commit1595c2573f40c12ecce926673d0dfc5c48ea8e26 (patch)
tree520e4009150463dcdf90fc0f03547ee3c3da6521 /accessible
parentff4c3e4d8f7f8dc959efb99a8664f2e512768b9a (diff)
downloadaura-central-1595c2573f40c12ecce926673d0dfc5c48ea8e26.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 662ba52b7..30e01cbfc 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