Closed Bug 409181 Opened 17 years ago Closed 3 years ago

print preview mode does not close on certain conditions

Categories

(Core :: Print Preview, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: rforums, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2

When at least two webpages are open and for the second one, if i put it in print preview mode and then open a saved html file from windows explorer,This opens the file in a new tab in the Firefox window, and reveals the
tab bar under print preview bar.  This shouldn't happen. And after this, if we close the tabs one by one in reverse order of opening, then after closing the second page which is in the print preview(by not clicking on the close button but the "x" button in tabbar) the first webpage will be present but still in print preview mode. now if i try to click on the 'close' button, nothing happens. there is no way of coming out of print preview mode other than restarting firefox 

Reproducible: Always

Steps to Reproduce:
1.open firefox and goto page www.yahoo.com
2.open a new tab and goto page www.google.com
3.goto File>Print preview option for the second tab
4a.open a Windows file explorer window
4b.double-click a HTML file in some folder
5.now close the third tab, then the second tab which is in the print preview
mode(by clicking the "x" button not the close button).
6.Only the first yahoo page is left. close button does not work here
Actual Results:  
When the close button is clicked after the above steps were followed, nothing happens.There is no way to come out of the print preview mode other than restarting firefox.

Expected Results:  
Firefox should come out of print preview mode

This is similar to the bug 407098 except that in 407098, Firefox would crash if the same steps were followed.
Confirming described behavior. Message that appears in the error console:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebBrowserPrint.exitPrintPreview]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://global/content/printUtils.js :: anonymous :: line 243"  data: no]

See also: bug 336588, bug 323828, etc
Status: UNCONFIRMED → NEW
Component: General → Print Preview
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → printing
Version: unspecified → Trunk

This is no longer reproducible on all the latest Firefox versions, tested on MacOS 10.15 and Windows 10 (Release 92.0.1, Beta 93.0, Nightly 94).

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.