Page 1 of 1

Tab title truncated between surrogate pair

Posted: 2018-06-16, 12:48
by Keiji
This YouTube video title gets cut off with a "D83D" character just before the ... in the tab title:

Image

I was curious if it depends on display scaling, but apparently not - here's how it appears on 200% display scaling:

Image

I'm not sure how PM's string handling or abbreviation algorithm works but something isn't right here! :)

Using latest PM version - 27.9.3 (64-bit)

Re: Tab title truncated between surrogate pair

Posted: 2018-06-16, 22:17
by yami_
I can confirm it:
utf16_4byte.png
If the tab title must be cut after a 4 byte utf16 char, then only the high-surrogate code point of this char will be displayed.

Re: Tab title truncated between surrogate pair

Posted: 2018-07-01, 10:13
by yami_
I did some more tests today, here is what I discovered:
  • This issue affects every XUL element with crop attribute set
  • This seems to be fixed by UXP

Re: Tab title truncated between surrogate pair

Posted: 2018-07-06, 19:15
by Keiji
yami_ wrote:
  • This seems to be fixed by UXP
Ooh, excellent, so we can expect it to be fixed in the next major release then.

Re: Tab title truncated between surrogate pair

Posted: 2018-07-06, 20:39
by Moonchild
Keiji wrote:
yami_ wrote:
  • This seems to be fixed by UXP
Ooh, excellent, so we can expect it to be fixed in the next major release then.
indeed!