Closed Bug 975464 Opened 12 years ago Closed 12 years ago

Scratchpad [ Pretty Print ] doesn't handle escaped backslashes

Categories

(DevTools Graveyard :: Scratchpad, defect, P3)

30 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 956567

People

(Reporter: anaran, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release) Build ID: 20140220030202 Steps to reproduce: See attached testcase and follow comments and console.log messages. Actual results: Strings get corrupted, Exception: unterminated string literal on \' and \r. Expected results: None of this. Pretty print should leave pretty backslashes in strings pretty alone.
Component: Untriaged → Developer Tools: Scratchpad
Minimal example: > '\\r' pretty prints to: > '\r'
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Scratchpad [ Pretty Print ] removes backslashes from strings, corrupts, breaks syntax → Scratchpad [ Pretty Print ] doesn't handle escaped backslashes
Priority: -- → P3
OS: Windows XP → All
Hardware: x86 → All
This seems to be fixed in navigator.userAgent "Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0" navigator.buildID "20140429030201"
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: