Closed Bug 1642536 Opened 5 years ago Closed 5 years ago

Intermittent comm/mail/test/browser/attachment/browser_attachmentEvents.js | false == true - JS frame :: chrome://mochitests/content/browser/comm/mail/test/browser/attachment/browser_attachmentEvents.js :: test_attachments_pane_toggle :: line 450

Categories

(Thunderbird :: Message Reader UI, defect, P5)

defect

Tracking

(thunderbird_esr78 fixed, thunderbird78+ affected)

RESOLVED FIXED
Thunderbird 79.0
Tracking Status
thunderbird_esr78 --- fixed
thunderbird78 + affected

People

(Reporter: intermittent-bug-filer, Assigned: mkmelin)

Details

(Keywords: intermittent-failure)

Attachments

(3 files, 2 obsolete files)

Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Attachment #9154851 - Flags: review?(geoff)
Attachment #9154851 - Flags: review?(geoff) → review+

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/79a2df41af71
browser_attachmentEvents.js - wait for the keypress to take effct. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 79.0

Looks like it didn't help :(

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

There's a good chance it didn't show up on Try because it's only ever occurred on Mac, and your Try run was Linux only.

Attached patch bug1624849_tasks_test.patch (obsolete) — Splinter Review

Oh, the key is the same on mac now, that's why it's failing.

Attachment #9159219 - Flags: review?(geoff)
Comment on attachment 9159220 [details] [diff] [review] bug1642536_attachmentbox_test_fail.patch Nevermind, sorry for the noise.
Attachment #9159220 - Attachment is obsolete: true
Attachment #9159220 - Flags: review?(geoff)

Khushil, can you check this - easier with a mac... see comment 10. (Not clear why it still failed, but it did.)

Flags: needinfo?(khushil324)

The shortcut is not working on the Mac so I guess it's an issue with the implementation/feature, not the test. I am looking into it.

Flags: needinfo?(khushil324)

Here, in the key "key_toggleAttachmentPane", the modifier is only "alt": https://searchfox.org/comm-central/source/mail/components/compose/content/messengercompose.xhtml#438
And we are pressing "ctrlKey" in the browser_attachmentEvents.js: https://searchfox.org/comm-central/source/mail/test/browser/attachment/browser_attachmentEvents.js#447,457

But with pressing option + m in the Mac also(option key is equivalent to alt key of Window), it's not working. Character is getting added in the focused input part. I guess event.stopPropagation gets fired after the character is inserted in the input area. We need to change this modifier. Changing this modifier to modifiers="accel alt" and pressing command + option + m, it worked. The test is also passing.

Yeah the key changed - can you look at hg blame of why?

Problem is introduced here: Bug 1625263

And the try-run that they did was for Linux only.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/4c9aee377c66
Fix mochitest browser_attachmentEvents.js. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Attachment #9160154 - Flags: review?(mkmelin+mozilla) → review+

Comment on attachment 9160154 [details] [diff] [review]
Bug-1642536_fix-mochitest-browser_attachmentEvents-0.patch

[Approval Request Comment]
This shows up on c-esr78 on every release, lets get it taken care of.
Regression caused by (bug #): 1625263
User impact if declined:
Testing completed (on c-c, etc.): Been on beta since 80 or so
Risk to taking this patch (and alternatives if risky):
The more orange noisy tests on release, the harder it is to identify the actual problems.

Need:
https://hg.mozilla.org/comm-central/rev/79a2df41af71
https://hg.mozilla.org/comm-central/rev/4c9aee377c66

Attachment #9160154 - Flags: approval-comm-esr78?

Comment on attachment 9160154 [details] [diff] [review]
Bug-1642536_fix-mochitest-browser_attachmentEvents-0.patch

[Triage Comment]
Approved for ers78

Attachment #9160154 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: