Closed Bug 133503 Opened 22 years ago Closed 21 years ago

[REPRO]Ctrl+F4 active during print preview

Categories

(Core :: Print Preview, defect, P3)

x86
Windows 95
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: neil, Assigned: rods)

References

Details

(Keywords: polish)

Attachments

(1 file, 1 obsolete file)

Using Build ID: 2002032503
Steps to reproduce problem:
1. Press Ctrl+T
2. File/Print Preview
3. Press Ctrl+F4

Actual results: print preview goes blank

Expected results: nothing happens (as per Ctrl+W)
What is <ctrl>F4 suppose to do? 

I checked in a fix on 3/23 for this (general fix) and I cannot reproduce on
Win2k and I verified in the debugger that <ctrl>F4 isn't getting thru.
Ah, the problem only occurs if the focus was in a link/control when you preview.
Severity: normal → minor
Don't know. Ctrl-F4 can be used to close the current Multiple Document Interface
(MDI) window. Maybe that's like a tab or something.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q126449

Reporter could you describe all the steps that you follow in order to reproduce
this problem? I didn't understand your last comment.
New steps to reproduce problem:
1. Load up at least two tabs. Load this page in one of them.
2. Click in the Find box at the bottom.
3. File/Print Preview
4. Press Ctrl+F4

Expected result: Nothing happens

Actual result: Print Preview content disappears
I can't reproduce on Win2k
Status: NEW → ASSIGNED
Priority: -- → P3
Summary: Ctrl+F4 active during print preview → [REPRO]Ctrl+F4 active during print preview
Target Milestone: --- → Future
Confirming on Build ID: 2002040403 (0.9.9+) Windows 98. This bug could be
limited to Windows 9x.

In browser mode, Ctrl-F4 closes the current tab. In print preview mode, however,
no tabs are shown. Thus, Ctrl-F4 should have no effect.

Steps to reproduce, slightly changed:

1. Open "new" link at the bottom in a new tab. Return to the tab with this page.
2. Click in the Find box at the bottom.
3. File/Print Preview. No tabs are visible.
4. Press Ctrl+F4.

Expected result: Nothing happens.

Actual result: Tab with Print Preview content is dismissed. Browser returns to
the other tab, the "new" page. 

Normal severity. This bug hurts consistency of the UI.
Severity: minor → normal
Keywords: mozilla1.1
Tab control keybindings Ctrl+PgUp and Ctrl+PgDown are also active in print
preview.  See bug description in bug 149907.
I can reproduce the problem using 2002-6-13 build on WinXP. Ctrl+F4 is active.

nsbeta1-. Not a typical user action while in print preview.
Keywords: nsbeta1nsbeta1-
Attached patch Proposed patch (obsolete) — Splinter Review
This patch hooks into the handleCtrlPageUpDown attribute set by browser.js
Keywords: patch, polish, review, ui
Confirmed  Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1a+) Gecko/20020703 SP6a
Almost the same behaviour as mentioned but...
1. Loaded mozilla.org into first tab
2. Loaded this bug into second tab (no other tabs)
3. Selected second tab, clicked on find textfield
4. File-->Print Preview
5. CTRL+F4

Expected result:  Nothing happens

Actual Result:  PP of second tab gone, but replaced with a PP of first tab
(mozilla.org)
Does this mean that when PP a tab, all tabs are actually launched into PP??
See also bug 149907, can switch tabs using keyboard in print preview.
With Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3a) Gecko/20021120 these steps:
1. Open more than one tab
2. Use Print Preview on one of them
3. Press Ctrl+F4 or Ctrl+W

will close the tab that is being print-previewed and show you the remaining tab
with regular screen display but in the Print Preview GUI. The "Close" button
stops working and there seems to be no way to go back to normal browsing mode.
Will the proposed patch solve this issue?
I tried the proposed patch but receive the error "Error launching browser
window:no XBL binding for browser".  This is with Mozilla 1.4, and the patch was
submitted over a year ago...
Attached patch Fixed patchSplinter Review
The previous patch was incorrect. Had it been correct it would have worked with
Mozilla 1.4; as it was changes in Mozilla 1.1 prevented it from applying.
Attachment #87918 - Attachment is obsolete: true
The new patch works great for me with Mozilla 1.4 on Windows 2000; Ctrl-F4 is
now disabled in Print Preview.  It also fixes bug 149907; after the patch, tabs
are no longer switchable using Ctrl-PgUp/Ctrl-PgDn while print previewing.  Do
you have any magic left for bug 126719 (Ctrl-R or F5 reloads page in PP,
disallowing browsing after PP is closed)?  Thanks!
Attachment #127670 - Flags: superreview?(jaggernaut)
Attachment #127670 - Flags: review?(timeless)
Attachment #127670 - Flags: review?(timeless) → review+
Comment on attachment 127670 [details] [diff] [review]
Fixed patch

Hmm, looks like we broke ctrl page-up/down suppression in print preview mode,
if we weren't inheriting handleCtrlPageUpDown (or did it simply never work?)

sr=jag
Attachment #127670 - Flags: superreview?(jag) → superreview+
Comment on attachment 127670 [details] [diff] [review]
Fixed patch

Requesting approval for 1.5
Attachment #127670 - Flags: approval1.5b?
Comment on attachment 127670 [details] [diff] [review]
Fixed patch

a=asa (on behalf of drivers) for checkin to Mozilla 1.5beta.
Attachment #127670 - Flags: approval1.5b? → approval1.5b+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Blocks: 149907
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: