Closed
Bug 1454491
Opened 7 years ago
Closed 7 years ago
Incorrect string is replaced
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: omaxphp, Unassigned)
Details
Attachments
(2 files)
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;
`);
Comment 2•7 years ago
|
||
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)
Comment 4•7 years ago
|
||
Thanks! I'll leave this to devtools folks to triage...
Group: firefox-core-security
Comment 5•7 years ago
|
||
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)
The problem is still observed
https://habrastorage.org/webt/14/a6/kf/14a6kf0fqhcbmsrvvmwc_xsxhfs.png
https://habrastorage.org/webt/xp/gz/lf/xpgzlfhaxywxdolgdhjf4jnjup0.png
Flags: needinfo?(omaxphp)
Comment 7•7 years ago
|
||
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 :)
The problem is still observed FF 59
https://habrastorage.org/webt/k7/cx/cn/k7cxcnvfso0v_cmsvy1bj_fegke.png
Comment 9•7 years ago
|
||
Just tested in Firefox 60 and it works as expected
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•