Bug 1881257 - Reset mSourceTopWindowContext when drag session end; a=diannaS

Original Revision: https://phabricator.services.mozilla.com/D203103

Differential Revision: https://phabricator.services.mozilla.com/D204101
This commit is contained in:
Edgar Chen 2024-03-08 23:09:30 +00:00
parent 6730e7b237
commit 37c58e9da7

View File

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