Closed Bug 1518659 Opened 5 years ago Closed 5 years ago

JavaScript error: chrome://messenger/content/chat/imAccounts.js, line 665: TypeError: accountList._scrollbox is undefined

Categories

(Thunderbird :: Instant Messaging, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 66.0

People

(Reporter: jorgk-bmo, Assigned: jorgk-bmo)

Details

Attachments

(1 file, 1 obsolete file)

We need to change _scrollbox to scrollbox at least in chat.

Summary: Port 1454360 - Use "arrowscrollbox" in the "popup-scrollbars" binding → Port bug 1454360 - Use "arrowscrollbox" in the "popup-scrollbars" binding

With this, you can drag the accounts around in the chat status panel again.

Assignee: nobody → jorgk
Status: NEW → ASSIGNED
Attachment #9035174 - Flags: review?(acelists)

Assuming it passes review, it's ready to go.

Keywords: checkin-needed

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.

Flags: needinfo?(mkmelin+mozilla)

JavaScript error: chrome://messenger/content/chat/imAccounts.js, line 665: TypeError: accountList.scrollbox is undefined

:-(

Keywords: checkin-needed

Well, I don't see what checkForMagicScroll() is doing. Broken or not, the dragging works.

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.

Summary: Port bug 1454360 - Use "arrowscrollbox" in the "popup-scrollbars" binding → JavaScript error: chrome://messenger/content/chat/imAccounts.js, line 665: TypeError: accountList._scrollbox is undefined

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).

Flags: needinfo?(mkmelin+mozilla)
Attachment #9035174 - Attachment description: 1518659-chat-scrollbox.patch → 1518659-chat-scrollbox.patch - patch doesn't help
Attachment #9035174 - Flags: review?(acelists)

(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?

(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 :-/

(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.

I see it now ;-)

Attachment #9035174 - Attachment is obsolete: true
Attachment #9035419 - Flags: review?(acelists)
Comment on attachment 9035419 [details] [diff] [review]
1518659-chat-scrollbox.patch (v2)

Review of attachment 9035419 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks, no error now.
Attachment #9035419 - Flags: review?(acelists) → review+

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

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 66.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: