microsoft / microsoft/vscode

Dropping a URL into the editor from Firefox requires holding shift

Open
#325,000 1 comment 0 reactions 1 assignee Claimed by @chrmarti View on GitHub
stale triage-needed
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

On Windows, drag-dropping a url from Firefox's address bar into an editor requires shift for it to be pasted.

Steps to reproduce:

- open a new editor (`File` > `New Text File...`)
- drag a url into this editor from Firefox's address bar (without holding shift)

Expected:

- url gets pasted as text (or markdown link, I'm not sure which behaviour is expected)

Actual behaviour:

- on hover with the URL, the editor displays "hold shift to drop into editor" (like when dragging a file)
- dropping without shift does nothing
- dropping with shift pastes the url

This does not happen when dragging from Chrome (it inserts a markdown link without the need for shift). On Linux, it seems fine as well, it just pastes without shift (tested with same Code version, 1.127.0).
Tested with Firefox 152.0.4 and 152.0.5, since it updated while writing this.

VS Code version: Code 1.127.0 (4fe60c8b1cdac1c4c174f2fb180d0d758272d713, 2026-06-30T10:52:33+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:

Extensions: none
A/B Experiments

```
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31538736
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ddidt:31399633
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
7e187181:31503455
ghj88844:31499326
23c7c724:31520045
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
31fi7170_t:31522396
a1ije391_t:31540920
hgf2d445:31529595
41836166:31537719
prpt_ctrl:31518467
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_c_nes:31533503
jf4hg949:31526829
h561g132:31533256
session_8:31532895
ihg5j128:31534457
jh7i3328:31546038
9gg7f176:31542112
nes-nc-lc-2k:31546583

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.