Closed
Bug 719127
Opened 13 years ago
Closed 13 years ago
Debugger error: jschar out of char range; high bits of data lost
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 13
People
(Reporter: past, Assigned: dcamp)
References
Details
Attachments
(1 file)
2.96 KB,
patch
|
past
:
review+
rcampbell
:
feedback+
|
Details | Diff | Splinter Review |
STR:
1) Visit http://www.mozilla.org/en-US/firefox/dl
2) Open the Script Debugger.
Because of the em dash (or en dash) character in the page title, the following errors appear in the console (stdout):
DBG-SERVER: Got: {
"from": "root",
"applicationType": "browser",
"traits": []
}
DBG-SERVER: Got: {
"to": "root",
"type": "listTabs"
}
WARNING: jschar out of char range; high bits of data lost: 0x2014: file /Users/past/src/remote-debug/js/xpconnect/src/XPCConvert.cpp, line 426
DBG-SERVER: Error parsing incoming packet: {
"from": "root",
"selected": 2,
"tabs": [
{
"actor": "conn0.tab2",
"title": "Debugger test page",
"url": "http://htmlpad.org/debugger/"
},
{
"actor": "conn0.tab3",
"title": "Spellchecker",
"url": "http://astithas.com/speller/"
},
{
"actor": "conn0.tab4",
"title": "Mozilla Firefox Web Browser Free Download",
"url": "http://www.mozilla.org/en-US/firefox/dl"
}
]
} (SyntaxError: JSON.parse: bad control character in string literal - DT_processIncoming()@chrome://global/content/devtools/dbg-transport.js:162
DT_onDataAvailable([object XPCWrappedNative_NoHelper],null,[object XPCWrappedNative_NoHelper],71,456)@chrome://global/content/devtools/dbg-transport.js:128
)
Comment 1•13 years ago
|
||
JSON.parse strikes again!
Assignee | ||
Comment 2•13 years ago
|
||
Not json.parse, just bad use of streaming APIs. I should know better.
Assignee: nobody → dcamp
Attachment #596196 -
Flags: review?(past)
Reporter | ||
Comment 4•13 years ago
|
||
Comment on attachment 596196 [details] [diff] [review]
properly encode before sending across the wire
Review of attachment 596196 [details] [diff] [review]:
-----------------------------------------------------------------
Works as advertised.
::: toolkit/devtools/debugger/tests/unit/test_dbgsocket.js
@@ +40,4 @@
> transport.send({to: "root",
> type: "echo",
> + reallylong: really_long(),
> + unicode: "(╯°□°)╯︵ ┻━┻"});
Nit: moving the Unicode string to a variable would avoid some typing and ensure we test for the same thing.
Attachment #596196 -
Flags: review?(past) → review+
Comment 5•13 years ago
|
||
Comment on attachment 596196 [details] [diff] [review]
properly encode before sending across the wire
f+ for using tableflip guy!
Attachment #596196 -
Flags: feedback+
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•