Page MenuHomePhabricator

Bridge enabled links: multi-click opens bridge repeatedly
Open, Needs TriagePublic

Description

Actual behavior

GIVEN I am on an article page with bridge-enabled links
WHEN  I click a bridge-enabled link repeatedly (real quick) on an under-powered device
THEN  multiple instances of bridge open "on top of each other"

Bildschirmfoto von 2020-03-17 11-42-45.png (1×1 px, 387 KB)

Expected behavior

GIVEN I am on an article page with bridge-enabled links
WHEN  I click a bridge-enabled link repeatedly on any device
THEN  only one bridge instance opens

Notes

Does not usually happen on my device but happened during a resource-intense video hangout and can reliably be reproduced using chrome's CPU throttling (6x).
We tried to address this before (isOpening in init.ts) but it does not seem to cut it. Maybe we have to go with the once option instead and reattach the event listener later.