diff --git a/content/base/src/nsSelection.cpp b/content/base/src/nsSelection.cpp index 451a83c7190..3ba42a56132 100644 --- a/content/base/src/nsSelection.cpp +++ b/content/base/src/nsSelection.cpp @@ -781,6 +781,7 @@ nsSelection::nsSelection() if (mDomSelections[index]) autoCopyService->Listen(mDomSelections[index]); } + mDisplaySelection = nsISelectionController::SELECTION_ON; } diff --git a/layout/base/src/nsSelection.cpp b/layout/base/src/nsSelection.cpp index 451a83c7190..3ba42a56132 100644 --- a/layout/base/src/nsSelection.cpp +++ b/layout/base/src/nsSelection.cpp @@ -781,6 +781,7 @@ nsSelection::nsSelection() if (mDomSelections[index]) autoCopyService->Listen(mDomSelections[index]); } + mDisplaySelection = nsISelectionController::SELECTION_ON; } diff --git a/layout/generic/nsSelection.cpp b/layout/generic/nsSelection.cpp index 451a83c7190..3ba42a56132 100644 --- a/layout/generic/nsSelection.cpp +++ b/layout/generic/nsSelection.cpp @@ -781,6 +781,7 @@ nsSelection::nsSelection() if (mDomSelections[index]) autoCopyService->Listen(mDomSelections[index]); } + mDisplaySelection = nsISelectionController::SELECTION_ON; }