Closed Bug 227052 Opened 21 years ago Closed 21 years ago

Close in failed Print Preview bar doesn't work

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 226973

People

(Reporter: klassphere, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031128 Firebird/0.7+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031128 Firebird/0.7+

In Windows XP (or NT/2K) with Print Spooler service disabled, Print Preview in
menu results in persistent Print Preview bar which you can't close with its
Close button.

Reproducible: Always

Steps to Reproduce:
1. Open a command prompt (cmd.exe) and type 'net stop "print spooler"' to
disable Print Spooler service (alternatively you can stop it from Services in
Administrative Tools)
2. Load some web page in Firebird
3. Choose menu item File | Print Preview
4. The dialog tells there's an error , dismiss it
5. Print Preview bar with Print.../Page Setup... etc. button is attached to the
web page loaded in step 2
6. Push Close button on it


Actual Results:  
Nothing happens.

Expected Results:  
Close button should dismiss Print Preview bar. More preferably, it shouldn't be
attached in failed preview from the beginning.
Very similar problem to bug 226973.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031217
Firebird/0.7+ WinXP

Print preview bar closes but I'm not sure what you mean in the expected results.

Please can you try with the latest build and new profile?
With Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031216
Firebird/0.7+ "Close" button still can't dismiss Print Preview bar. (Under
Bookmarks Toolbar the bar with buttons to manipulate preview image, including
"Close" button, is attached - that's Print Preview bar) Pushing that "Close"
button makes nothing. I mean in the Expected Results that it's redundant to add
Print Preview bar even when Preview is failed, requiring the user to close it
manually.
KL, can you take a look at your JavaScript Console? Do you get an error message?
Please download a current build and use a fresh profile for testing.

I need this information to figure out if it is a dupe to bug 226973.

-> QA
QA Contact: bugzilla
(In reply to comment #4)
> KL, can you take a look at your JavaScript Console? Do you get an error message?
> Please download a current build and use a fresh profile for testing.
> 
> I need this information to figure out if it is a dupe to bug 226973.
> 
> -> QA

Yes, I got the exactly same JS errors on Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.7a) Gecko/20040129 Firebird/0.7+.

When Print Preview is selected:

Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIWebBrowserPrint.printPreviewNumPages]" 
nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
chrome://global/content/printPreviewBindings.xml :: onxblconstructor :: line
123"  data: no]

When Close button is pressed:

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 202"  data: no]

*** This bug has been marked as a duplicate of 226973 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
verified.
Status: RESOLVED → VERIFIED
OS: Windows XP → All
QA Contact: bugzilla → general
You need to log in before you can comment on or make changes to this bug.