Closed Bug 231894 Opened 22 years ago Closed 20 years ago

mPrintPreviewObs.QueryInterface should not throw NS_NOINTERFACE for nsISupports

Categories

(Core :: Print Preview, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: Callek)

References

Details

(Keywords: helpwanted, Whiteboard: [reviewsPending])

Attachments

(1 file)

Exception ``2147500034'' thrown from function anonymous(iid=XPComponent:{7}) in <chrome://communicator/content/printPreviewBindings.xml> line 396. Stopped for thrown exception. #0: function anonymous(iid=XPComponent:{7}) in <chrome://communicator/content/printPreviewBindings.xml> line 396 391 QueryInterface : function(iid) - 392 { - 393 if (iid.equals(Components.interfaces.nsIObserver) || iid.equals(Components.interfaces.nsISupportsWeakReference)) - 394 return this; 395 - 396 throw Components.results.NS_NOINTERFACE; 397 } 0001: iid.number $[1] = [string] "{00000000-0000-0000-c000-000000000046}"
Keywords: helpwanted
Whiteboard: [good first bug]
Attached patch FixSplinter Review
Attachment #156665 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #156665 - Flags: review?(neil.parkwaycc.co.uk)
OK, I give up, I'd love to see the patch in action I can't find out where that code gets called from.
Neil, would this be a bad checkin anyway, I do not see why (personally) this should not allow QI with nsISupports. Timeless, what in particular prompted you to file this bug? (Taking Bug so I dont loose this again)
Assignee: core.printing → 116057
Status: NEW → ASSIGNED
Whiteboard: [good first bug] → [reviewsPending]
When asking reporter (Timeless) if I should reso/invalid since we cannot find a spot where this code is used. <timeless> you're welcome to try to get the file deleted <timeless> but the bug is valid from a code inspection perspective until such time as the code no longer exists on HEAD in cvs :) I'll file a follup bug later on about removing this file. In the meantime I still suggest we commit this, since it allows QI to nsISupports from the file, and it makes sense IMHO.
This code has been removed as part of Bug 311028.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Depends on: 311028
Resolution: --- → FIXED
Comment on attachment 156665 [details] [diff] [review] Fix Review no longer needed, bug fixed.
Attachment #156665 - Flags: superreview?(neil)
Attachment #156665 - Flags: review?(neil)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: