C-C TB JavaScript error: .../MsgComposeCommands.js, line 1068: TypeError: can't access property "compFields", gMsgCompose is null - Fix command updating for cmd_toggleReturnReceipt
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr78 fixed, thunderbird78 wontfix)
People
(Reporter: ishikawa, Assigned: khushil324)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(3 files, 7 obsolete files)
12.33 KB,
text/plain
|
Details | |
9.81 KB,
text/plain
|
Details | |
3.07 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
I get the following error 10 times in local mochitest log of FULL
DEBUG version of C-C TB.
JavaScript error: chrome://messenger/content/messengercompose/MsgComposeCommands.js, line 1068: TypeError: can't access property "compFields", gMsgCompose is null
I have not seen the bug until June 6th. The previous job on May 30 did
not have it. So this has crept in the last week or so.
The error can be observed in try-c-c job, too. For example,
benc's linux64 debug job,
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=43227542500df69c784d0a6d3c11cd8b46cfde35
https://firefoxci.taskcluster-artifacts.net/NZxVbf0KToq04gGMNbbpvQ/0/public/logs/live_backing.log
I am attaching the excerpt from the log
created by
egrep "(TEST_START|TEST_END|Leaving test|Entering test|gMsgCompose is null)" /FF-NEW/log1234-mochitest.txt
to show which tests produced the error.
I really cringe at the failure of mochitest framework to fail the test that produces such errors. Note that some of the tests did not report any errors.
Bandaid fix ala Bug 1250605 may be in order here.
TIA
Reporter | ||
Comment 1•5 years ago
|
||
The console.trace() stackdump when the error occurs.
There are two patterns. The first one does not have
chrome://messenger/content/mailWidgets.js 892 focus
line.
The rest has the line and are identical.
Reporter | ||
Comment 2•5 years ago
|
||
I think the number 10 I mention as the frequency of occurrences are actually twice the real ocurrences. There are duplicate error messages reported by mochitest framework. So it turned out there were five real errors.
The attachment in comment 1 has only 4 of the stacktraces.
I failed to add the following stacktrace which are identical to the last three stacktraces in the previous attachment up to the lines marked with "*" at the beginning of the line.
console.trace:
chrome://messenger/content/messengercompose/MsgComposeCommands.js 1069 isEnabled
chrome://messenger/content/messengercompose/MsgComposeCommands.js 1150 isCommandEnabled
chrome://global/content/globalOverlay.js 84 goUpdateCommand
chrome://messenger/content/messengercompose/MsgComposeCommands.js 1576 updateComposeItems
chrome://messenger/content/messengercompose/MsgComposeCommands.js 1537 CommandUpdate_MsgCompose
chrome://messenger/content/messengercompose/messengercompose.xhtml 1 oncommandupdate
chrome://messenger/content/mailWidgets.js 892 focus
chrome://messenger/content/messengercompose/MsgComposeCommands.js 7137 MakeFromFieldEditable
chrome://messenger/content/messengercompose/MsgComposeCommands.js 3539 ComposeStartup
chrome://messenger/content/messengercompose/MsgComposeCommands.js 3771 ComposeLoad
chrome://messenger/content/messengercompose/messengercompose.xhtml 1 onload
resource://testing-common/mozmill/utils.jsm 425 waitFor
resource://testing-common/mozmill/WindowHelpers.jsm 262 WindowWatcher_waitForWindowOpen
resource://testing-common/mozmill/WindowHelpers.jsm 633 wait_for_new_window
resource://testing-common/mozmill/ComposeHelpers.jsm 273 wait_for_compose_window
*resource://testing-common/mozmill/ComposeHelpers.jsm 90 open_compose_with_reply
chrome://mochitests/content/browser/comm/mail/test/browser/composition/browser_replyCatchAll.js 219 test_reply_identity_selection
chrome://mochikit/content/browser-test.js 1064 Tester_execTest/<
chrome://mochikit/content/browser-test.js 1104 Tester_execTest
chrome://mochikit/content/browser-test.js 927 nextTest/<
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js 918 SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<
JavaScript error: chrome://messenger/content/messengercompose/MsgComposeCommands.js, line 1071: TypeError: can't access property "compFields", gMsgCompose is null
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
We can do something like this.
Comment 7•5 years ago
|
||
Comment 8•5 years ago
|
||
Updated•5 years ago
|
Comment 9•5 years ago
|
||
(In reply to Khushil Mistry [:khushil324] from comment #5)
We should not keep the logic of UI update in the isEnabled function.
Well, I do kind of agree. It's just that it best reflects what XUL do/did.
Maybe you could just add an optional parameter to ToggleReturnReceipt.? If the parameter == undefined we do what we do now. Else obey the paramater. That way we don't have to introduce another helper function either.
Assignee | ||
Comment 10•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
OTOH we don't seem to even need the parameter...
Assignee | ||
Comment 14•5 years ago
•
|
||
Comment 15•5 years ago
|
||
(In reply to Khushil Mistry [:khushil324] from comment #14)
This will create problems.
What problems? Anyway, over to you :)
Assignee | ||
Comment 16•5 years ago
|
||
Assignee | ||
Comment 17•5 years ago
|
||
Comment 18•5 years ago
|
||
Assignee | ||
Comment 19•5 years ago
|
||
Updated your patch.
Comment 20•5 years ago
|
||
Updated•5 years ago
|
Comment 21•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ec663969e246
fix command updating for cmd_toggleReturnReceipt. r=mkmelin
Updated•5 years ago
|
Comment 22•5 years ago
|
||
Comment 23•5 years ago
|
||
Comment 24•5 years ago
|
||
Not blocking, I just noticed this one while figuring out the mess I made in bug 1646857 with the uplift.
Updated•5 years ago
|
Comment 25•5 years ago
|
||
bugherder uplift |
Thunderbird 78.1.0:
https://hg.mozilla.org/releases/comm-esr78/rev/f6c3514fed6b
Comment 26•5 years ago
|
||
backout bugherder |
Thunderbird 78.1.0:
https://hg.mozilla.org/releases/comm-esr78/rev/24387e8c4f6c
Comment 27•5 years ago
|
||
bugherder uplift |
Thunderbird 78.1.0:
https://hg.mozilla.org/releases/comm-esr78/rev/c571a4fa74d5
Comment 28•5 years ago
|
||
Backout was due to problems related to bug 1646857 having landed on comm-esr78 before this one.
Description
•