Closed Bug 369756 Opened 17 years ago Closed 5 years ago

Cocoa file picker doesn't set mSelectedType in all cases

Categories

(Core :: Widget: Cocoa, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: WeirdAl, Unassigned)

References

Details

Spun off of bug 368285.  Only the "PutLocalFiles" cas sets mSelectedType.
specifically bug 368285 comment 2.
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.
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?
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
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.