Console.log() is capitalizing 'l' characters in a url string

NEW
Unassigned

Status

()

Firefox
Developer Tools: Console
P2
normal
7 months ago
7 months ago

People

(Reporter: Laurent, Unassigned)

Tracking

(Depends on: 1 bug)

52 Branch
Unspecified
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

7 months ago
Created attachment 8855280 [details]
Firefox52-console-bug.png

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170323105023

Steps to reproduce:

1) Create a simple html page with a script tag that contains:

    console.log("http://api.openweathermap.org/data/2.5/weather?units=metric&lang=fr&lat=48.853&lon=2.35");

2) Start Firefox in safe mode (to avoid any extension side-effect)

3) Hit F12 (developper tools) or Ctrl+Shift+J (Navigator console) to open Firefox console

4) Drag-and-drop the simple html page in Firefox



Actual results:

The console displays the message:

  "http://api.openweathermap.org/data/2.5/weather?units=metric&Lang=fr&Lat=48.853&Lon=2.35"

  Notice the uppercase "L" to Lang, Lat and Lon instead of lowercase "l".
  
  See screen copy in the attached file.



Expected results:

The console should display the text unchanged.

http://api.openweathermap.org/data/2.5/weather?units=metric&lang=fr&lat=48.853&lon=2.35

Updated

7 months ago
Component: Untriaged → Developer Tools: Console

Comment 1

7 months ago
Testcase:
<script>
 console.log("http://llLL");
</script>


It is a display problem due to italics for url.
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
Summary: Console.log() gives wrong ouput under certain circumstances → The character l is like L when italic
Created attachment 8856680 [details]
log-message.png

That's really weird.  I'm not seeing the capital L issue in a clean profile on 52 (or in Nightly builds 55).  When loading data:text/html,<script>console.log("http://api.openweathermap.org/data/2.5/weather?units=metric&lang=fr&lat=48.853&lon=2.35");</script> here's what I see
Just tested Firefox 50.0 on Windows 7 and I am seeing the issue
OS: Unspecified → Windows 7
Also seeing this on Windows 10 (Firefox 52 and 54).  This is fixed with the new frontend (currently on by default in nightly builds and work is in progress to enable it in release) so I'm going to block it on Bug 1308219, I'd definitely accept a fix in the meantime.
Depends on: 1308219
Priority: -- → P2
(Reporter)

Comment 5

7 months ago
Created attachment 8856889 [details]
devtools.webconsole.new-frontend-enabled = true or false

In about:config, set devtools.webconsole.new-frontend-enabled to true solves the issue. See attachement.
Summary: The character l is like L when italic → Console.log() is capitalizing 'l' characters in a url string
You need to log in before you can comment on or make changes to this bug.