Closed Bug 1737696 Opened 4 years ago Closed 4 years ago

IsDownloadSpam() detects files downloaded through "Save link as..." context menu item as spam

Categories

(Firefox :: Downloads Panel, defect, P2)

defect

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: mtigley, Assigned: enndeakin)

References

Details

Attachments

(1 file)

STR

  1. Enable browser.download.enable_spam_prevention
  2. Go to https://developer.mozilla.org/en-US/docs/MDN/Contribute/Getting_started
  3. Open a the filepicker for "About MDN" link by choosing the "Save link as" item from the context menu. Dismiss the filepicker.
  4. Repeat step 3.

Expected
The file picker should open.

Actual
The file picker doesn't open.

Notes
The issue seems goes away when the pref is disabled. This is likely caused by the IsDownloadSpam method falsely detecting the file as "spam".

See Also: → 1734903
See Also: → 1729583
Assignee: nobody → mtigley
Status: NEW → ASSIGNED

The severity field is not set for this bug.
:mak, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mak)

I have come across this issue. It can be fixed by just skipping the download spam check if mForceSave is true. Can I just make a fix that does this or is there more to do here?

Flags: needinfo?(mtigley)

(In reply to Neil Deakin from comment #2)

I have come across this issue. It can be fixed by just skipping the download spam check if mForceSave is true. Can I just make a fix that does this or is there more to do here?

Nice find! And yes, feel free to fix it here (or another bug if you prefer).

Flags: needinfo?(mtigley)
Assignee: mtigley → enndeakin
Severity: -- → S3
Flags: needinfo?(mak)
Priority: -- → P2
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/568985165d99 skip spam check for downloads that were saved; this allows the save link context menu item to work properly, r=mtigley
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
QA Whiteboard: [qa-96b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: