Repository: vscode
Issue: Error in console when mouse move out of the browser
Labels: bug,editor-core

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.94.2
- OS Version: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to Reproduce:
1. Write text
2. Select this text with mouse but mouse click is still pressed
3. Move cursor out of the browser window
4. Error in console is displayed

https://github.com/user-attachments/assets/709a28ea-71ef-4161-a320-83af36db00e2


``` 
ERR s is null: z@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:9098
doHitTest@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:10183
oCi/this.hitTestResult<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:131:18333
get value@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:30:52549
get target@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:131:18081
g@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:1841
createMouseTarget@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:1602
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49272
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
FrameRequestCallback*dr@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15172
s@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49639
s/this.f<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:132:49665
execute@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:14784
n@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15027
dr/<@https://main.vscode-cdn.net/insider/6cf71eaab2600e2e1db3642aea3ad91aa6be3f7f/out/vs/workbench/workbench.web.main.internal.js:32:15199
```