Bug 1881257 - Reset mSourceTopWindowContext when drag session end; r=NeilDeakin

Differential Revision: https://phabricator.services.mozilla.com/D203103
This commit is contained in:
Edgar Chen 2024-03-03 12:27:13 +00:00
parent 20691196a3
commit 202c486861

View file

@ -634,6 +634,7 @@ nsBaseDragService::EndDragSession(bool aDoneDrag, uint32_t aKeyModifiers) {
mSourceDocument = nullptr;
mSourceNode = nullptr;
mSourceWindowContext = nullptr;
mSourceTopWindowContext = nullptr;
mTriggeringPrincipal = nullptr;
mCsp = nullptr;
mSelection = nullptr;