Closed Bug 582521 Opened 14 years ago Closed 14 years ago

Latest tracemonkey breaks some assignments to char characters on idl interfaces

Categories

(Core :: XPConnect, defect)

All
macOS
defect
Not set
major

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: standard8, Assigned: dwitte)

References

Details

(Keywords: regression, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

sayre mentioned to me that tracemonkey is doing another merge to trunk very soon. I therefore checked it out with comm-central and latest tracemonkey (revision d7c7ba27b84e), and built and ran the Thunderbird tests.

Some of the our xpcshell-tests are broken with the following error:

TEST-UNEXPECTED-FAIL | (xpcshell/head.js) | [Exception... "Could not convert JavaScript argument arg 0 [nsIMsgImapMailFolder.hierarchyDelimiter]"  nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"

This seems like a regression. nsIMsgImapFolder has defined:

attribute char hierarchyDelimiter;

and the tests that are failing have:

msgImapFolder.hierarchyDelimiter = '/';

FTR some of the failing tests with this message are:
test_imapUndo.js
test_listClosesDB.js
test_imapFolderCopy.js
test_imapFilterActions.js
test_copyThenMove.js
Is that in a debug build only?  The patch for bug 573841 added a bogus |return JS_FALSE| in the nsXPTType::T_CHAR case in JSData2Native that only gets triggered in debug builds... but will reliably fail conversion of strings to chars in debug builds.
Assignee: general → nobody
Blocks: 573841
blocking2.0: --- → ?
Component: JavaScript Engine → XPConnect
QA Contact: general → xpconnect
Guh!! I am shocked, shocked that we have no test in m-c that tickled this.

I'm out of town atm but I'll try to patch later today. If anyone wants to preempt, though...
Attached patch patchSplinter Review
bz, want to stamp this? mrbkap's at BH this week.

I'm going to write a test for this, but I'm at BH too, so I'll follow up when I get back.
Assignee: nobody → dwitte
Status: NEW → ASSIGNED
Attachment #460932 - Flags: review?(bzbarsky)
Comment on attachment 460932 [details] [diff] [review]
patch

r=me
Attachment #460932 - Flags: review?(bzbarsky) → review+
Comment on attachment 460932 [details] [diff] [review]
patch

Definitely want this in tm ASAP.
Attachment #460932 - Flags: approval2.0?
Attachment #460932 - Flags: approval2.0? → approval2.0+
blocking2.0: ? → betaN+
It's already a blocker; just land it.
http://hg.mozilla.org/tracemonkey/rev/1f3358bd4ef4
blocking2.0: betaN+ → ?
Whiteboard: fixed-in-tracemonkey
FWIW I've just applied this to the same tracemonkey build as I had earlier and it works fine.

Thanks everyone.
blocking2.0: ? → betaN+
http://hg.mozilla.org/mozilla-central/rev/1f3358bd4ef4
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: