Closed Bug 8712 Opened 26 years ago Closed 26 years ago

[BLOCKER] nsCOMPtr being used incorrectly in editor/base/InsertTextTxn.cpp

Categories

(Core :: DOM: Editor, defect, P3)

All
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: tague, Assigned: buster)

Details

InsertTextTxn::Merge is using nsComPtr incorrectly. This causes a crash when I try to mix my new Input Method transactions with InsertTextTxn's. The problem is in line 125, nsCOMPtr<EditAggregateTxn> otherTxn( do_QueryInterface(aTransaction) ); This returns a pointer to an nsITransaction interface, not an EditAggregateTxn pointer. The subsequent call to EditAggregateTxn::GetName crashes for the Input Method transactions because they implement nsITransaction (and return an nsITransaction interface in otherTxn) but they don't implement EditAggregateTxn. Since all of the non-IME text is wrapped up in EditAggregateTxn's anyway, the problem is masked in ASCII typing.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
fixed. nsCOMPtr is no longer used for concrete classes. Tague, please verify because QA won't be able to.
Status: RESOLVED → VERIFIED
it was very fixed in my pull today. thanks. verifying since this is a code verified fix.
You need to log in before you can comment on or make changes to this bug.