Closed Bug 1913960 Opened 1 year ago Closed 7 months ago

tiktok.com - Can't comment on live stream

Categories

(Web Compatibility :: Site Reports, defect, P1)

Firefox 129
Desktop
Windows 11

Tracking

(Webcompat Priority:P1, Webcompat Score:8)

VERIFIED FIXED
Webcompat Priority P1
Webcompat Score 8

People

(Reporter: railioaie, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: webcompat:platform-bug, webcompat:site-report, Whiteboard: [webcompat-source:product][webcompat:sightline])

User Story

platform:windows,mac,linux,android
impact:feature-broken
configuration:general
affects:all
branch:release
diagnosis-team:webcompat

Attachments

(2 files)

Environment:
Operating system: Windows 11
Firefox version: Firefox 129.0.1 (release)

Preconditions:

  • Clean profile

Steps to reproduce:

  1. Navigate to: https://www.tiktok.com/@rhobertta_azenberss/live?enter_from_merge=others_homepage&enter_method=others_photo
  2. Click on a live stream
  3. Write a comment

Expected Behavior:
The comment Is written as expected

Actual Behavior:
Unable to comment

Notes:

  • Reproducible on the latest Firefox Release and Nightly
  • Reproducible regardless of the ETP setting
  • Works as expected using Chrome

Created from webcompat-user-report:a647ef5b-3aab-4e3b-87aa-5d30fb20870d

Ksenia, can you check if this is related to the other TikTok issue, and if we have a contact?

Severity: -- → S2
User Story: (updated)
Flags: needinfo?(kberezina)
Priority: -- → P1
User Story: (updated)

I picked a random Live stream on https://www.tiktok.com/live and after logging in in Firefox, can't seem to focus or type in the comment field (The one with "Say something nice" placeholder). It allows to pick an emoji though and can only send that. I can focus in the field in Chrome and send a text comment.

Hi Radu, wonder if you're experiencing the same behaviour?

Flags: needinfo?(railioaie)

They are using contenteditable="plaintext-only" for the field:

<div contenteditable="plaintext-only" maxlength="150" placeholder="Say something nice" class="css-1kvtqrg-DivEditor e1ciaho81"></div>

I can comment if I remove the attribute. So this depends on bug1291467 (provided that the STR in comment 1 is about this specific field).

Depends on: 1896891
Flags: needinfo?(kberezina)

HI Ksenia, Yes I have the same behaviour for this issue as you described.

Flags: needinfo?(railioaie)

Thanks for checking!

Could you check whether white-space style of the editable text node parent is pre-* or not?

If pre-*, we may need to fix bug 1921180 for supporting this. If normal, it might require a hack. Chrome forcibly compute the value to pre-wrap or pre.

(In reply to Masayuki Nakano [:masayuki] (he/him)(JST, +0900) from comment #6)

Could you check whether white-space style of the editable text node parent is pre-* or not?

If pre-*, we may need to fix bug 1921180 for supporting this. If normal, it might require a hack. Chrome forcibly compute the value to pre-wrap or pre.

I've just checked, the parent doesn't have any white-space styling set, so I think it's normal in this case?

Flags: needinfo?(masayuki)

Thank you. Then, if it's aware of Safari, <br> elements must be handled.

Flags: needinfo?(masayuki)

Next nightly build starts to support basic features of contenteditable=plaintext-only if you enable dom.element.contenteditable.plaintext-only.enabled from about:config (it needs to be enabled before loading the page) because bug 1921162 will support inserting line break instead of paragraph. So, I'd be happy if somebody would check whether it works in nightly builds especially about typing multi-line comment if it's available.

I've tried leaving a comment with dom.element.contenteditable.plaintext-only.enabled set to true and it works as expected for single line.

For multi-line, I don't think the site allows it for this specific field. When I type the first row and try to move to the next line with Shift+Return (on MacOS), the message just get submitted (same with just hitting Return). Also when copying over multi-line text, it appears as multi-line in the field, but on submission it becomes one line.

So something like:

hi
looks cool!

After submission becomes:
hilooks cool (in Firefox)
hi looks cool (in Chrome)
Interestingly, if I reload the page in Chrome, the message appears as hilooks cool in the chat, so it starts matching Firefox.

Despite this difference, overall, it looks like the field is designed to be used for single line messages.

Thank you for the test! Then, we need to fix bug 1921180 before the final shipping because Element.textContent does not convert <br> s to \n. On the other hand, according to comment 7, they don't specify white-space:pre-* to make \ns preformatted. However, according to 10, they expect \ns even though they don't make them preformatted. Therefore, their code depends on the hack for Chrome which overrides white-space style. So, it seems that we need some interventions for tiktok.com anyway.

Depends on: 1921180
Whiteboard: [webcompat-source:product] → [webcompat-source:product][webcompat:sightline]
Webcompat Priority: --- → P1
Webcompat Score: --- → 8

Appears fixed, probably by bug 1921180

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED

Verified as FIXED using the RC Build

Tested with:

Browser / Version: Firefox 137.0-candidate build 1
Operating System: Windows 10 PRO x64

Status: RESOLVED → VERIFIED
Attached image RC build fixed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: