The default bug view has changed. See this FAQ.

Reduce QIs in nsPrintingPromptService

RESOLVED FIXED in mozilla9

Status

()

Core
Embedding: APIs
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Ms2ger, Assigned: Ms2ger)

Tracking

Trunk
mozilla9
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 558053 [details] [diff] [review]
Patch v1

I think you own this...
Attachment #558053 - Flags: review?(benjamin)
Flags: in-testsuite-
Comment on attachment 558053 [details] [diff] [review]
Patch v1

>diff --git a/embedding/components/printingui/src/unixshared/nsPrintingPromptService.cpp b/embedding/components/printingui/src/unixshared/nsPrintingPromptService.cpp


>+    nsCOMPtr<nsIWebProgressListener> myWebProgressListener = this;
>+    myWebProgressListener.forget(webProgressListener);

This is weird. The normal way to do this is NS_ADDREF(*webProgressListener = this);

r=me with that change. I didn't review the OS/2 bits at all, since I just don't care.
Attachment #558053 - Flags: review?(benjamin) → review+
(Assignee)

Comment 2

6 years ago
I'm no fan of NS_ADDREF, but sure.

http://hg.mozilla.org/mozilla-central/rev/8540ca31ca8f
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.