Commit c2dd50c
committed
Bug: tab-preview-panel fires popupshown twice but popuphidden once
When hovering Tab A then quickly moving to Tab B while Tab A's
preview panel is still in the "showing" state, moveToAnchor()
re-triggers the popup lifecycle. The popupshowing listener from
Tab A's activation is still registered, causing a duplicate
popupshown event. Only one popuphidden fires when the panel
finally closes.
This causes Firefox's own sidebar _hoverBlockerCount to get stuck
(2 increments, 1 decrement), permanently preventing sidebar
autohide from working.
Fix: remove the stale popupshowing listener when re-activating
on a different tab while the panel is in "showing" or "open" state.1 parent 6925ce3 commit c2dd50c
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
396 | 400 | | |
397 | 401 | | |
398 | 402 | | |
| |||
0 commit comments