Tab title truncated between surrogate pair

The place to report Pale Moon specific bugs on the Windows operating system.

Moderator: satrow

Keiji
Moongazer
Moongazer
Posts: 7
Joined: Wed, 27 Sep 2017, 19:31

Tab title truncated between surrogate pair

Unread postby Keiji » Sat, 16 Jun 2018, 12:48

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)
Last edited by Keiji on Sat, 16 Jun 2018, 12:49, edited 1 time in total.

yami_
Fanatic
Fanatic
Posts: 156
Joined: Thu, 26 Apr 2018, 11:05

Re: Tab title truncated between surrogate pair

Unread postby yami_ » Sat, 16 Jun 2018, 22:17

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.
cat came back from Berkeley waving flags
- rob pike

yami_
Fanatic
Fanatic
Posts: 156
Joined: Thu, 26 Apr 2018, 11:05

Re: Tab title truncated between surrogate pair

Unread postby yami_ » Sun, 01 Jul 2018, 10:13

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
cat came back from Berkeley waving flags
- rob pike

Keiji
Moongazer
Moongazer
Posts: 7
Joined: Wed, 27 Sep 2017, 19:31

Re: Tab title truncated between surrogate pair

Unread postby Keiji » Fri, 06 Jul 2018, 19:15

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.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 22155
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

Re: Tab title truncated between surrogate pair

Unread postby Moonchild » Fri, 06 Jul 2018, 20:39

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!
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne


Return to “Bug reports (Windows)”

Who is online

Users browsing this forum: No registered users and 7 guests