[go: up one dir, main page]

Page MenuHomePhabricator

User menu in Vector 2022's Sticky Header doesnt close properly in certain cases
Closed, ResolvedPublic0 Estimated Story PointsBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Make the sticky header show
  • Open the user menu
  • Click outside of the user menu, or press tab until the focus leaves the user menu

What happens?:
The user menu stays open

What should have happened instead?:
It should close, similar to all other dropdowns in Vector

Developer notes

We use dropdownMenu.js to progressively enhance dropdowns to have this functionality. The user menu dropdown is added via JS afterwards, so it never gets enhanced

QA Results - Beta

ACStatusDetails
1โœ…T336965#9503713

QA Results - Prod (wmf.17)

ACStatusDetails
1โŒT336965#9540452

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptMay 18 2023, 6:47 PM
LGoto triaged this task as Medium priority.May 25 2023, 5:25 PM
LGoto lowered the priority of this task from Medium to Low.
ovasileva set the point value for this task to 3.Jul 11 2023, 4:50 PM
ovasileva subscribed.
ovasileva changed the point value for this task from 3 to 1.Jul 11 2023, 4:56 PM
Jdlrobson subscribed.

This appears to be added in bindDismissOnFocusLoss in resources/src/mediawiki.page.ready/checkboxHack.js - when discussing in estimation we noticed it's not called on the sticky header after it's built.

I noticed a bug that I assume could have the same origin. If the sticky header user menu is still open when you scroll up to the top of the page, you no longer see that dropdown/popup menu but all its links are still clickable. As an effect, you can e.g. find yourself on the preferences page when you tried to open the languages menu.

Change 991646 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Deactivate sticky header menus and search when sticky header is hidden

https://gerrit.wikimedia.org/r/991646

bwang changed the task status from Open to Stalled.Jan 29 2024, 6:50 PM
bwang changed the point value for this task from 1 to 0.

Change 991646 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Deactivate sticky header menus and search when sticky header is hidden

https://gerrit.wikimedia.org/r/991646

Jdlrobson changed the task status from Stalled to Open.Jan 30 2024, 1:06 AM
Jdlrobson assigned this task to Edtadros.
Edtadros subscribed.

Test Result - Beta

Status: โœ… PASS
Environment: beta
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

Make the sticky header show
Open the user menu
Click outside of the user menu, or press tab until the focus leaves the user menu
โœ… AC1: The user menu should close.

screenshot 222.mov.gif (846ร—1 px, 731 KB)

@Jdlrobson Hello! <s>Are you sure this is the same task? :) It seems to me that destroying an object when you click outside it and destroying an object when you hide the sticky header are slightly different things.</s> I have found the right task :)

Test Result - Prod

Status: โŒ
Environment: enwiki
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

Make the sticky header show
Open the user menu
Click outside of the user menu, or press tab until the focus leaves the user menu
โŒ AC1: The user menu should close.

screenshot 225.mov.gif (1ร—644 px, 907 KB)

@bwang could you take a look? Thanks in advance!

Hm weird, it seems to work for me on beta but not in prod. I need to investigate more why

I think I worked this out - https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/994145 got merged on January 30th so it should only be riding the train now?

The new patch was not associated with this ticket: https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/994145
so we should test it again as part of wmf.17

Does this make sense?

Since the QA passed in beta cluster, it will be QAed in production again for wmf.17

Test Result - Prod

Status: โŒ FAIL
Environment: enwiki
OS: macOS Sonoma
Browser: Chrome
Device: MBA
Emulated Device:NA

Test Artifact(s):

QA Steps

Make the sticky header show
Open the user menu
Click outside of the user menu, or press tab until the focus leaves the user menu
โŒ AC1: The user menu should close.
This works when you click out of the menu

screenshot 248.mov.gif (1ร—820 px, 775 KB)

This only works when you tab out of the menu when at or above 1400px
screenshot 249.mov.gif (1ร—820 px, 977 KB)

Edtadros updated the task description. (Show Details)