Closed
Bug 67216
Opened 24 years ago
Closed 22 years ago
Three different .xul files for the download progress window
Categories
(Core Graveyard :: File Handling, defect, P2)
Core Graveyard
File Handling
Tracking
(Not tracked)
RESOLVED
FIXED
Future
People
(Reporter: bzbarsky, Assigned: law)
References
()
Details
(Keywords: helpwanted, testcase, Whiteboard: [Hixie-P0])
Attachments
(1 file)
9.09 KB,
patch
|
jag+mozilla
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
We seem to have three different .xul files (each with its own javascript) for
the download progress dialog:
xpfe/components/ucth/resources/helperAppDldProgress.xul
xpfe/browser/src/downloadProgress.xul
xpfe/components/xfer/resources/downloadProgress.xul
Only the first of these seems to affect the download dialog. I can't find any
places where the other two are used, and if there are such places, should we not
be using a single download dialog for everything??
ccing the people who wrote the second and third files to get their input
The third file you list is the "classic" download progress dialog that is still
used when you save a page, save a link, or save an image. The second file is
the older version of that dialog (and should be removed from the source tree).
There should be only one version and I'm working to merge the two that are still
in use.
Assignee: ben → law
This is essential in order to ensure all paths that download have the same
features (and lack of bugs :-). Marking nsbeta1+.
A plan:
1. Add new method to nsIStreamTransfer that returns an nsIStreamListener (i.e.,
an nsStreamXferOp).
2. Change nsExternalHelperAppService so that it uses GetInterface to get the
nsIStreamListener from the nsExternalAppHandler object.
3. Change nsExternalAppHandler so that it stores the object returned from
nsIStreamTransfer::CreateTransferListener.
4. Change nsExternalAppHandler::GetInterface so that it returns the
nsStreamXferOp object when asked for nsIStreamListener.
5. Let the nsStreamXferOp open the dialog (details TBD).
Issues: Synchronizing dialog with nsExternalAppHandler (getting starting time
set, propagating cancel back, etc.).
Comment 5•24 years ago
|
||
simple testcases which currently reveal the old-only-has-the-Cancel-button
download progress dialog:
* select File > Save ... from the main menu
* selecting from the context menu [when available, o'course]: Save Image, Save
Link, Save As, Save Frame
Keywords: testcase
Comment 6•24 years ago
|
||
Bill, if you're redoing the download progress XUL, would you be able to clean up
its UI at the same time, or are you just doing the back end? At the moment the
front end is a dog's breakfast ...
[Resummarizing for meme-killing: progress windows are not dialogs.]
Summary: Three different .xul files for the download progress dialog → Three different .xul files for the download progress window
I'm mostly targeting the back-end (actually, I'd call it more the "middle").
But the front-end will be tweaked, at least. New xul is welcome.
![]() |
Reporter | |
Comment 8•24 years ago
|
||
There's a patch to bug 67965 that may be worth looking at (UI changes to the
dialog).
Bill is too busy for mozilla0.9, resetting target milestone
Target Milestone: mozilla0.9 → ---
Comment 10•24 years ago
|
||
pchen, should this be nsbeta1-'d then?
Comment 11•24 years ago
|
||
*** Bug 71667 has been marked as a duplicate of this bug. ***
![]() |
Reporter | |
Comment 13•24 years ago
|
||
*** Bug 75380 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 14•24 years ago
|
||
*** Bug 72760 has been marked as a duplicate of this bug. ***
Updated•24 years ago
|
OS: Linux → All
Hardware: PC → All
Comment 15•24 years ago
|
||
Suggested design for the download progress window is in my 2001-02-12 comment
in bug 67965. It's not perfect, but I don't think we can get perfect without
having a separate download manager window (so that we don't need the `Close'
and `Close this window when download is finished' evilness).
Keywords: helpwanted
Comment 16•24 years ago
|
||
*** Bug 78747 has been marked as a duplicate of this bug. ***
Comment 17•24 years ago
|
||
law: have you unified the two download windows yet?
If you arrange that, or give me a clue as to how to do it, I'll work on the
front-end XUL to implement mpt's spec.
Gerv
Comment 18•24 years ago
|
||
Doron and I are working on this.
Updated•24 years ago
|
Comment 19•24 years ago
|
||
Is this critical for beta? What bad behavior results from this bug? (And can
we live with it for a beta?)
![]() |
Reporter | |
Comment 20•24 years ago
|
||
The bad behavior is that depending on how the user saves a file (click vs shift
click vs context menu) they get different download progress windows. Two of the
methods use the same XUL file, the third uses a different one. The last XUL
file is not used. The dialogs differ in the functionality they offer and in how
they present information. This is a fairly major UI problem, in my opinion.
There is the secondary problem of this being a barrier to people who want to
improve the dialog in question -- they have to figure out what code to modify...
Comment 21•24 years ago
|
||
nav triage: its too late to be doing this work for netscape beta1. moving to
mozilla1.0.
Target Milestone: mozilla0.9.1 → mozilla1.0
Comment 22•24 years ago
|
||
The last comment in bug 78193 claims that this bug will implement the
pause/resume UI for downloads. Is this true or should a separate bug be filed?
Comment 23•24 years ago
|
||
pause/resume has already been implemented [in the download progress dialog]. :)
Comment 24•24 years ago
|
||
In reference to the last two comments, bug 78193 does implement pause and resume
but there's been some debate about the UI. For one thing, the dialogue now has
about five buttons in it (see
http://bugzilla.mozilla.org/showattachment.cgi?attach_id=32664 for a
screenshot). MPT suggested that this is the current home for fixing up the UI. I
believe Peter was asking if this is correct, but Sairuh seems to think the
pause/resume UI is already complete. I'm confused now, is the UI complete or
not? And if not, is this the right place to fix it?
Comment 25•24 years ago
|
||
For those interested, I just created bug 83261 "UI for Pause/Resume in Download
Progress Window" to track this issue - hope it helps.
Comment 26•24 years ago
|
||
Unsetting milestone for reconsideration. Currently, the Pause/Resume button is
only available for ftp downloads, because a different dialog (one without
Pause/Resume) is apparently used for http. It would be a shame to not fix or
workaround this, given the work that went into implementing Pause and Resume.
Target Milestone: mozilla1.0 → ---
Comment 27•24 years ago
|
||
I am an idiot. Ignore me. Live your life as if I never existed.
Target Milestone: --- → mozilla1.0
Comment 28•24 years ago
|
||
Actually, what I am doing is redoing the UI for the ftp download window. I
guess I'll try to merge the two as well.
Comment 29•24 years ago
|
||
*** Bug 83261 has been marked as a duplicate of this bug. ***
Comment 30•24 years ago
|
||
*** Bug 84119 has been marked as a duplicate of this bug. ***
Comment 31•24 years ago
|
||
merging the 2 needs someone who knows more about that code than me
Comment 32•24 years ago
|
||
Doron, could you attach here the XUL/JS you have done so far, so whoever fixes
this bug can use it?
Blocks: 90134
Comment 34•24 years ago
|
||
*ping*
Comment 35•24 years ago
|
||
Doron, you're the one being pinged here :-)
Gerv
![]() |
Reporter | |
Comment 36•24 years ago
|
||
*** Bug 102355 has been marked as a duplicate of this bug. ***
Comment 37•24 years ago
|
||
*** Bug 102447 has been marked as a duplicate of this bug. ***
Comment 38•24 years ago
|
||
my code is dead due to XUL changes. Not that it matter, first combine the 3
files, then I will fix it :)
Comment 39•24 years ago
|
||
This is a major loss of functionality for anyone who picks "Save Link As" rather
than clicking on it (as I often do when I want to make sure the file is saved and
not displayed in the browser). Ergo, Severity -> Major.
Severity: normal → major
Whiteboard: [Hixie-P0][Hixie-1.0]
Comment 40•24 years ago
|
||
spam: over to File Handling.
Component: XP Apps: GUI Features → File Handling
Comment 41•24 years ago
|
||
Also of note, shift-click brings up the older download dialog. I wanted to file
a different bug for this, but it seems to fall under this one.
Comment 42•23 years ago
|
||
->098/p2, should be handled by same fix as for bug 27609
Priority: P1 → P2
Target Milestone: mozilla1.0 → mozilla0.9.8
Comment 43•23 years ago
|
||
*** Bug 112138 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 44•23 years ago
|
||
Flip-floppping relationship to bug 27609 because I'm working the fix from there.
No longer blocks: 27609
Assignee | ||
Comment 45•23 years ago
|
||
All these download related items are moving out; delayed due to overhaul of
downloading and many regressions in this area.
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Updated•23 years ago
|
Whiteboard: [Hixie-P0][Hixie-1.0] → [Hixie-P0]
Assignee | ||
Comment 46•23 years ago
|
||
Spam: Setting target milestone for all these to Future.
Please note that most, if not all, will be fixed in the course of the work I'm
doing for bug 27609. That fact is noted in the "depends on" field for each of
these bugs (I think; go ahead and remedy that if you like).
I just don't have time to deal with the wrath that comes with having too many
bugs.
Target Milestone: mozilla1.0 → Future
Assignee | ||
Comment 47•23 years ago
|
||
OK, I landed the fix for bug 27609. There are still 3 (or maybe 4
now) "progress dialogs."
BUT ONLY ONE OF THEM IS USED!!!!! That would be nsProgressDialog.xul, but
don't even think about using that file directly; see nsIProgressDialog.idl for
the one true way.
I'll leave this bug to track cleaning up the old stuff.
![]() |
Reporter | |
Comment 48•23 years ago
|
||
alecf just removed the components/ucth and component/xfer dirs completely in bug
156723. So only xpfe/browser/src/downloadProgress.xul still needs removing.
Updated•23 years ago
|
QA Contact: sairuh → petersen
Comment 49•22 years ago
|
||
removes xpfe/browser/src/downloadProgress.*
Updated•22 years ago
|
Attachment #113952 -
Flags: superreview?(bzbarsky)
Attachment #113952 -
Flags: review?(jaggernaut)
![]() |
Reporter | |
Comment 50•22 years ago
|
||
Comment on attachment 113952 [details] [diff] [review]
patch
Great!
Is anyone using downloadProgress.dtd and downloadProgress.properties? (over in
xfer/resources/locale/)
Attachment #113952 -
Flags: superreview?(bzbarsky) → superreview+
Comment 51•22 years ago
|
||
bz: unfortunately, yes, download manager does:
http://lxr.mozilla.org/seamonkey/search?string=downloadProgress.dtd
![]() |
Reporter | |
Comment 52•22 years ago
|
||
If nsProgressDlg.xul is the only thing using that DTD file, it should be moved
out of xpfe/ and into the right dir (things in embedding/ should _not_ depend on
things in xpfe/). Separate bug, though. ;)
Comment 53•22 years ago
|
||
yes, that is a separate bug (namely Bug 158695), and that bug is mentioned in
bug 156723 which you cited earlier ;)
Comment 54•22 years ago
|
||
Comment on attachment 113952 [details] [diff] [review]
patch
r=jag
Attachment #113952 -
Flags: review?(jaggernaut) → review+
Comment 55•22 years ago
|
||
patch checked in. I think that fixes this bug, none of the files listed in
comment 0 exist anymore.
There is another unused progress dialog; that will be addressed in bug 211169.
marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•