JavaScript error: chrome://messenger/content/chat/imAccounts.js, line 665: TypeError: accountList._scrollbox is undefined
Categories
(Thunderbird :: Instant Messaging, enhancement)
Tracking
(Not tracked)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
Details
Attachments
(1 file, 1 obsolete file)
1.10 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
We need to change _scrollbox to scrollbox at least in chat.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
With this, you can drag the accounts around in the chat status panel again.
Assignee | ||
Comment 2•5 years ago
|
||
Assuming it passes review, it's ready to go.
This seems to be currently the single user of _scrollbox. But we copied the same field to our forked copy of richlistbox.xml. Ths some widgets use the forked richlistbox version and may start to use its _scrollbox.
So the question is whether to preventively rename it too so that we need not to always wonder which of the bindings each richlistbox element uses.
Assignee | ||
Comment 4•5 years ago
|
||
JavaScript error: chrome://messenger/content/chat/imAccounts.js, line 665: TypeError: accountList.scrollbox is undefined
:-(
Assignee | ||
Comment 5•5 years ago
|
||
Well, I don't see what checkForMagicScroll() is doing. Broken or not, the dragging works.
Assignee | ||
Comment 6•5 years ago
|
||
Well, backing out bug 1454360 and my patch, I get:
JavaScript error: chrome://messenger/content/chat/imAccounts.js, line 665: TypeError: accountList._scrollbox is undefined
So as far as I can see, this has always been broken and no one noticed.
Yes, we mixed up richlistbox (which does not seem to have any *scrollbox) and <scrollbox>, which is what m-c has changed now.
I don't know what that line is supposed to do. But it seems "accountlist" was a richlistbox from the beginning (not migrated from listbox recently).
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
(In reply to Jorg K (GMT+1) from comment #6)
So as far as I can see, this has always been broken and no one noticed.
Not quite. No error in TB 60. Maybe we missed something in bug 1470371?
Comment 9•5 years ago
|
||
(In reply to Jorg K (GMT+1) from comment #5)
Well, I don't see what checkForMagicScroll() is doing. Broken or not, the dragging works.
It's strange indeed that this seems to work despite throwing so many errors. Maybe this behavior got implemented somewhere else and this code is not useful anymore? We can probably just remove checkForMagicScroll entirely, but it would be good to understand what happened though :-/
Comment 10•5 years ago
|
||
(In reply to Jorg K (GMT+1) from comment #8)
Not quite. No error in TB 60. Maybe we missed something in bug 1470371?
No, we forgot this in bug 1516813 as a result of bug 1472557 which removed _scrollbox from richlistbox. It is only a few days old.
Assignee | ||
Comment 11•5 years ago
|
||
I see it now ;-)
Assignee | ||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Comment on attachment 9035419 [details] [diff] [review] 1518659-chat-scrollbox.patch (v2) Review of attachment 9035419 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, no error now.
Comment 14•5 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/2bda8c04fa47
Bug 1516813 follow-up: Port bug 1472557: remove use of _scrollbox in imAccounts.js. r=aceman
Assignee | ||
Updated•5 years ago
|
Description
•