Closed
Bug 94458
Opened 25 years ago
Closed 25 years ago
s/addEventListener("create"/addEventListener("popupshowing"/g
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
People
(Reporter: jrgmorrison, Assigned: jag+mozilla)
References
Details
Attachments
(4 files)
|
1.05 KB,
text/html
|
Details | |
|
1.20 KB,
text/html
|
Details | |
|
9.04 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.19 KB,
patch
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Comment 3•25 years ago
|
||
| Reporter | ||
Comment 4•25 years ago
|
||
I hope the rest of the CPP code is doing the right thing with defines, etc.
| Assignee | ||
Comment 5•25 years ago
|
||
/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.
| Assignee | ||
Comment 6•25 years ago
|
||
Comment 8•25 years ago
|
||
sr=hyatt
| Assignee | ||
Comment 10•25 years ago
|
||
Checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 11•25 years ago
|
||
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 → ---
| Assignee | ||
Comment 12•25 years ago
|
||
Hmm... You mean him using a capital H in popupHiding?
| Assignee | ||
Comment 13•25 years ago
|
||
hewitt: shouldn't those be lowercase?
| Reporter | ||
Comment 14•25 years ago
|
||
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.
| Assignee | ||
Comment 15•25 years ago
|
||
| Assignee | ||
Comment 16•25 years ago
|
||
Just sticking it in here, too lazy to create a new bug, and since this one was
reopened anyway ;-)
sr=hyatt btw.
| Assignee | ||
Comment 17•25 years ago
|
||
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.
Description
•