Closed
Bug 1297761
Opened 8 years ago
Closed 8 years ago
TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/composition/test-charset-edit.js
Categories
(Thunderbird :: General, defect)
Thunderbird
General
Tracking
(thunderbird_esr4551+ fixed)
RESOLVED
FIXED
Thunderbird 51.0
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
References
Details
Attachments
(2 files)
2.48 KB,
patch
|
mkmelin
:
review+
rkent
:
approval-comm-esr45+
|
Details | Diff | Splinter Review |
968 bytes,
text/plain
|
Details |
TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/composition/test-charset-edit.js | test-charset-edit.js::test_wrong_reply_charset TEST-UNEXPECTED-FAIL | /builds/slave/test/build/tests/mozmill/composition/test-charset-edit.js | test-charset-edit.js::test_no_mojibake First seen Wed Aug 24, 2016, 16:01:00 https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=44a362f04d8d444b7e84ff772a28fed383a58ab0 Most likely caused by bug 1191841.
Assignee | ||
Comment 1•8 years ago
|
||
mozmake SOLO_TEST=composition/test-drafts.js mozmill-one Failures are: SUMMARY-UNEXPECTED-FAIL | c:\mozilla-source\comm-central\mail\test\mozmill\composition\test-charset-edit.js | test-charset-edit.js::test_wrong_reply_charset EXCEPTION: a != b: 'UTF-8' != 'windows-1252'. at: test-folder-display-helpers.js line 2858 assert_true test-folder-display-helpers.js:2858 11 assert_equals test-folder-display-helpers.js:2845 3 test_wrong_reply_charset test-charset-edit.js:113 3 Runner.prototype.wrapper frame.js:585 9 Runner.prototype._runTestModule frame.js:655 9 Runner.prototype.runTestModule frame.js:701 3 Runner.prototype.runTestFile frame.js:534 3 runTestFile frame.js:713 3 Bridge.prototype._execFunction server.js:179 10 Bridge.prototype.execFunction server.js:183 16 Session.prototype.receive server.js:283 3 AsyncRead.prototype.onDataAvailable server.js:88 3 SUMMARY-UNEXPECTED-FAIL | c:\mozilla-source\comm-central\mail\test\mozmill\composition\test-charset-edit.js | test-charset-edit.js::test_no_mojibake EXCEPTION: a != b: 'x-mac-croatian' != 'utf-7'. at: test-folder-display-helpers.js line 2858 assert_true test-folder-display-helpers.js:2858 11 assert_equals test-folder-display-helpers.js:2845 3 test_no_mojibake test-charset-edit.js:146 3 Runner.prototype.wrapper frame.js:585 9 Runner.prototype._runTestModule frame.js:655 9 Runner.prototype.runTestModule frame.js:701 3 Runner.prototype.runTestFile frame.js:534 3 runTestFile frame.js:713 3 Bridge.prototype._execFunction server.js:179 10 Bridge.prototype.execFunction server.js:183 16 Session.prototype.receive server.js:283 3 AsyncRead.prototype.onDataAvailable server.js:88 3 We also note [332] WARNING: NS_ENSURE_SUCCESS(childCV->SetForceCharacterSet(msgCharSet), NS_ERROR_FAILURE) failed with result 0x80070057: file c:/mozilla-source/comm-central/mailnews/compose/src/nsMsgCompose.cpp, line 1618 This was introduced in bug 1191841. Local debugging shows that the charset that fails to be set is x-mac-croatian.
Assignee | ||
Comment 2•8 years ago
|
||
Not a nice patch. But M-C broke us and we need to react. Clean-up bug 1297118 already filed.
Attachment #8784533 -
Flags: review?(mkmelin+mozilla)
Comment 3•8 years ago
|
||
Comment on attachment 8784533 [details] [diff] [review] Proposed solution (v1a). Review of attachment 8784533 [details] [diff] [review]: ----------------------------------------------------------------- Isn't this just hiding the error? I don't think we should hide it if it's real.
Assignee | ||
Comment 4•8 years ago
|
||
No, the test that fails deliberately sets an invalid charset to check that this gets corrected somehow. With the changed behaviour of M-C this is not happening, since SetForceCharacterSet() now complains about bad input. So we are busted. As the checkin comment says: Ignore error returned by SetForceCharacterSet() to maintain *status quo*. The whole thing should be reviewed in bug 1297118.
Assignee | ||
Comment 5•8 years ago
|
||
Perhaps I should say it more clearly. Before bug 1191841, SetForceCharacterSet() would accept any input and the HTML5 parser would crash later. They changed that, and now it returns an error instead of crashing later. Before we checked for an error that never came even with bad input. Ignoring that error now restores the exact previous state (status quo), but without the crash. So I'd land this now to fix the test failure and the fact that TB actually now doesn't work and review the whole area later. I hope the purists can wait for bug 1297118 ;-)
Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Jorg K (GMT+2, PTO during summer) from comment #5) > ... and the fact that TB actually now doesn't work ... Right now, you can't reply to a message with a bad character set since nsMsgCompose::InitEditor() returns with a bad status. I'm not sure what the final solution will look like, but not setting a bad charset, that is, ignoring the error for now, will get the default and that's what we want. That's the status quo.
Assignee | ||
Comment 7•8 years ago
|
||
Right now, you can't answer this e-mail. With the patch, which restores the previous state, you can. Once again, this is meant as a bustage fix for the bustage caused by bug 1191841.
Comment 8•8 years ago
|
||
FWIW, I intend to remove the x-mac-* encodings that aren't in the Encoding Standard in due course. Intent to Remove coming up after I've dealt with more pressing issues.
Comment 9•8 years ago
|
||
Comment on attachment 8784533 [details] [diff] [review] Proposed solution (v1a). Review of attachment 8784533 [details] [diff] [review]: ----------------------------------------------------------------- Ok, yeah I guess this makes sense then. r=mkmelin
Attachment #8784533 -
Flags: review?(mkmelin+mozilla) → review+
Assignee | ||
Comment 10•8 years ago
|
||
Aleth, can you land this with your fix for the build oranges so we get a "completely" green tree, ha, ha.
Flags: needinfo?(aleth)
Keywords: checkin-needed
Comment 11•8 years ago
|
||
https://hg.mozilla.org/comm-central/rev/d1ab8c5568261fa49914c23022f76806a73b6767 Bug 1297761 - Ignore error returned by SetForceCharacterSet() to maintain status quo. r=mkmelin
Updated•8 years ago
|
Blocks: 1191841
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(aleth)
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 51.0
Comment hidden (Intermittent Failures Robot) |
Comment 13•8 years ago
|
||
Comment on attachment 8784533 [details] [diff] [review] Proposed solution (v1a). [Approval Request Comment] If we land the patch for bug 1191841 in m-esr45 THUNDERBIRD_45_VERBRANCH then presumably this issue will appear in TB 45, so we should land this too.
Attachment #8784533 -
Flags: approval-comm-esr45?
Assignee | ||
Comment 14•8 years ago
|
||
Right!
Updated•7 years ago
|
Attachment #8784533 -
Flags: approval-comm-esr45? → approval-comm-esr45+
Comment 15•7 years ago
|
||
https://hg.mozilla.org/releases/comm-esr45/rev/af893d6214a0
status-thunderbird_esr45:
--- → fixed
tracking-thunderbird_esr45:
--- → 51+
You need to log in
before you can comment on or make changes to this bug.
Description
•