Closed
Bug 256049
Opened 20 years ago
Closed 14 years ago
Error ``id has no properties'' [xs] in file ``chrome://messenger/content/messengercompose/addressingWidgetOverlay.js'', line 1057, character 0.
Categories
(Thunderbird :: Message Compose Window, defect, P5)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3.3a1
People
(Reporter: timeless, Assigned: jik)
References
Details
Attachments
(1 file)
480 bytes,
patch
|
neil
:
review+
|
Details | Diff | Splinter Review |
Error ``id has no properties'' [xs] in file ``chrome://messenger/content/messengercompose/addressingWidgetOverlay.js'', line 1057, character 0. Stopped for error handler. #0: function awDocumentKeyPress(event=Event:{0}) in <chrome://messenger/content/messengercompose/addressingWidgetOverlay.js> line 1057 1055: try { 1056: var id = event.target.getAttribute('id'); 1057: if (id.substr(0, 11) == 'addressCol1') 1058: awMenulistKeyPress(event, event.target); 1059: } catch (e) { }
Updated•20 years ago
|
Product: MailNews → Core
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
Comment 1•17 years ago
|
||
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Updated•16 years ago
|
QA Contact: composition
Updated•16 years ago
|
Product: Core → MailNews Core
Assignee | ||
Comment 2•14 years ago
|
||
This bug is still present in Thunderbird 3.1.1, although now it's at line 1017 instead of line 1057. The problematic expression is at line 1016: 1016: var id = event.target.getAttribute('id'); As far as I can tell, in this context, this returns null: event.target.getAttribute('id') but this returns a string: event.target.id Perhaps fixing this is as simple as changing from "getAttribute('id')" to "id"? I confess to being somewhat confused about the difference between using getAttribute and accessing an object properly, so perhaps I am off-base here. Although I realize that this may not be a high-priority user-visible issue, it is quite annoying when trying to do JavaScript debugging on the compose window with Venkman, because Venkman insists on stopping because of this error every time a key is pressed in the compose window.
Assignee | ||
Comment 3•14 years ago
|
||
Confirmed: changing from event.target.getAttribute('id') to event.target.id eliminates the JavaScript error while preserving the intended behavior (tab works to move from the first column of the addressee box to the second column). Also, the reason I saw this error at a different line number is because I was running out of an installed tree and the jar builder removes copyright notices from the js files before packing them into jars. Trivial fix, how 'bout somebody just commit the thang. ;-)
Comment 4•14 years ago
|
||
Jonathan: all changes to code need a patch and a review. Could you stick one up? I'd suggest ask Neil for review.
Assignee | ||
Comment 5•14 years ago
|
||
Attachment #462036 -
Flags: review+
Assignee | ||
Comment 6•14 years ago
|
||
Perhaps I am confused, but I don't seem to have the ability to set who should to the review. And I'm not active enough at this to know what Neil's email address, which I assume I would need to request a review from him, is.
Comment 7•14 years ago
|
||
Comment on attachment 462036 [details] [diff] [review] patch to use property instead of getAttribute You need to set ?, then you can get reviewer's email addresses from here: http://www.mozilla.org/about/owners.html (see under the mailnews section).
Attachment #462036 -
Flags: review+ → review?(neil)
Updated•14 years ago
|
Attachment #462036 -
Flags: review?(neil) → review+
Assignee | ||
Comment 8•14 years ago
|
||
How do we get the patch checked in now that it has been reviewed?
Comment 10•14 years ago
|
||
Checked in: http://hg.mozilla.org/comm-central/rev/a98ae8d91e45
Assignee: nobody → jik
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.3a1
Updated•14 years ago
|
Component: Composition → Message Compose Window
Product: MailNews Core → Thunderbird
QA Contact: composition → message-compose
Comment 11•14 years ago
|
||
http://hg.mozilla.org/comm-central/rev/db0b3e35e5b3 Mark, Jonathan do you guys want to backport SeaMonkey's approach to this bug? It involves code simplification and code removal. Win Win!
Assignee | ||
Comment 12•14 years ago
|
||
I don't know the code nearly enough to be able to understand the SeaMonkey fix, and unfortunately I don't really have time to pick it up right now. It's somewhat odd-seeming to me that the SeaMonkey folks seem to have a much more active development team than Thunderbird.
Comment 13•14 years ago
|
||
For whoever picks this up. The rather convoluted code I removed was originally put there to work around ancient bugs that don't exist any more. So we can chuck the workarounds out of the window and simplify the code.
You need to log in
before you can comment on or make changes to this bug.
Description
•