Closed
Bug 147730
Opened 22 years ago
Closed 22 years ago
Upload dialog shows painting issue when moving scrollbars
Categories
(Camino Graveyard :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: chrispetersen, Assigned: sfraser_bugs)
References
()
Details
Attachments
(4 files, 1 obsolete file)
Build: 0.2.8 Platform: OS X 10.1.4 Expected Results: No paint issues in dialog after dragging scrollbar What I got: Position of scrollbar is shifted Steps to reproduce: 1) Open url and click on browse button. 2) Drag scrollbar up or down in dialog. 3) Scrollbar shifts. See attacment.
Reporter | ||
Comment 1•22 years ago
|
||
Reporter | ||
Updated•22 years ago
|
Severity: normal → major
Reporter | ||
Comment 2•22 years ago
|
||
There are three form bugs that give the user a less than spectacular experience in Chimera when filling out a bug report: This current bug of attempting to attach a file: http://bugzilla.mozilla.org/show_bug.cgi?id=147730 Input (type="file") field not rendering content: http://bugzilla.mozilla.org/show_bug.cgi?id=147739 Scrollable areas don't scroll: http://bugzilla.mozilla.org/show_bug.cgi?id=144874
Severity: major → critical
Comment 4•22 years ago
|
||
i wonder if this is a case of trying to use a carbon file picker from w/in a cocoa app. over to dagley to help load-balance.
Assignee: pinkerton → sdagley
Comment 6•22 years ago
|
||
*** Bug 155042 has been marked as a duplicate of this bug. ***
Comment 7•22 years ago
|
||
Using 6-29 NB, I see this problem. For grins, I made a (very) quick & dirty re-write of mozilla/widget/src/cocoa/nsFilePicker.cpp to use NSOpenPanel rather than carbon NavServices. I used that build to attach the following bug report. I hope the patch (which contains the cruft) actually makes it here . . . Anyway, the funny dialog painting issues went away. So I think comment #4 is right on the money. So, a dumb question: is there a problem with rewriting cocoa/nsFilePicker to actually use the Cocoa file picker? I guess I'm wondering if Mozilla would have a problem with it, rather than Chimera, assuming things ever got merged back into the main mozilla branch? If not, I (or somebody else) can fix up some of the cruft that's missing and get this in.
Comment 8•22 years ago
|
||
David, the only reasons cocoa/nsFilePicker hadn't been been converetd to Cocoa yet is time and more pressing bugs to fix. Your patch goes a long way to addressing it though other folks are still too busy at the moment. If you could implement the PutLocalFile method (and I'll mention you can't use InitWithFSRef for non-existant files since FSRef's can't represent those) and re-submit the patch I think pinkerton would be willing to review it and land it as better behavior than what we have now.
Comment 9•22 years ago
|
||
ccing conrad and smfr so when the new patch comes in, we can get eyeballs on it. keep up the great work, dave!
Comment 10•22 years ago
|
||
Comment on attachment 89880 [details] [diff] [review] quick & dirty Awesome. So much more concise in Cocoa :-) And, not only will this fix the painting problems, but won't it allow keyboard navigation of the dialog (broken in Carbon)? >+//------------------------------------------------------------------------- >+NS_IMETHODIMP nsFilePicker::GetFileURL(nsIFileURL **aFileURL) >+{ >+ NS_ENSURE_TRUE(mFile, NS_ERROR_FAILURE); >+ I think the preferred way to do this is here: http://lxr.mozilla.org/mozilla/source/netwerk/base/public/nsNetUtil.h#755 >+ nsCOMPtr<nsIURI> uri; >+ NS_NewFileURI(getter_AddRefs(uri), mFile); >+ nsCOMPtr<nsIFileURL> fileURL(do_QueryInterface(uri)); >+ NS_ENSURE_TRUE(fileURL, NS_ERROR_FAILURE); >+ >+ NS_ADDREF(*aFileURL = fileURL); >+ return NS_OK; >+}
Comment 11•22 years ago
|
||
Hey - could somebody point out a couple of links to test out the get folder & put file functions? something besides bugzilla to test out get file would be nice, too.
Comment 12•22 years ago
|
||
I don't believe we expose any UI for Get Folder in Chimera but Put File can be exercised by doing a control-click/right-click in the body of a page and selecting "Save Page As...". Note that the "Save As..." item under the File menu does not use the File Picker to display its dialog.
Comment 13•22 years ago
|
||
Sorry, ignore my comment about GetFileURL. I misread completely :-/
Comment 14•22 years ago
|
||
Hmm. So I made a cocoa-ized PutLocalFile function. I planned on trying it using the control-click/"Save Page As" context menu. It didn't get called - so I don't know if it works. Looks like (based on some older NB's) that "Save Page As" context menu already calls up a cocoa save panel - at least you don't see any painting issues with it. Is there anyplace/way somebody else could mention to try out PutLocalFile? Or might this just be a dead routine?
Comment 15•22 years ago
|
||
This patch implements GetFile, GetFolder, and PutFile. As near as I can tell, Chimera only uses GetFile. So GetFolder & PutFile haven't been tried out at all. If you apply this, take nsFilePicker.cpp out of mozilla/widget/src/cocoa
Comment 16•22 years ago
|
||
David, does this latest patch obsolete your Q&D patch?
Comment 17•22 years ago
|
||
Yes, it obsoletes q&d patch. Just out of curiosity, is there a reason I can't obsolete my own patches?
Comment 18•22 years ago
|
||
You need to ask Asa Dotzler for bug editing privs. You can reach him by e-mail at [asa@mozilla.org].
Comment 19•22 years ago
|
||
Comment on attachment 89880 [details] [diff] [review] quick & dirty Per comment #17.
Attachment #89880 -
Attachment is obsolete: true
Assignee | ||
Comment 20•22 years ago
|
||
Does this patch build? I get: In file included from nsFilePicker.cpp:41: nsFilePicker.h:38: parse error before `@'
Assignee | ||
Comment 21•22 years ago
|
||
Never mind, removing nsFilePicker.cpp fixed it.
Assignee | ||
Comment 22•22 years ago
|
||
Assignee | ||
Comment 24•22 years ago
|
||
Patch checked in, after some slight cleanup by me. Note to QA: this code is *not* used when doing Open or Save in the browser window, but only when doing things that open dialogs from browser content (like file Inputs etc).
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 25•22 years ago
|
||
Reporter | ||
Comment 26•22 years ago
|
||
No scrollbar problems occured when attaching sample file to this report. Marking verified with 2002-07-18-05 NB.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•