Closed
Bug 267406
Opened 20 years ago
Closed 20 years ago
Trunk crash using Ctrl-S or File/Save Page As to save a web page [@ nsFilePicker::ShowW]
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stephen.moehle, Assigned: Time_lord)
References
Details
(4 keywords)
Crash Data
Attachments
(1 file)
|
3.80 KB,
patch
|
bzbarsky
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041102 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041102 I am reopening this bug since I am experiencing exactly the same problem. Mozilla crashes immediately upon typing Ctrl-S or picking the File/Save Page As menu. Tested with Seamonkey trunk 2004-11-02-13 build on Windows 2000 with both new and existing profiles. Talkback IDs: TB1687088K and TB1687069K. Reproducible: Always Steps to Reproduce:
Comment 1•20 years ago
|
||
nsFilePicker::ShowW [c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/widget/src/windows/nsFilePicker.cpp, line 127] nsFilePicker::Show [c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/widget/src/windows/nsFilePicker.cpp, line 370] XPTC_InvokeByIndex [c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp, line 102] XPCWrappedNative::CallMethod [c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp, line 2036] [...] sounds like bug 252058; esp. bug 252058 comment 5...
Updated•20 years ago
|
Summary: Crash using Ctrl-S or File/Save Page As to save a web page → Crash using Ctrl-S or File/Save Page As to save a web page [@ nsFilePicker::ShowW]
Comment 2•20 years ago
|
||
*** Bug 267516 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•20 years ago
|
||
this is a smoketest blocker
Comment 4•20 years ago
|
||
Phil, why are we setting a null displayDirectory, exactly?
Assignee: general → Time_lord
Updated•20 years ago
|
Keywords: crash,
regression
(In reply to comment #4) > Phil, why are we setting a null displayDirectory, exactly? IIRC, in my patch I don't specifically; it will be null if there is an error retrieving "browser.download.dir". All you have to do it entirely remove this setting and you'll see a problem. In the case of a problem, displayDirectory is set to null. I guess I shouldn't do that (I was just being tidy ;-) ) so I'll see if that's what causes the problem.
(In reply to comment #6) > (In reply to comment #4) > > Phil, why are we setting a null displayDirectory, exactly? > > IIRC, in my patch I don't specifically; it will be null if there is an error > retrieving "browser.download.dir". All you have to do it entirely remove this > setting and you'll see a problem. In the case of a problem, displayDirectory is > set to null. I guess I shouldn't do that (I was just being tidy ;-) ) so I'll > see if that's what causes the problem. Badly worded - I DO specifically if there is an error... leave this with me for 12 hours
(In reply to comment #4) > Phil, why are we setting a null displayDirectory, exactly? Well, I took that out (setting displayDirectory to null if browser.download.dir doesn't exist), but the crash still occurs, and I have no idea why. Seems setting it to null is inconsequential. Will have to dig out some old code.
When browser.download.dir is missing, browser crashes (regression after fix for bug 160454 checked in). Problem occurred after calling prefs.getComplexValue("dir", Components.interfaces.nsILocalFile) When this was called in a separate method and returned to the poseFilePicker method the problem occurred, but there is no need now for the separate method. I've pulled that out, the code is simpler and it works (bonus ;) ).
Attachment #164967 -
Flags: review+
Updated•20 years ago
|
Attachment #164967 -
Flags: review+
Comment 10•20 years ago
|
||
Comment on attachment 164967 [details] [diff] [review] Fix for crash when browser.download.dir setting is missing r=bzbarsky. Neil, would you sr?
Attachment #164967 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #164967 -
Flags: review+
Comment 11•20 years ago
|
||
Comment on attachment 164967 [details] [diff] [review] Fix for crash when browser.download.dir setting is missing Nice simplification :-)
Attachment #164967 -
Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Comment 12•20 years ago
|
||
By the way, I assume you know about the assertions caused by getDefaultExtension()'s method of getting an extension.
Comment 13•20 years ago
|
||
There are assertions? Could you paste in the assert text? I just checked this patch in. Marking fixed. Thank you for fixing this, Phil!
| Assignee | ||
Comment 14•20 years ago
|
||
(In reply to comment #13) > There are assertions? Could you paste in the assert text? > > I just checked this patch in. Marking fixed. Thank you for fixing this, Phil! No problem... it was my code, afterall ;-)
Comment 15•20 years ago
|
||
Actually I got an assertion and a warning, although the assertion turned out to be in exthandler and not related to this code. For your information: WARNING: malformed url: no scheme, file nsStandardURL.cpp, line 741 I don't even know if it's a new warning, so maybe I should shut up now.
Comment 16•20 years ago
|
||
Yeah, that one's known. We have a bug on it somewhere....
Comment 17•20 years ago
|
||
Talkback data suggests that this crash is gone after 11/8 builds, so the fix looks good. Marking verified.
Status: RESOLVED → VERIFIED
Keywords: topcrash
Summary: Crash using Ctrl-S or File/Save Page As to save a web page [@ nsFilePicker::ShowW] → Trunk crash using Ctrl-S or File/Save Page As to save a web page [@ nsFilePicker::ShowW]
Updated•20 years ago
|
Product: Browser → Seamonkey
Updated•13 years ago
|
Crash Signature: [@ nsFilePicker::ShowW]
You need to log in
before you can comment on or make changes to this bug.
Description
•