Closed
Bug 107521
Opened 24 years ago
Closed 24 years ago
Mac FileWidget implementation w/NavServices needs to support filters
Categories
(Core :: XUL, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: bugs, Assigned: sdagley)
References
Details
(Keywords: platform-parity)
Attachments
(1 file, 2 obsolete files)
|
13.75 KB,
patch
|
ccarlen
:
review+
scc
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
The UI for "Save With Images, Objects etc" requires this UI:
File name: [ goats.html ]
Save as type: [ Web Page, complete (*.htm;*.html :^]
|Web Page, HTML only (*.htm;;*.html|
|Text only (*.txt) |
|All Files (*.*) |
+----------------------------------+
The selection of the a specific filter causes different 'save modes' to be
used (saving with images, just the html file, or perform a plaintext
conversion).
I'm told that currently our use of NavServices doesn't even use a filter list
box (so I assume calls to appendFilter through nsIFilePicker are ignored). We
need support for this, and we also need implementation of a method which
gets/sets the index of the selected filter (0-based).
This is currently blocking implementation of this feature on Mac, we can only
get around it by disabling the feature on Mac ;)
Comment 2•24 years ago
|
||
If you need to fix this, please also consider bug 95478.
The new CFString based method in navigation services seems have support for
filer.
I quickly scan the
http://lxr.mozilla.org/seamonkey/source/widget/src/mac/nsFilePicker.cpp
It seems it have some filter code there. But maybe the filter implementation is
not completed.
| Reporter | ||
Comment 3•24 years ago
|
||
Can we get a target milestone in this?
I'm going to proceed with landing the Save with Objects feature but will
disable it on the Mac.
Updated•24 years ago
|
Updated•24 years ago
|
Keywords: mozilla0.9.8
| Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.8
Comment 5•24 years ago
|
||
steve, what's the status on this?
| Assignee | ||
Comment 6•24 years ago
|
||
it's on my 0.9.8 list
| Assignee | ||
Comment 7•24 years ago
|
||
punting to 0.9.9 as crasher bug #99561 has become a priority
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Comment 8•24 years ago
|
||
Hmm... I think bug 123178 that I posted yesterday is either a duplicate or
related. (Probably fixing this bug would fix that one as well, although the new
bug is really a symptom of this one.) Perhaps the same is true of bug 123174.
| Assignee | ||
Comment 9•24 years ago
|
||
*** Bug 123178 has been marked as a duplicate of this bug. ***
Comment 11•24 years ago
|
||
How likely is this to hit for 0.9.9? I've got some web pages that remain
bookmarked or in e-mail messages because I can't figure out how to save them the
way I want them. (Sometimes they save with images when I don't want them to;
others, they save without images when I want them to. The pages that don't end
in .html are the worst.)
| Assignee | ||
Comment 12•24 years ago
|
||
-> Moz1.0 (sorry tommy)
Target Milestone: mozilla0.9.9 → mozilla1.0
Comment 13•24 years ago
|
||
*sigh* ;-) That's all right. Just didn't want to be getting my hopes up or
anything. Maybe in a couple of years I might know how to fix it myself, but
right now my programming skills only go up to a point. Thank goodness the
University of Alabama CS department focuses on C++.
Comment 14•24 years ago
|
||
Removing mozilla0.9.8 keyword as that milestone is passed, and also removing
resolved/fixed bugs from blocks list as open bugs don't block fixed bugs.
Keywords: mozilla0.9.8
| Assignee | ||
Comment 15•24 years ago
|
||
Greg, please never touch dependencies in my bugs. I may want to refer to them
to verify something.
| Assignee | ||
Comment 16•24 years ago
|
||
| Assignee | ||
Comment 17•24 years ago
|
||
Fixed some tab/whitespace probs in the previous patch
Attachment #74015 -
Attachment is obsolete: true
Comment 18•24 years ago
|
||
Comment on attachment 74018 [details] [diff] [review]
Patch to implement support for Format popup menu in PutFile dialogs
r=ccarlen
Attachment #74018 -
Flags: review+
Comment 19•24 years ago
|
||
+void nsFilePicker :: HandleShowPopupMenuSelect(NavCBRecPtr callBackParms)
+{
+ if (callBackParms)
+ {
this entire section of code has tabs.
+ nsFilePicker* self = NS_REINTERPRET_CAST(nsFilePicker*, callbackUD);
+ switch (msg)
+ {
+ case kNavCBEvent:
ditto
+ case updateEvt:
+ WindowPtr window = reinterpret_cast<WindowPtr>
(cbRec->eventData.eventDataParms.event->message);
+ nsCOMPtr<nsIEventSink> sink;
+ nsToolkit::GetWindowEventSink (window,
getter_AddRefs(sink));
+ if (sink)
this will break mach-o (jump past initializer). you need to enclose the case w/in
a block to scope the compPtr.
Question: how does this behave on 8.6 with TARGET_CARBON? You mention you're
using NavServices3. Will it just crash?.
| Assignee | ||
Comment 20•24 years ago
|
||
Tabs are fixed
{} added for case kNavCBEvent: to scope the compPtr
CarbonLib 1.1 and later is listed as requirment for Nav Services 3.0
| Assignee | ||
Comment 21•24 years ago
|
||
Ok, I think the last of the damn tabs have been removed. Here's the final
version of the patch incorporating everybody's feedback. And I added my name
as a contributor lest folks think Pav is a Mac engineer :-)
Attachment #74018 -
Attachment is obsolete: true
Comment 22•24 years ago
|
||
Comment on attachment 74197 [details] [diff] [review]
Patch incorporating comments from ccarlen, pink and scc. Now tab free
sr=scc
Attachment #74197 -
Flags: superreview+
Updated•24 years ago
|
Attachment #74197 -
Flags: review+
Comment 23•24 years ago
|
||
Comment on attachment 74197 [details] [diff] [review]
Patch incorporating comments from ccarlen, pink and scc. Now tab free
r=ccarlen
Comment 24•24 years ago
|
||
Comment on attachment 74197 [details] [diff] [review]
Patch incorporating comments from ccarlen, pink and scc. Now tab free
a=asa (on behalf of drivers) for checkin to the 1.0 trunk
Attachment #74197 -
Flags: approval+
| Assignee | ||
Comment 25•24 years ago
|
||
Fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 26•24 years ago
|
||
It works for me on build 2002031509 on Mac OS 9.2.2 -- woo hoo!
Thanks, Steve and all! :-)
Comment 27•24 years ago
|
||
vrfy fixed using 2002.03.20.08 comm bits on mac 10.1.3 and 9.1 (under classic emul).
side note: the format option is not remembered, so filed bug 132467.
Status: RESOLVED → VERIFIED
Comment 28•24 years ago
|
||
*** Bug 123174 has been marked as a duplicate of this bug. ***
Comment 29•23 years ago
|
||
*** Bug 9621 has been marked as a duplicate of this bug. ***
Comment 30•23 years ago
|
||
*** Bug 9620 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•