Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Mobile Browser page has no way to paste from the phone's clipboard #19647

Closedspiky02plateau(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • I searched existing issues and did not find a duplicate. PR #17485 addressed this together with copy and password fill and was closed as too large, with a request to keep the clipboard failure in an issue. This is that issue, limited to paste.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/mobile

Steps to reproduce

  1. On iOS, open a thread's Browser page and take control.
  2. Open a site with a login form and tap the username field. The keyboard comes up.
  3. Copy some text in another app, come back, and try to paste it into the field.

Expected behavior

The copied text can be pasted into the page field, as in any phone browser.

Actual behavior

There is no way to paste with touch. A long press shows no Paste callout, and the keyboard has no paste key. Typing reaches the field, so the only option is to type the text out by hand. That rules out pasting a username, a token, or a generated password.

Root cause

The page is a stream drawn on a canvas, and typing goes through a hidden textarea (preview-stream.browser.ts). Long presses on the canvas are suppressed on purpose (contextmenu gets preventDefault), and the hidden textarea can't be tapped, so iOS never shows its edit menu. A hardware-keyboard Cmd/Ctrl+V does work, because that paste lands in the hidden textarea and is forwarded as text input.

Impact

Major degradation or frequent failure

Version or commit

f87dd14da (main)

Environment

T3 Code mobile on iOS, Browser page backed by the environment's browser.

Workaround

Type the text by hand, or use a hardware keyboard with Cmd/Ctrl+V.

  1. juliusmarminge closed this

Sign in to join this conversation.