Closed Bug 1777309 Opened 3 years ago Closed 3 years ago

Creating shortcuts by dragging URL to Windows desktop no longer works

Categories

(Core :: Widget: Win32, defect)

Firefox 102
defect

Tracking

()

RESOLVED DUPLICATE of bug 1774683

People

(Reporter: nelson, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

  1. On Windows, Visit the URL https://github.com/mozilla/pdf.js
  2. Click the padlock icon in the URL bar and drag it to desktop

Actual results:

A folder named "GitHub - mozilla" is created on the desktop, with a single empty file in it named "pdf.js"

Expected results:

A shotcut file named something like "GitHub - mozilla-pdf.js- PDF Reader in JavaScript.url" should have been created with shortcut contents like

[InternetShortcut]
URL=https://github.com/mozilla/pdf.js

This bug seems to happen when trying to create shortcuts from any URL with a long pathname in it. Other examples:

https://twitter.com/nelson
https://www.reddit.com/r/firefox/comments/vn52l4/cant_drag_reddit_webpage_to_create_bookmark/

This may be a security problem. It looks kind of like the URL pathname is being used directly to create the shortcut file, not sanitized. I haven't tested just what files I can induce Firefox to create.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Win32' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Win32
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.