LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-emmy
createdAtNov 23, 2026, 6:08 PM
updatedAtNov 23, 2026, 6:45 PM
githubUrlhttps://github.com/neomjs/neo/issues/22112
authorneo-gpt-emmy
commentsCount0
parentIssue21198
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 6:45 PM

Web Desktop loses the second tear-out in one held drag

Closed v14.0.0/archive-v14-0-0-chunk-7 bugaidrag-and-drop
neo-gpt-emmy
neo-gpt-emmy commented on Nov 23, 2026, 6:08 PM

Context

During the v14 Web Desktop mouse walkthrough, Tobi confirmed that returning a released native popup by dwelling over the desktop works. He found a different failure while keeping the original dialog drag held. Dock Layouts allows the same repeated crossing.

The Problem

Use Mail as a reproducible example of the dialog Tobi described.

  1. Open Mail in Web Desktop and press its dialog titlebar.
  2. Keep the mouse button down and drag outside until Mail becomes a native popup.
  3. Move back into the original desktop. Mail returns.
  4. Without releasing or pressing again, drag outside a second time.

Observed with a real mouse: Tobi’s dialog returned on the inward crossing and did not tear out on the next exit. Expected: the same app follows the pointer out again.

Independent Chrome reproduction on the Web Desktop production preview: With ordinary popup blocking and a single held left button, the first window.open() had navigator.userActivation.isActive === true and returned a handle. On the second exit, just 596 ms after the first open in one run, the same browser API was called with isActive === false and returned null. Only one popup opened, and the original task survived. A longer hold reproduced the same refusal. In a matched control, permissive popup settings admitted both windows even with inactive user activation on the second exit. The second leg used held-button CDP mouse movements without a fresh click or a Playwright action that renewed activation. Tobi’s timing and browser settings were not measured.

The Architectural Reality

WindowDragZone tracks the held gesture, an opening popup, its retirement, and the most recent pointer move. WindowTearOut owns admission and restoration of the retained body. The existing two-exit browser test exercises Notes in the basic desktop example. It waits for the popup to close and the body to reappear before the second exit. A quick, fully settled Chrome control on the Web Desktop Mail preview also passed with normal popup blocking. Preserve that control while reproducing the physical failure.

Design authority: Tobi’s 23 November manual test and the Dock held-gesture implementation. The released-popup dwell change owns the separate return after mouseup.

Release intake and implementation

Matched Chrome profiles on the same origin gave the same result for Web Desktop Mail and Workstation Audit. With ordinary popup blocking, each returned on the inward crossing and the browser refused the next open. With an explicit popup grant for that origin, both completed the second exit with a single press, without refreshing user activation. The grant was set only in a disposable profile.

The October decision removed an extra popup that remained visible in a corner. It retained repeated tear-outs and the one-time popup permission, as demonstrated by the six-crossing, three-window journey. Tobi confirmed on 23 November that this repeated gesture matters for both products. This supersedes the earlier assumption in this issue that Dock could open a second fresh native window with default popup blocking.

Preserve that lifecycle and exercise the real production Web Desktop journey under both origin policies. When the current native popup request actually returns false, Web Desktop should explain how to retry and keep the original app usable. Workstation already presents refusal guidance.

Acceptance Criteria

  • With a popup grant for the desktop origin, one physical press can drag Mail out, back inside, and out again. The selected content and task identity survive. Release outside leaves one usable popup, and returning inside before release restores the original app.
  • With ordinary popup blocking and no fresh activation, a refused second open leaves the dialog reachable. An accessible non-modal notice explains the site setting. Stale or canceled requests and transport errors must stay silent.
  • Run maintained Chromium coverage for the granted and blocked paths. Use a disposable per-origin grant, raw held-button movement and zero additional clicks between crossings. Retain the settled example and Workstation controls. Record the physical release check separately.

The launcher and released-popup native titlebar dwell have separate owners. Related: #21198, #21603, #22105.

Latest 20 open issues (37 open), open and closed desktop/tear-out searches, own assignments, prior recall and recent peer claims checked. The earlier held-drag ticket was closed after the original exit/return work. No other owner was found for this follow-up.

Emmy owns release pickup.