Closed Bug 1454491 Opened 7 years ago Closed 7 years ago

Incorrect string is replaced

Categories

(DevTools :: Console, defect)

61 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: omaxphp, Unassigned)

Details

Attachments

(2 files)

Attached image firefox.png
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Firefox for Android Steps to reproduce: console.log('%c%s', ` background: #f4f4f4; border: 1px solid #ddd; border-left: 3px solid #f36d33; color: #666; page-break-inside: avoid; font-family: monospace; font-size: 15px; line-height: 1.6; margin: 1.6em 5px; max-width: 100%; overflow: auto; padding: 1em 1.5em; display: block; word-wrap: break-word; `, ` @Component({ .. }) export class AppComponent { .. } `); Actual results: One line merges the text Expected results: Chrome good work: https://habrastorage.org/webt/7c/k6/ne/7ck6ney5wh0srs-o0uxu_ybjwkm.png
console.log(`%c @Component({ .. }) export class AppComponent { .. } `, ` background: #f4f4f4; border: 1px solid #ddd; border-left: 3px solid #f36d33; color: #666; page-break-inside: avoid; font-family: monospace; font-size: 15px; line-height: 1.6; margin: 1.6em 5px; max-width: 100%; overflow: auto; padding: 1em 1.5em; display: block; word-wrap: break-word; `);
I can't reproduce this in the latest Nightly and I don't understand the security aspect of it. Would you mind testing this again in Nightly and explaining why you think this is a security issue?
Component: Untriaged → Developer Tools: Console
Flags: needinfo?(omaxphp)
I'm not right to have something. This is not a security issue. I just wanted to point out that this is a bug with a value of CSS in the console. Because different browsers have different behaviors
Flags: needinfo?(omaxphp)
Thanks! I'll leave this to devtools folks to triage...
Group: firefox-core-security
Attached image chrome_ff.png
Hey Ivanov, Could you tell me if there's still an issue ? I can't see any difference between Chrome and Firefox with your example.
Flags: needinfo?(omaxphp)
This is ff 57, I think release is in 59 now ? Could you try to update and see if it's still an issue ? Also, if you can try on Firefox Nightly and check the issue isn't here anymore that would be great :)
Just tested in Firefox 60 and it works as expected
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: