Open Bug 778106 Opened 12 years ago Updated 2 years ago

nsPrintProgress::CloseProgressDialog uses bool as nsresult

Categories

(Toolkit :: Printing, defect)

defect

Tracking

()

REOPENED

People

(Reporter: ayg, Unassigned)

References

Details

return OnStateChange(nsnull, nsnull, nsIWebProgressListener::STATE_STOP, forceClose);

forceClose is a bool, but the fourth param of OnStateChange is an nsresult.
The Mac and Windows versions also do this.
Summary: Unix nsPrintProgress::CloseProgressDialog uses bool as nsresult → nsPrintProgress::CloseProgressDialog uses bool as nsresult
This bug is filed in a bugzilla component related to pre-Firefox code which no longer exists. I believe it is no longer relevant and I am therefore closing it INCOMPLETE.

If you believe that this bug is still valid and needs to be fixed, please reopen it and move it to the Toolkit:Startup and Profile System product/component.
No longer blocks: 1243899
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
embedding/components/printingui/unixshared/nsPrintProgress.cpp specifically mentions this bug in a comment:

> NS_IMETHODIMP nsPrintProgress::CloseProgressDialog(bool forceClose)
> {
>   m_closeProgress = true;
>   // XXX Invalid cast of bool to nsresult (bug 778106)
>   return OnStateChange(nullptr, nullptr, nsIWebProgressListener::STATE_STOP,
>                        (nsresult)forceClose);
> }

So the problem still exists.

I've the right Bugzilla component for that file; please correct it if it's wrong.
Status: RESOLVED → REOPENED
Component: Profile: BackEnd → Embedding: GRE Core
Product: Core Graveyard → Core
Resolution: INCOMPLETE → ---
Mass change of bugs in the "Embedding: GRE Core" component in preparation for archiving it. I believe that these are no longer relevant; but if they are, they should be reopened and moved into a component relevant to the code in question.
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
This code was removed for OSX in bug 1134891. The problem still exists for Windows and Unix.
Status: RESOLVED → REOPENED
Component: Embedding: GRE Core → Printing
Product: Core Graveyard → Toolkit
Resolution: INCOMPLETE → ---
Depends on: 1134891
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.