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)

x86_64
All
defect
Not set
normal

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)

Attached file simple testcase
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.
This bug is a regression in Nightly 28. This bug is not reproducible in Aurora 27, Beta 26, or Firefox 25.
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
OS: Mac OS X → All
I'm seeing this on quite a few Twitter bios. No idea why CRs are common there.
The example in question includes explicit &#13; entities: <p class="bio profile-field">Reach more than 85% of the US business population with the Bizo Marketing Platform.&#13;&#10;&#13;&#10;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.
I see that the question of how stray &#13;s in the DOM should be treated has come up before; e.g. bug 534071.
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: nobody → jfkthame
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 &#13; characters in the DOM remain invisible Review of attachment 8336713 [details] [diff] [review]: ----------------------------------------------------------------- You forgot to hg add the files
Oops, so I did. This should be better.
Attachment #8336731 - Flags: review?(roc)
Attachment #8336713 - Attachment is obsolete: true
Attachment #8336713 - Flags: review?(roc)
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
reproduced on nightly 28.0a1 20131123030208 build. verified on nightly 28.0a1 20131128030201 build.
Status: RESOLVED → VERIFIED
QA Contact: ananuti
Whiteboard: [bugday-20131204]
Depends on: 946044
No longer depends on: 946044
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: