Cocoa file picker doesn't set mSelectedType in all cases

RESOLVED INVALID

Status

()

defect
RESOLVED INVALID
12 years ago
3 months ago

People

(Reporter: WeirdAl, Unassigned)

Tracking

Trunk
PowerPC
macOS
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
Spun off of bug 368285.  Only the "PutLocalFiles" cas sets mSelectedType.
(Reporter)

Comment 1

12 years ago
specifically bug 368285 comment 2.
(Reporter)

Comment 2

12 years ago
also worth noting (but probably not needing its own bug) is http://lxr.mozilla.org/seamonkey/source/widget/src/cocoa/nsFilePicker.mm#577 and #588 : "do we still need this?" is definitely "yes", because the IDL requires it.
(Reporter)

Comment 3

12 years ago
Additional test case, unresolved:  what if the chrome code calling on this does the following:

fp.appendFilter("XULRunner application", "*.ini");
fp.appendFilter("Some other ini file", "*.ini");
var buttonStatus = fp.show();

How should fp.filterIndex be resolved?

Updated

10 years ago
Assignee: joshmoz → nobody
(In reply to comment #0)
> Spun off of bug 368285.  Only the "PutLocalFiles" cas sets mSelectedType.

Actually, the real question is why PutLocalFiles is setting mSelectType?

Closing this since Components.classes is no longer accessible to web content.

Status: NEW → RESOLVED
Last Resolved: 3 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.