Closed Bug 1389501 Opened 7 years ago Closed 2 years ago

Firefox Dev Edition 56.0b1 (64-bit): console.log() no longer allows CSS styles to highlight messages in Browser Console if called from WebExtension add-ons.

Categories

(DevTools :: Console, defect, P3)

56 Branch
defect

Tracking

(firefox57 wontfix)

RESOLVED WORKSFORME
Tracking Status
firefox57 --- wontfix

People

(Reporter: tom.mai78101, Unassigned)

Details

Attachments

(1 file)

Attached image Capture.PNG
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170628075643

Steps to reproduce:

I use the following JavaScript code:

console.log("(shoptoolbar.js) %cHello world from background script.", "background-color: #bdcc8b; color: #433475;");

In the extension add-on background script to display "Hello world" in the Browser Console, highlighted with the specified color.  

Then I compare the results with the same code by typing into the Browser Console directly using the following code:

console.log("(shoptoolbar.js) %cHello world Browser Console.", "background-color: #bdcc8b; color: #433475;");


Actual results:

The console log messages sent from the extension add-on is not colored.
The console log messages entered in from the Browser Console works normally.


Expected results:

All log messages, no matter if sent from extension add-ons or entered into the Browser Console, should all be colored.
Component: Untriaged → Developer Tools: Console
Summary: console.log() no longer allows CSS styles to highlight messages in Browser Console → console.log() no longer allows CSS styles to highlight messages in Browser Console if called from WebExtension add-ons.
Summary: console.log() no longer allows CSS styles to highlight messages in Browser Console if called from WebExtension add-ons. → Firefox Dev Edition 56.0b1 (64-bit): console.log() no longer allows CSS styles to highlight messages in Browser Console if called from WebExtension add-ons.
The actual user agent is: 

"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"

I'm just reporting the bug via Firefox stable version.
Thanks for the report - we should be styling messages the same regardless of the source
Priority: -- → P3
Product: Firefox → DevTools

Not sure when this was fixed, but it seems to work okay for me now

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: