Closed
Bug 1131609
Opened 8 years ago
Closed 8 years ago
getOriginalLocation should take a sourceActor.
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox38 fixed)
RESOLVED
FIXED
Firefox 38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: ejpbruel, Assigned: ejpbruel)
Details
Attachments
(1 file)
13.16 KB,
patch
|
jlong
:
review+
|
Details | Diff | Splinter Review |
I've long been annoyed by the fact that getGeneratedLocation and getOriginalLocation are not homogeneous. The former takes a location object with a sourceActor, the latter a location object with a Debugger.source instance. This discrepancy is needlessly confusing in my opinion. The main reason why getOriginalLocation takes a Debugger.Source instance seems to because that is what getFrameLocation returns. It shouldn't be too hard to refactor getFrameLocation so that it returns the source actor corresponding to the Debugger.Source instance by wrapping it in a call to createNonSourceMappedActor.
Assignee | ||
Comment 1•8 years ago
|
||
Assignee: nobody → ejpbruel
Attachment #8562111 -
Flags: review?(jlong)
Comment 2•8 years ago
|
||
Comment on attachment 8562111 [details] [diff] [review] patch Review of attachment 8562111 [details] [diff] [review]: ----------------------------------------------------------------- This should be pretty harmless. Only reason it wasn't like this was because we almost always already had a `Debugger.Source` object, but you're right to make it more consistent.
Attachment #8562111 -
Flags: review?(jlong) → review+
Assignee | ||
Comment 3•8 years ago
|
||
Try push for this patch: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b79ff087bef8
Assignee | ||
Comment 4•8 years ago
|
||
The previous try run was bogus. Here's the second attempt: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9c3e6dc26975
Assignee | ||
Comment 5•8 years ago
|
||
Try run looks green, posted to fx-team: https://hg.mozilla.org/integration/fx-team/rev/7462142c1322
Comment 6•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7462142c1322
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox38:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
Updated•5 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•