Closed
Bug 913670
Opened 11 years ago
Closed 11 years ago
Cu.evalInSandbox should use 1-based line numbering
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: fitzgen, Assigned: bzbarsky)
Details
Attachments
(1 file)
914 bytes,
patch
|
bholley
:
review+
fitzgen
:
feedback+
|
Details | Diff | Splinter Review |
If you have <script src="foo.js"></script> and foo.js is console.log(Error().lineNumber); you get 1 in the console. The Debugger API checks that line numbers are 1 or greater: http://mxr.mozilla.org/mozilla-central/source/js/src/vm/Debugger.cpp#2366 However, Cu.evalInSandbox will make the first line number 0 if you pass in a url parameter but not a line number parameter. This is in conflict with the other behaviors and should be fixed.
Assignee | ||
Comment 1•11 years ago
|
||
This would just need fixing in the evalInSandbox code, right? Request an optional_argc in the IDL and default the lineNo to 1 if not passed...
Assignee: general → nobody
Component: JavaScript Engine → XPConnect
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #800996 -
Flags: feedback?
Assignee | ||
Updated•11 years ago
|
Attachment #800996 -
Flags: feedback? → feedback?(nfitzgerald)
Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 800996 [details] [diff] [review] Does this help? Review of attachment 800996 [details] [diff] [review]: ----------------------------------------------------------------- Tested it out and it LGTM.
Attachment #800996 -
Flags: feedback?(nfitzgerald) → feedback+
Updated•11 years ago
|
Attachment #800996 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bzbarsky
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9ff0b038942a
Flags: in-testsuite?
Target Milestone: --- → mozilla26
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9ff0b038942a
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•