Closed Bug 94458 Opened 25 years ago Closed 25 years ago

s/addEventListener("create"/addEventListener("popupshowing"/g

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jrgmorrison, Assigned: jag+mozilla)

References

Details

Attachments

(4 files)

As bug 94133 pointed out, some of the dynamically added event listeners for "create" didn't get updated. Here's what I could find in LXR with a search for 'addEventListener': Mozilla tree: http://lxr.mozilla.org/seamonkey/source/extensions/cookie/resources/content/coo kieContextOverlay.xul#102 http://lxr.mozilla.org/seamonkey/source/accessible/src/nsHTMLSelectAccessible.c pp#391 http://lxr.mozilla.org/seamonkey/source/accessible/src/nsHTMLComboboxAccessible .cpp#270 http://lxr.mozilla.org/seamonkey/source/extensions/inspector/resources/content/ browserOverlay.xul#22 http://lxr.mozilla.org/seamonkey/source/extensions/inspector/resources/content/﷒0﷓ I don't see any in the commercial tree, and I don't see any instances of "destroy" that is/was added this way.
Taking bug.
Assignee: hyatt → jaggernaut
I hope the rest of the CPP code is doing the right thing with defines, etc.
/extensions/cookie/resources/content/cookieContextOverlay.xul, line 102 -- contextPopup.addEventListener("create", cookieContextMenu.initImageBlocking, false); /extensions/inspector/resources/content/search/inSearchService.js, line 241 -- menu.addEventListener("create", inSearchService_onCreatePopup, true); /extensions/inspector/resources/content/search/inSearchService.js, line 252 -- menu.removeEventListener("create", inSearchService_onCreatePopup, true); /extensions/inspector/resources/content/browserOverlay.xul, line 22 -- popup.addEventListener("create", inspectorContextCreate, false); /content/xbl/builtin/selectBindings.xml, line 168 -- <handler event="create"> /content/xbl/builtin/selectBindings.xml, line 299 -- <handler event="create"> /xpfe/browser/resources/content/navWidgetBindings.xml, line 97 -- <handler event="create"> /xpfe/communicator/resources/content/viewZoomOverlay.js, line 232 -- parentMenu.addEventListener("create", updateViewMenu, false); /xpfe/global/resources/content/bindings/menulist.xml, line 28 -- <handler event="create"> /xpfe/global/resources/content/bindings/menulist.xml, line 329 -- <handler event="create"> /accessible/src/nsHTMLComboboxAccessible.cpp, line 58 -- eventReceiver->RemoveEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE); /accessible/src/nsHTMLComboboxAccessible.cpp, line 197 -- * listener to "create" events on our DOM node. Set our /accessible/src/nsHTMLComboboxAccessible.cpp, line 207 -- if (eventReceiver && NS_SUCCEEDED(eventReceiver->AddEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE))) /accessible/src/nsHTMLSelectAccessible.cpp, line 349 -- eventReceiver->RemoveEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE); /accessible/src/nsHTMLSelectAccessible.cpp, line 391 -- nsresult rv = eventReceiver->AddEventListener(NS_LITERAL_STRING("create"), this, PR_TRUE); /xpfe/global/resources/content/bindings/popup.xml, line 495 -- <handler event="destroy"> All instances I found. Gonna fix them now.
*** Bug 94486 has been marked as a duplicate of this bug. ***
sr=hyatt
Blocks: 94133
r=bryner
No longer blocks: 94133
Checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Blocks: 94133
Tsk, tsk. I was just adding this comment ... You're missing the changes to xpfe/browser/resources/content/urlbarBindings.xml lines 273 and 278. Would it be worth adding an assertion at some strategic location, to make sure there are no lurking missed changes? By the way, has this change been reasonably publicized to other code bases that might use this, e.g. ActiveState and OEOne.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Hmm... You mean him using a capital H in popupHiding?
hewitt: shouldn't those be lowercase?
jag just pointed out that when I assumed, I made an ass-u-me. Hewitt had changed the argument in the time since 1am last night, although as jag (such a smart ass^H^H^Hguy) pointed out, isn't that supposed to be lowercase.
Just sticking it in here, too lazy to create a new bug, and since this one was reopened anyway ;-) sr=hyatt btw.
Checked in, marking fixed once more.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: