Closed Bug 665609 Opened 13 years ago Closed 13 years ago

Kill AddEventListenerByIID/RemoveEventListenerByIID from content

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla7

People

(Reporter: sicking, Assigned: sicking)

References

Details

Attachments

(2 files)

      No description provided.
Attachment #540521 - Flags: review?(Olli.Pettay)
Assignee: nobody → jonas
Attachment #540529 - Flags: review?(jst)
Attachment #540529 - Flags: review?(jst) → review+
Attachment #540521 - Flags: review?(Olli.Pettay) → review+
Comment on attachment 540521 [details] [diff] [review]
Remove from nsXULPopupListener

>diff --git a/content/xul/content/src/nsXULPopupListener.cpp b/content/xul/content/src/nsXULPopupListener.cpp
>--- a/content/xul/content/src/nsXULPopupListener.cpp
>+++ b/content/xul/content/src/nsXULPopupListener.cpp
>+nsXULPopupListener::HandleEvent(nsIDOMEvent* aEvent)

>   nsCOMPtr<nsIDOMMouseEvent> mouseEvent;
>-  mouseEvent = do_QueryInterface(aMouseEvent);
>+  mouseEvent = do_QueryInterface(aEvent);

This can be on one line.

>@@ -479,12 +467,11 @@ nsXULPopupListener::LaunchPopup(nsIDOMEv
> nsresult
> NS_NewXULPopupListener(nsIDOMElement* aElement, PRBool aIsContext,
>                        nsIDOMEventListener** aListener)
> {
>     nsXULPopupListener* pl = new nsXULPopupListener(aElement, aIsContext);
>     if (!pl)
>       return NS_ERROR_OUT_OF_MEMORY;
> 
>-    *aListener = static_cast<nsIDOMMouseListener *>(pl);
>-    NS_ADDREF(*aListener);
>+    NS_ADDREF(*aListener = pl);

This can be NS_ADDREF(*aListener = new nsXULPopupListener(aElement, aIsContext));
Checked in the popuplistener patch, including a change to kill NS_NewXULPopupListener completely which got r=ms2ger over irc.

http://hg.mozilla.org/integration/mozilla-inbound/rev/d51b398dc5c7
Status: NEW → ASSIGNED
http://hg.mozilla.org/mozilla-central/rev/d51b398dc5c7

I assume the bug should stay open, otherwise please fix it accordingly.
Nope, it should be fixed now.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
It seems that AddEventListenerByIID/RemoveEventListenerByIID was removed from the content.
Setting resolution to VERIFIED FIXED.
Thanks.
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: