Closed
Bug 748851
Opened 13 years ago
Closed 12 years ago
Web Developer Console incorrectly displays escaped hex/unicode characters
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 23
People
(Reporter: MR_1993, Unassigned)
References
Details
Displaying a string containing either "\\xNN" or "\\uNNNN", where \xNN or \uNNNN represent a printing character results in a backslash followed by the printing character, instead of the entered text.
For example, the input:
"\\x27 \\x22 \\x5c \\x6e \\x72 \\x74 \\x62 \\x66 \\x75 \\x78"
results in the output:
"\' \" \\ \n \r \t \b \f \u \x"
And the input:
"\\x750075"
results in the output:
"u"
These are obviously incorrect; the input string should be displayed as is.
This appears to be caused by the process of escaping the string and then checking it for hex/unicode escaped characters. The second example appears to be a result of hex parsing before unicode parsing.
(ie. "\\x750075" => "\u0075" => "u")
Comment 1•13 years ago
|
||
Thank you for the bug report. Will be fixed by bug 783499 which includes some output changes.
Status: UNCONFIRMED → NEW
Depends on: 783499
Ever confirmed: true
OS: Windows 7 → All
Hardware: x86_64 → All
Comment 2•12 years ago
|
||
Bug 783499 landed. Tested and confirmed that this bug is fixed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•