Closed Bug 321494 Opened 19 years ago Closed 19 years ago

ASSERTION: Unexpected JSContext popped!, ASSERTION: ThreadJSContextStack underflow due to missing early return

Categories

(Core :: Layout: Form Controls, defect, P1)

x86
All
defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: bc, Assigned: bzbarsky)

References

()

Details

(Keywords: fixed1.8.0.1, fixed1.8.1)

Attachments

(1 file)

From bug 285755 comment 8:

the ensuing assertions are due to a bug in the patch for bug 287446.  An early return that should be there got lost.  :(

We should probably file a separate bug on that and fix it on the 1.8
branches... :(
Flags: blocking1.8.1?
Flags: blocking1.8.0.1?
Blocks: 287446
No longer depends on: 287446
What negative effects come from this? The testcase URL is WFM for bsmedberg. Need a baked patch to consider for 1.8.0.1
Flags: blocking1.8.0.1? → blocking1.8.0.1-
Attached patch PatchSplinter Review
This is dead-simple.  Should have been in the original checkin.  If we ever hit this code without this patch, we'll probably end up with a security hole (since the right jscontext won't be on the stack).

There's zero risk here; I really think we should take this for 1.8.0.1.
Attachment #207771 - Flags: superreview?(jst)
Attachment #207771 - Flags: review?(jst)
Attachment #207771 - Flags: approval1.8.1?
Attachment #207771 - Flags: approval1.8.0.1?
Renominating for 1.8.0.1.  I really think we should take this on branch...  possibly even if it means an extra day in the cycle to give this more bake time if drivers want more bake time.  See comment 2 for details.
Flags: blocking1.8.0.1- → blocking1.8.0.1?
Comment on attachment 207771 [details] [diff] [review]
Patch

sr=me, jst would agree.

/be
Attachment #207771 - Flags: superreview?(jst) → superreview+
<brendan> bz: you didn't answer dveditz in the bug about how people hit this
> brendan: it's an error condition
> brendan: they generally don't
<brendan> someone did
<brendan> bad luck?
> brendan: that was because of another bug that broke QI
> brendan: but frankly, I don't think we want people to be exploitable because some dumb extension breaks editor
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Priority: -- → P1
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9alpha
Flags: blocking1.8.1?
Flags: blocking1.8.1+
Flags: blocking1.8.0.1?
Flags: blocking1.8.0.1+
Comment on attachment 207771 [details] [diff] [review]
Patch

a=dveditz for drivers
Attachment #207771 - Flags: approval1.8.1?
Attachment #207771 - Flags: approval1.8.1+
Attachment #207771 - Flags: approval1.8.0.1?
Attachment #207771 - Flags: approval1.8.0.1+
*** Committing to MOZILLA_1_8_BRANCH... 
/cvsroot/mozilla/layout/forms/nsTextControlFrame.cpp,v  <--  nsTextControlFrame.cpp
new revision: 3.197.10.4; previous revision: 3.197.10.3

*** Committing layout/forms/nsTextControlFrame.cpp on MOZILLA_1_8_0_BRANCH... 
/cvsroot/mozilla/layout/forms/nsTextControlFrame.cpp,v  <--  nsTextControlFrame.cpp
new revision: 3.197.10.3.2.1; previous revision: 3.197.10.3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: