Closed Bug 36789 Opened 25 years ago Closed 24 years ago

File->Save should use nsIFilePicker instead of nsFileSpecWithUI

Categories

(SeaMonkey :: UI Design, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: pavlov, Assigned: law)

References

Details

(Whiteboard: [nsbeta2+])

Attachments

(1 file)

File->Save should use nsIFilePicker instead of nsFileSpecWithUI. We need to get rid of nsFileSpecWithUI ASAP.
Keywords: nsbeta2
Target Milestone: --- → M17
PDT needs to know the noticable impact to user.
Whiteboard: [NEED INFO]
having multiple file pickers could confuse the user. Behavior between the two is slightly different on mac and windows, and very different on linux. The old one has numerous bugs which won't be fixed and the new one contains some features that the old one does not.
Whiteboard: [NEED INFO]
Putting on [nsbeta2+] radar for beta2 fix.
Whiteboard: [nsbeta2+]
I thought I remembered reviewing a patch that did this but apparently I imagined it or it never got checked in. I've coded this up and am awaiting review.
Status: NEW → ASSIGNED
Move to M18 target milestone.
Target Milestone: M17 → M18
Bill, I am getting an error when I compile your patch on Linux, c++ -o nsStreamTransfer.o -c -DOSTYPE=\"Linux2.2\" -DOJI -I../../../../dist/include -I../../../../include -I/usr/X11R6/include -fPIC -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -Wshadow -pedantic -Wno-long-long -pthread -DDEBUG -DDEBUG_slamm -DTRACING -g -DMOZILLA_CLIENT -include ../../../../config-defs.h -Wp,-MD,.deps/nsStreamTransfer.pp nsStreamTransfer.cpp nsStreamTransfer.cpp: In method `nsresult nsStreamTransfer::SelectFileAndTransferLocation(class nsIChannel *, class nsIDOMWindow *)': nsStreamTransfer.cpp:98: conversion from `nsXPIDLCString' to non-scalar type `nsCAutoString' requested g
Blocks: 32014
I have a patch that fixes this bug and 32014 as well.
Attached patch Fix (deleted) — Splinter Review
The patch I just attached, in addition to fixing this bug, adds a prefs API for Get/SetFilePref (which will replace the old one once everyone is converted). It also fixes a filepicker bug I found with setting the initial directory.
Brian, have you tested that on Mac by any chance? nsIFilePicker isn't working there in certain cases (or so I've found).
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
vrfy.
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: