TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/composition/test-attachment-reminder.js | test-attachment-reminder.js::test_disabling_attachment_reminder
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird68+)
Tracking | Status | |
---|---|---|
thunderbird68 | + | --- |
People
(Reporter: jorgk-bmo, Assigned: mkmelin)
References
Details
(Keywords: regression, Whiteboard: [Thunderbird-testfailure: Z all][Thunderbird-disabled-test])
Attachments
(3 files, 2 obsolete files)
TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/composition/test-attachment-reminder.js | test-attachment-reminder.js::test_disabling_attachment_reminder
https://taskcluster-artifacts.net/GaN3EcB9ShmzoUglKixE_w/0/public/logs/live_backing.log
INFO - EXCEPTION: Couldn't find the requested button on a notification
INFO - at: test-notificationbox-helpers.js line 186
INFO - get_notification_button test-notificationbox-helpers.js:186 9
INFO - test_disabling_attachment_reminder test-attachment-reminder.js:623 23
https://hg.mozilla.org/comm-central/pushloghtml?fromchange=2458408cc87e&tochange=dc7943c0ecc9
Maybe this one:
936c2d201405 Andrew Swan — Bug 1538983 Convert button xbl binding to a custom element r=bgrins
Assignee | ||
Comment 1•6 years ago
|
||
make -C obj-x86_64-pc-linux-gnu mozmill-one SOLO_TEST=composition/test-attachment-reminder.js
... reproduces it locally gives me
SUMMARY-UNEXPECTED-FAIL | test-attachment-reminder.js | test-attachment-reminder.js::test_disabling_attachment_reminder
EXCEPTION: Couldn't find the requested button on a notification
at: test-notificationbox-helpers.js line 186
get_notification_button test-notificationbox-helpers.js:186 9
test_disabling_attachment_reminder test-attachment-reminder.js:623 23
Yes may have to adjust something for bug 1538983.
I don't see any duplicated label. Will leave this for Alex.
Comment 2•6 years ago
|
||
Updated•6 years ago
|
I see a duplicated label when showing the attachment reminder manually.
Comment 5•6 years ago
|
||
That bug 1538983 patch is causing some issues elsewhere as well: https://bugzilla.mozilla.org/show_bug.cgi?id=1547322
Comment 6•6 years ago
|
||
Not sure if related, but the buttons and sizing in the confirmation dialog are busted.
Comment 7•6 years ago
|
||
So, the issue with the attachment reminder button happens when setting the button's attribute type to menu-button
.
As soon as that attribute is set, an extra hbox
with the button label gets generated.
Since bug 1538983 caused a bunch of regressions that are getting reported, is it worth trying to patch this on our end, or it's better to wait for the Firefox devs to fix this?
Also, the toolbarbuttons with type="menu"
are visually busted.
Is that related?
Reporter | ||
Comment 8•6 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #7)
Since bug 1538983 caused a bunch of regressions that are getting reported, is it worth trying to patch this on our end, or it's better to wait for the Firefox devs to fix this?
Jolly good question. Sometimes the TB team serves as Mozilla's secondary fire brigade and fixes things in M-C. But maybe we should wait a bit. In the meantime, I'll take the test down ;-)
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #7)
So, the issue with the attachment reminder button happens when setting the
button's attribute type tomenu-button
.
As soon as that attribute is set, an extrahbox
with the button label gets
generated.Since bug 1538983 caused a bunch of regressions that are getting reported,
is it worth trying to patch this on our end, or it's better to wait for the
Firefox devs to fix this?
Let's wait some days to let them iron out the regressions. It's possible bug 1546352 could help for menu-button which is tb specific.
Also, the toolbarbuttons with
type="menu"
are visually busted.
Is that related?
That can be worth reporting. Is is used anywhere in Firefox?
Comment 11•6 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #7)
Also, the toolbarbuttons with
type="menu"
are visually busted.
Is that related?
Like the "Tag" button? Is bug 1546630 applied?
Reporter | ||
Comment 12•6 years ago
|
||
So what's responsible for this? I started a message and typed "CV" which is one of the pre-canned words that trigger the reminder.
Reporter | ||
Comment 13•6 years ago
|
||
(In reply to Alessandro Castellani (:aleca) from comment #6)
Not sure if related, but the buttons and sizing in the confirmation dialog are busted.
Yes, the "Discard" button is missing its label. That's generated here:
https://searchfox.org/comm-central/rev/c1fa40fa8e939b73cebcd10cd5de3351f2e35841/mail/components/compose/content/MsgComposeCommands.js#4129
https://searchfox.org/comm-central/search?q=discardButtonLabel&redirect=false
Comment 14•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #13)
(In reply to Alessandro Castellani (:aleca) from comment #6)
Not sure if related, but the buttons and sizing in the confirmation dialog are busted.
Yes, the "Discard" button is missing its label. That's generated here:
I also see it, filed as bug 1547377.
Comment 15•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #12)
Created attachment 9061100 [details]
Doubled-up notification text.pngSo what's responsible for this? I started a message and typed "CV" which is one of the pre-canned words that trigger the reminder.
Could it be that it's now a mixed CE- and XBL-button?
Comment 16•6 years ago
|
||
Is it?
In case you embed a CE element inside a XBL defined element/binding, you have to call customElements.upgrade() on the internal Custom element.
Reporter | ||
Comment 17•6 years ago
|
||
OK, this just landed on M-C:
013a4420b53c Andrew Swan — Bug 1547322 Don't double-insert inner content when <button> is cloned r=bgrins
776c731d7c71 Brian Grinstead — Bug 1547346 - Upgrade custom elements in dialog anonymous XBL content before accessing them r=aswan
I'll check whether the test passes now and whether the duplicate text has disappeared. The missing button label (bug 1547377) is also fixed.
Reporter | ||
Comment 18•6 years ago
|
||
Well, the test still fails and the label is still doubled up, see screenshot in comment #12. One the positive side I can confirm that he "Discard changes" button label (bug 1547377) is fixed.
Comment 19•6 years ago
|
||
Thanks for looking into this.
I'll test it later and see if the fix implemented for Bug 1547346 could work for us:
for (let button in buttons) {
customElements.upgrade(buttons[button]);
}
Comment 20•6 years ago
•
|
||
I've been testing and trying to figure out what's happening here with not much luck.
Since the MozElements.NotificationBox()
class doesn't handle buttons with type="menu-button"
, and if I'm not wrong that type is only used by TB, the button hbox
that contains the label gets duplicated when that specific type gets applied.
It also happens when you manually add that attribute through the browser inspector. I think something is happening in bug 1538983 that causes the button to regenerate the label box.
I found a super hacky patch that simply deletes the label box. I'm not sure this is an acceptable approach, tho, but it fixes the test and remove the extra text.
I'm thinking we should consider using the toolbarbutton
element and append it to the notification reminder, since this is the only location we're using the type="menu-button"
.
Thoughts?
Updated•6 years ago
|
Assignee | ||
Comment 21•6 years ago
|
||
It's used in a few other places too. I think bug 1546352 will fix it.
Comment 22•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #21)
It's used in a few other places too. I think bug 1546352 will fix it.
Ah, nice. So my hacky patch is useless :D
Comment 23•6 years ago
|
||
Assignee | ||
Comment 24•6 years ago
|
||
The test changes needed once bug 1546352 lands.
Assignee | ||
Comment 25•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Reporter | ||
Comment 26•6 years ago
|
||
Comment 27•6 years ago
|
||
Assignee | ||
Comment 28•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Reporter | ||
Comment 29•6 years ago
|
||
Comment 30•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/62160a65ce2a
adjust test-attachment-reminder.js to changes related to button de-xbl. r=jorgk
Reporter | ||
Updated•6 years ago
|
Assignee | ||
Comment 31•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #29)
Why the these quotes, nothing evaluated here:
Just so I wouldn't have to escape the normal quotes in there.
Description
•