Closed
Bug 941940
Opened 11 years ago
Closed 11 years ago
U+000D 'CARRIAGE RETURN (CR)' is rendered as a hexbox
Categories
(Core :: Graphics: Text, defect)
Tracking
()
VERIFIED
FIXED
mozilla28
Tracking | Status | |
---|---|---|
firefox25 | --- | unaffected |
firefox26 | --- | unaffected |
firefox27 | --- | unaffected |
firefox28 | --- | verified |
People
(Reporter: jruderman, Assigned: jfkthame)
References
Details
(Keywords: regression, testcase, Whiteboard: [bugday-20131204])
Attachments
(4 files, 1 obsolete file)
42 bytes,
text/html
|
Details | |
497.49 KB,
image/png
|
Details | |
2.79 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
1.47 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
Using Firefox Nightly on Mac OS X 10.9, pages that contain carriage return characters show an '000D' hexbox. This does not happen in Safari or Chrome on the same computer.
I expected it to be treated as whitespace, although other browsers seem to ignore it entirely.
Reporter | ||
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
This bug is a regression in Nightly 28. This bug is not reproducible in Aurora 27, Beta 26, or Firefox 25.
status-firefox25:
--- → unaffected
status-firefox26:
--- → unaffected
status-firefox27:
--- → unaffected
status-firefox28:
--- → affected
Keywords: regression,
regressionwindow-wanted
Comment 3•11 years ago
|
||
Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/e9370b4c4ace
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 ID:20131112001830
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/739edf98ca0b
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0 ID:20131112003631
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=e9370b4c4ace&tochange=739edf98ca0b
Regressed by:
739edf98ca0b Jonathan Kew — bug 909344 - render stray control characters as hexboxes instead of invisible. r=roc
Blocks: 909344
Keywords: regressionwindow-wanted
Updated•11 years ago
|
OS: Mac OS X → All
Reporter | ||
Comment 4•11 years ago
|
||
I'm seeing this on quite a few Twitter bios. No idea why CRs are common there.
Assignee | ||
Comment 5•11 years ago
|
||
The example in question includes explicit entities:
<p class="bio profile-field">Reach more than 85% of the US business population with the Bizo Marketing Platform. Want to love your job? Join us!
I guess there's some Windows-based tool people are using to maintain Twitter accounts that (inappropriately) does this entity-encoding of the CRLF sequence if it occurs within certain fields - maybe an attempt to allow newline sequences within fields that at some level may be defined as single-line?
If this seems to be a common pattern, I suppose we should include <CR> in the characters that we always render as invisible.
Assignee | ||
Comment 6•11 years ago
|
||
I see that the question of how stray s in the DOM should be treated has come up before; e.g. bug 534071.
Assignee | ||
Comment 7•11 years ago
|
||
Something like this should make the stray CRs disappear again. (Although they really shouldn't be there in the first place.)
Attachment #8336674 -
Flags: review?(roc)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jfkthame
Attachment #8336674 -
Flags: review?(roc) → review+
Assignee | ||
Comment 8•11 years ago
|
||
And let's have a simple reftest for this.
Attachment #8336713 -
Flags: review?(roc)
Comment on attachment 8336713 [details] [diff] [review]
reftest to check that characters in the DOM remain invisible
Review of attachment 8336713 [details] [diff] [review]:
-----------------------------------------------------------------
You forgot to hg add the files
Assignee | ||
Comment 10•11 years ago
|
||
Oops, so I did. This should be better.
Attachment #8336731 -
Flags: review?(roc)
Assignee | ||
Updated•11 years ago
|
Attachment #8336713 -
Attachment is obsolete: true
Attachment #8336713 -
Flags: review?(roc)
Attachment #8336731 -
Flags: review?(roc) → review+
Assignee | ||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/040798d3721c
https://hg.mozilla.org/integration/mozilla-inbound/rev/383361e75e5d
Target Milestone: --- → mozilla28
Assignee | ||
Comment 12•11 years ago
|
||
Oops... I must have goofed when rebasing this to inbound; the line adding the new test to bugs/reftest.list got lost. :( Pushed a followup to fix that. (Also corrected the order of the last few entries there, as they weren't sorted properly.)
https://hg.mozilla.org/integration/mozilla-inbound/rev/ac5ac0a2b106
Comment 13•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/040798d3721c
https://hg.mozilla.org/mozilla-central/rev/383361e75e5d
https://hg.mozilla.org/mozilla-central/rev/ac5ac0a2b106
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 14•11 years ago
|
||
reproduced on nightly 28.0a1 20131123030208 build.
verified on nightly 28.0a1 20131128030201 build.
Status: RESOLVED → VERIFIED
QA Contact: ananuti
Whiteboard: [bugday-20131204]
You need to log in
before you can comment on or make changes to this bug.
Description
•