Closed Bug 1849998 Opened 2 years ago Closed 2 years ago

Debugger frontend doesn't always assume that 'column' is 0-based

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(firefox121 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We have some code here and there that assume that column is 1-based, like line.
But it isn't. line is 1-based, but column is 0-based.

All this is ultimately decided in spidermonkey over there:
https://searchfox.org/mozilla-central/rev/d81e60336d9f498ad3985491dc17c2b77969ade4/js/src/vm/JSScript.h#1544-1547

Blocks: 1850024
Severity: -- → S3
Priority: -- → P3

There was some inconsistancies in column interpretation.
Some code was assuming it was 1-based.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Attachment #9351838 - Attachment description: Bug 1849998 - [devtools] Unify the codase to interpret location's column to be 0-based. → Bug 1849998 - [devtools] Unify the codebase to interpret location's column to be 0-based.
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4ceb4a53f17f [devtools] Unify the codebase to interpret location's column to be 0-based. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: