Closed Bug 1172116 Opened 10 years ago Closed 5 years ago

Add a way to get a Debugger.Source from a SavedFrame

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: fitzgen, Unassigned)

References

Details

SavedFrame.prototype.getDebuggerSource(dbgInstance) ? We would need to hold a ref to the ScriptSourceObject in SavedFrame. Should it be weak? Should we have a flag when capturing the stack for whether we want to hold this ref or not, so that SavedFrame objects used internally by Error objects don't hold more than they bargained for? Who knows?! Let's figure it out!
See bug 1084525 comment 41 about the troubles we are having because we don't have access to Debugger.Source for SavedFrames.
See Also: → 1084525

This should be covered by the "sourceId" added in https://bugzilla.mozilla.org/show_bug.cgi?id=1447244.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.