New issue
Advanced search Search tips

Issue 649248 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

An unsupported(?) modifier causes the multiple preceding emoji to show up as squares

Project Member Reported by phistuck@gmail.com, Sep 22 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Example URL:
data:text/html;charset=utf-8,<!doctype html>%F0%9F%92%A5%F0%9F%9A%B6%F0%9F%8F%BB<br/>%F0%9F%92%A5%F0%9F%9A%B6

Steps to reproduce the problem:
1. Go to the URL.

What is the expected behavior?
In the first line - a collision emoji, a pedestrian emoji and perhaps a pale skin tone (though it is a modifier, as far as I understand, so it should not show a character on its own).
In the second line - a collision emoji and a pedestrian emoji.
A text box with the same as the first line.

What went wrong?
In the first line - three squares.
In the second line - a collision emoji and a pedestrian emoji.
A text box with three squares. If you press backspace to delete the last one, the characters show up.

Firefox shows the first two characters no matter what. The third character is a square with the following characters inside of it - 0173FB.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A 

Chrome version: 53.0.2785.116  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 23.0 r0

I ran into it because I copied the bonus line from https://plus.google.com/+FrancoisBeaufort/posts/EPm6BVFpmUi and pasted it in the Google search field (in order to find the meaning of the characters that show up as squares). I all of the characters, selected everything but the first character and cut them and pressed Enter. This way I got the meaning of a single character. I repeated for the pasted text until I happened to have pressed backspace instead of cutting the rest of the text and when I removed a certain character, all of the characters before it were changed from squares to actual emoji.
 
Components: Blink>Fonts>Emoji
Labels: -Type-Compat Hotlist-Interop Type-Bug
Status: Untriaged (was: Unconfirmed)

Comment 2 by e...@chromium.org, Sep 22 2016

Labels: -OS-Windows OS-All
Owner: drott@chromium.org
Status: Assigned (was: Untriaged)

Comment 3 by drott@chromium.org, Sep 22 2016

Labels: -Pri-2 Pri-3
Your example data URL does not seem to have any textbox markup in it or no third line really, so the expected results couldn't match.

Could you post a screenshot on what you see on Windows 7 in Chrome and FF? I currently only have access to a Win 10 machine.

For more info on the sequence:
https://codepoints.net/%F0%9F%92%A5%F0%9F%9A%B6%F0%9F%8F%BB%F0%9F%92%A5%F0%9F%9A%B6

I believe the square that FF shows contains 1F3FB which is the fitzpatrick, modifier.

Comment 4 by phistuck@gmail.com, Sep 22 2016

Sorry, you are correct, it was a recent addition.
Here -
data:text/html;charset=utf-8,<!doctype html>%F0%9F%92%A5%F0%9F%9A%B6%F0%9F%8F%BB<br/>%F0%9F%92%A5%F0%9F%9A%B6<br/><input value=%F0%9F%92%A5%F0%9F%9A%B6%F0%9F%8F%BB>

Correction to the actual results -
A text box with three squares. If you press backspace to delete the last one, the first character show up. The second character is lost.


The sequence you mentioned is different than the one I mentioned. Here is the one I mentioned -
https://codepoints.net/search?q=πŸ’₯🚢🏻

And yes, Firefox shows the third character codepoints shows.

I attached a screenshot of Chrome. Do you still need a screenshot of Firefox? It just shows the third character like codepoints shows.
chrome-unicode-modifier-squares-issue.png
18.6 KB View Download

Comment 5 by drott@chromium.org, Sep 23 2016

Yes, it would be helpful to have a screenshot of what FF does on Windows 7.

Can you also right-click => Inspect each line and look at the computed styles panel in Inspector and post here which font is used? Thank you.

Comment 6 by phistuck@gmail.com, Sep 23 2016

In Chrome -
Arial
Segoe UI Symbol
Arial

Sorry for being a bit petty (I do not have Firefox on this non-development computer), but I understand you have a BrowserStack account that you can use to see it in Windows 7, right?
If you still want me to generate a screenshot, let me know.

Comment 7 by phistuck@gmail.com, Sep 23 2016

Will an Internet Explorer 11 screenshot work?
Attached.

Firefox just renders the third square in the screenshot as a square with characters, like codepoints shows but everything else is pretty much the same.
internet-explorer-renders-two-characters-and-a-square.png
14.0 KB View Download

Comment 8 by drott@chromium.org, Sep 23 2016

Thanks for the updates - we probably try to shape the fitzpatrick modifier sequence with Segoe UI Symbol, which ends up failing, not exactly sure why that is - then fallback to last resort font Arial. 

Comment 9 by phistuck@gmail.com, Sep 23 2016

Here are screenshots of the Google Plus page (that started all of this) in Chrome and Internet Explorer 11.

There are basically two issues here. One - Chrome renders a square instead of the second character when the third character follows. Two - when pressing backspace to delete the third character, it removes two characters instead of one.
Will resolving the first resolve the second?
chrome-google-plus-unicode-characters-issue.png
58.2 KB View Download

Comment 10 by phistuck@gmail.com, Sep 23 2016

I attached the wrong screenshot. Here it is.
internet-explorer-11-google-plus-unicode-characters-issue.png
62.0 KB View Download

Comment 11 by e...@chromium.org, Nov 30 2017

Still repros on trunk.

Sign in to add a comment