Closed Bug 177242 Opened 23 years ago Closed 23 years ago

Mozilla and Phoenix crash in Print Preview if typeaheadfind is enabled and I start typing a search string

Categories

(SeaMonkey :: Find In Page, defect, P1)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.2final

People

(Reporter: jhatax, Assigned: aaronlev)

References

Details

(Keywords: crash)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021021 Phoenix/0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021021 Phoenix/0.3 Print Preview crashes the browser (DrWatson starts generating an error message) if typeaheadfind has been enabled and I start typing. Reproducible: Always Steps to Reproduce: 1. Ensure that typeaheadfind is enabled (it is by default) 2. Open url - www.nytimes.com <could be any other> 3. Print Preview 4. Type some characters Actual Results: The browser crashed Expected Results: Anything but crash. It should ignore typeaheadfind during print preview as a first solution to the problem
Keywords: crash
It does not crash for me (Solaris 2.6), but disabling typeaheadfind during print preview sounds reasonable for me.
Manoj, please enable Talkbacka nd include the talkback id in this bug report.
Typeaheadfind has code like: 2141 doc->GetShellAt(0, getter_AddRefs(presShell)); which _already_ will not work in print preview, where the shell at 0 does not in fact exist, iirc. So yes, typeaheadfind should be disabled in print preview.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Right, typeaheadfind needs to detect print preview and disable itself then.
Assignee: rods → aaronl
Priority: -- → P1
Target Milestone: --- → mozilla1.2final
Blocks: isearch
Status: NEW → ASSIGNED
You can QI for nsIPrintPreviewContext from the prescontext
Blocks: 1.2
Comment on attachment 104530 [details] [diff] [review] Don't activate typeaheadfind when print preview is open r=kyle
Attachment #104530 - Flags: review+
Comment on attachment 104530 [details] [diff] [review] Don't activate typeaheadfind when print preview is open comments please! Explain why you're bailing early. sr=alecf
Attachment #104530 - Flags: superreview+
Comment on attachment 104530 [details] [diff] [review] Don't activate typeaheadfind when print preview is open a=roc+moz for trunk
Attachment #104530 - Flags: approval+
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Component: Print Preview → Keyboard: Find as you Type
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: