Closed Bug 171161 Opened 23 years ago Closed 23 years ago

Page back button of mouse produces strange behaviour

Categories

(Core :: Print Preview, defect, P1)

x86
Windows XP
defect

Tracking

()

VERIFIED FIXED
mozilla1.2beta

People

(Reporter: wolfgang.hoessl, Assigned: rods)

Details

(Whiteboard: [adt2])

Attachments

(1 file, 1 obsolete file)

Mozilla Version: 2002091014 Bug description: Clicking on the back button (button #4) of my wheel mouse (MS IntelliMouse Optical) in print preview, the page previous visited is getting loaded in this module. After that the close button doesn't work any more, so you can't quit the print preview. Opening a new tab also doesn't work (print preview bar is shown instead of navigation bar) Reproduceability: 1. go to any page 2. click at least on one link (back button must be enabled) 3. open print preview 4. use back button of your mouse 5. see result 6. try to open new tab 7. see result
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Target Milestone: --- → mozilla1.1beta
Target Milestone: mozilla1.1beta → mozilla1.2beta
Currently, this both a UI and DocShell issue, the UI should never allow the Back/Forward/Reload, or History to change the document while printing or PP is occurring. The UI issue is Bug 171203.
Attached patch patch v1 (obsolete) — Splinter Review
The patch: 1) Moves nsIDocumentViewerPrint.h from content/base/src/ to content/base/public, until now it was used only by nsPrintEngine.cpp 2) Adds a macro for defining all the methods in nsIDocumentViewerPrint.h 3) Has the DocShell now check to see if the DV is Printing or PP when requests are mde to change the "url" of the document (i.e. load a different page) 4) Show error dialog when user attempts to this 5) I also filed a bug on the UI, even though this is also a UI issue, the DocShell should never let this happen.
hey rod, here a some comments on the patch: - NS_ERROR_DOCUMENT_IS_PRINTMODE should really be an XPCOM error code. (In it's current state it is actually considered an XPCOM success code) - I'm a little afraid that ALL navigation is disabled when a DocViewer is in Print or PrintPreview mode... What are the chances that we could get 'STUCK' in print mode? - I'm also not sure what would happen if a frame were printing and the containing document changed! -- rick
nsbeta1+
Keywords: nsbeta1+
Whiteboard: [adt2]
Attached patch patch v2Splinter Review
This patch is a bit different, instead of having the DocShell figure out whether it or one of its children are printing or PP, it gets told whether it is, and it caches that value. This was done so navigation is as fast as possible, meaning it doesn't have to figure it out each time. The patch: 1) Adds a method to the nsIContentViewerContainer to tell it whether we are printing or in PP. 2) Fix up the DV and PrintEngine, the DV SetIsXXXX didn't need to set any values in the PrintEngine, but now instead makes calls and sets the values in DocShells 3) Cleaned up and add a macro to nsIDocumentViewerPrint
Attachment #100888 - Attachment is obsolete: true
Comment on attachment 101267 [details] [diff] [review] patch v2 r=dcone
Attachment #101267 - Flags: review+
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated qa contact to sairuh@netscape.com
QA Contact: sujay → sairuh
i don't have my mouse programmed for this --Wolfgang, is this still a problem for you? rs vrfy --pls reopen if this is a problem with a recent build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: