Closed Bug 230998 Opened 21 years ago Closed 21 years ago

[FIX]crash if I'm opening file upload after I submit form.

Categories

(Core :: Layout: Form Controls, defect, P1)

x86
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla1.7alpha

People

(Reporter: volod_0x16, Assigned: bzbarsky)

References

Details

(Keywords: crash)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Mozilla crashes if I submit form and before the page is updated I press "Browse..." button to upload file. After the page updated (file upload window is still open), file is selected and open button is press mozilla crashes. Reproducible: Always Steps to Reproduce: 1. need a form with file upload input (<input type="file">) 2. submit form and press "Browse..." button (before the page is updated) 3. after the page is refreshed press "Open" button Actual Results: browser crashes
Summary: crash if I'm opening file upload after I submit form. → crash if I'm opening file upload after I submit form.
*** Bug 230997 has been marked as a duplicate of this bug. ***
Severity: normal → critical
Keywords: crash
wfm current cvs trunk build Reporter: Maybe you can try with the current 1.6 release?
> wfm current cvs trunk build On Linux? 'cause I can sure reproduce on Linux with a current trunk build...
Assignee: general → nobody
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout: Form Controls
Ever confirmed: true
QA Contact: general → core.layout.form-controls
The crash happens because mTextFrame is 0xdddddddd
Assignee: nobody → bz-vacation
Priority: -- → P1
Target Milestone: --- → mozilla1.7alpha
Attached patch PatchSplinter Review
This makes us not crash. The right behavior, imo, is to take the filepicker down when the page transition happens, but I see no way to do this via the filepicker interfaces... We should probably have a general "take this down if the page transitions" flag on windows (eg find dialogs, filepickers, etc).
Comment on attachment 139295 [details] [diff] [review] Patch David, would you review?
Attachment #139295 - Flags: superreview?(dbaron)
Attachment #139295 - Flags: review?(dbaron)
Summary: crash if I'm opening file upload after I submit form. → [FIX]crash if I'm opening file upload after I submit form.
Comment on attachment 139295 [details] [diff] [review] Patch Sure, but move the "Set property" comment back to where it was (below the inserted code).
Attachment #139295 - Flags: superreview?(dbaron)
Attachment #139295 - Flags: superreview+
Attachment #139295 - Flags: review?(dbaron)
Attachment #139295 - Flags: review+
Checked in. volod, thanks for the bug report!
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
ok that was on Windows where i tried it, should have added this; anyway glad this is fixed now :)
*** Bug 235359 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.

Attachment

General

Created:
Updated:
Size: