Closed Bug 1063271 Opened 8 years ago Closed 8 years ago

Global selection in NS_ScriptErrorReporter isn't quite right

Categories

(Core :: XPConnect, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla35
Tracking Status
firefox32 --- unaffected
firefox33 --- unaffected
firefox34 + fixed
firefox35 --- fixed

People

(Reporter: bholley, Assigned: bholley)

References

Details

Attachments

(1 file)

I screwed this up in bug 796938 part 10. The specific case that isn't handled here is when the most-recent AutoJSAPI was initialized with InitWithLegacyErrorReporting. In that case, the stack-top cx that we were using before won't match the entry that we pull off of the script settings stack.

The easiest thing to do is just to back that part out (in an elegant manner to avoid reindentation churn). This will all get fixed up in bug 981187, which is coming very soon down the pipe.

Note - We should backport fix to Aurora.
Blocks: 1062631
Attachment #8484685 - Flags: review?(bugs)
[Tracking Requested - why for this release]:

Potential regression from bug 796938. Just going to back that part out.
(In reply to Bobby Holley (:bholley) from comment #0)
> I screwed this up in bug 796938 part 10. The specific case that isn't
> handled here is when the most-recent AutoJSAPI was initialized with
> InitWithLegacyErrorReporting. In that case, the stack-top cx that we were
> using before won't match the entry that we pull off of the script settings
> stack.
Huh.
Attachment #8484685 - Flags: review?(bugs) → review+
Comment on attachment 8484685 [details] [diff] [review]
Undo bug 796938 part 10. v1

Approval Request Comment
[Feature/regressing bug #]: bug 796938
[User impact if declined]: Errors might be reported in the wrong place in certain edge cases.
[Describe test coverage new/current, TBPL]: None. This is a backout.
[Risks and why]: Extremely low. This is a backout.
[String/UUID change made/needed]: None.
Attachment #8484685 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/9a8b6905a24a
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Comment on attachment 8484685 [details] [diff] [review]
Undo bug 796938 part 10. v1

Aurora+
Attachment #8484685 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.