Closed Bug 1236381 Opened 9 years ago Closed 6 years ago

Loading unavailable resources via FTP protocol causes annoying warning dialogs

Categories

(Core Graveyard :: Networking: FTP, defect, P3)

defect

Tracking

(firefox46 wontfix, firefox66 fixed, firefox67 fixed)

RESOLVED FIXED
mozilla67
Tracking Status
firefox46 --- wontfix
firefox66 --- fixed
firefox67 --- fixed

People

(Reporter: xidorn, Assigned: Gijs)

References

Details

(Whiteboard: [necko-backlog])

Attachments

(2 files)

Steps to reproduce:
open a HTML page with a lot of unavailable resources via FTP protocol, e.g. ftp://ftp.iingen.unam.mx/Documentacion/Cluster_TONATIUH/Mathematica.v6/v6/web/documents.wolfram.com/mathematica/Built-inFunctions/GraphicsAndSound/ImportAndExport/AdditionalInformation/Export.html (warning: this would display >50 warning dialogs on Firefox)

Expected result:
No warning dialog would prompt

Actual result:
Over 50 warning dialogs are displayed, and there is no way to stop that


(I'm not sure whether it is a Firefox bug or a Core bug, though)
Actually it isn't necessary to be an HTML page served via FTP. Any page includes resources via FTP could cause this. And this could actually be an infinite dialog attack against Firefox.
Summary: Opening HTML page via FTP protocol with unavailable resources could cause annoying warning dialogs → Loading unavailable resources via FTP protocol causes annoying warning dialogs
Attached file simple testcase
This is a simple test case which would show 10 warning dialogs on Firefox because of unavailability of the requested resource.
Attached file possible attack
This is a possible infinite dialog attack against Firefox. Warning: open this attachment at your own risk.
It doesn't seem to be a Firefox bug, but likely a Necko bug.
Component: General → Networking: FTP
Product: Firefox → Core
The prompting happens here: https://dxr.mozilla.org/mozilla-central/rev/29258f59e5456a1a518ccce6b473b50c1173477e/netwerk/protocol/ftp/nsFtpConnectionThread.cpp#1834-1850

It seems necko directly calls UI code to prompt error, which isn't a good practice.
See Also: → 1122566
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3

Fixed in bug 1523249.

Assignee: nobody → gijskruitbosch+bugs
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Blocks: 1523249
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: