Closed Bug 1420256 Opened 2 years ago Closed Last year

Long strings do not wrap

Categories

(DevTools :: Console, defect, P3)

57 Branch
defect

Tracking

(firefox64 fixed)

RESOLVED FIXED
Firefox 64
Tracking Status
firefox64 --- fixed

People

(Reporter: polacek.emilan+bugzilla, Assigned: nchevobbe)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171112125346

Steps to reproduce:

I log long message (value of variable) to console.


Actual results:

Three dots not expand shoted message.


Expected results:

Explain (rendered) all charts from variable.
Component: Untriaged → Developer Tools: Console
PMilan, thanks fo filing the issue. The fact that you can't get the whole message is already covered in Bug 1310630. Let's use this bug to fix the layout issue (see attachment)
Summary: Developer tool - limit of characters for console message → Long strings do not wrap
Priority: -- → P3
Steps to reproduce:
1. Go to `data:text/html,<script>void function logLong() {console.log("ab".repeat(10000))}()</script>`
2. Open the console


Expected results:

The string is displayed in the output, and there is no horizontal scrollbar

Actual results:

There is an horizontal scrollbar, and the location is pushed off-screen
Product: Firefox → DevTools
Assignee: nobody → nchevobbe
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
This makes long strings without spaces wrap in the console output.
Also fixes object with long string properties.
Comment on attachment 9009622 [details]
Bug 1420256 - Make longStrings wrap; r=Honza.

Jan Honza Odvarko [:Honza] has approved the revision.
Attachment #9009622 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/7bb7b47854be
Status: ASSIGNED → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in before you can comment on or make changes to this bug.