Closed Bug 331719 Opened 18 years ago Closed 18 years ago

Problem with String.replace running with WAY_TOO_MUCH_GC

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha1

People

(Reporter: dbaron, Assigned: brendan)

References

()

Details

(Keywords: verified1.8.0.4, verified1.8.1)

Attachments

(1 file)

When I run with WAY_TOO_MUCH_GC, I see the text in the first button of each confirmation dialog being /\&\&/g followed by the accesskey.  The problem is that the code here:

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/content/commonDialog.js&rev=1.11&mark=91#70

ends up changing aLabel from "No" to "/\&\&/g".
Attached patch fixSplinter Review
Should have looked for js_Clone when I fixed the js_CloneFunctionObject call-sites to home sp and pc.

/be
Attachment #216264 - Flags: review?(mrbkap)
Assignee: general → brendan
Flags: blocking1.8.1+
Flags: blocking1.8.0.3?
OS: Linux → All
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → mozilla1.9alpha
Yep, that fixes it for me.
Attachment #216264 - Flags: approval1.8.0.3?
Attachment #216264 - Flags: approval-branch-1.8.1+
Comment on attachment 216264 [details] [diff] [review]
fix

r=mrbkap
Attachment #216264 - Flags: review?(mrbkap) → review+
Fixed on trunk and 1.8 branch.  Another js1.6 candidate.  Needs to be approved for 1.8.0.3.

/be
Blocks: js1.6rc1
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
SAVE_SP_AND_PC doesn't exist on the 1.8 branch, this patch made the tinderboxen red.
Sorry, fixed to use SAVE_SP(fp) on the 1.8 branch.

/be
Flags: blocking1.8.0.3? → blocking1.8.0.3+
Comment on attachment 216264 [details] [diff] [review]
fix

approved for 1.8.0 branch, a=dveditz for drivers
Attachment #216264 - Flags: approval1.8.0.3? → approval1.8.0.3+
Fixed on 1.8.0 branch.

/be
Keywords: fixed1.8.0.3
This broke the 1.8.0 branch tree since SAVE_FP_AND_PC doesn't exist there.
I landed the same change there that landed on the 1.8 branch.
Argh, I should have remembered this 1.8{.0,} branch difference from trunk.  Sorry, and thanks again for fixing it.

/be
1.5.0.4 debug WAY_TOO_MUCH GC windows/linux "No".replace(/\&\&/g, "&") == "No"
Checking in regress-331719.js;
/cvsroot/mozilla/js/tests/js1_5/GC/regress-331719.js,v  <--  regress-331719.js
initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.8, 1.9 20060807 linux.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: