Page MenuHomePhabricator

Revision Details Pop-up sometimes in wrong place
Open, Needs TriagePublicBUG REPORT

Description

What is the problem?

In some circumstances the Revision Details Pop-up does not appear next to the word you just clicked on. It appears at the top of the page instead.

I have only seen it happen so far with two articles (the one in the repro steps and https://en.wikipedia.org/wiki/The_Pizza_Underground in the screenshot).

I have attempted to reproduce this with other UI widget that use OOUI's PopupWidget (e.g. VisualEditors table popup), but could not.

Steps to reproduce problem
  1. Go to https://en.wikipedia.org/wiki/Charles_Hamya
  2. Open WWT
  3. Under See also, click List of wealthiest people in Uganda

Expected behavior: Pop-up appears just above where you clicked
Observed behavior: Pop-up appears above Background and education

Environment

Browser: Chromium 73 on Debian Stretch, Chrome 77 on Windows 10, Edge 18 on Windows 10, Firefox 69 on Windows 10.
Version of WWT: Git commit 997016b08ed367e0a9bd47865bcb5989b8de99ee

Screenshots (if applicable):

chrome_revision_popup_bug.png (1×1 px, 416 KB)

Event Timeline

@dom_walden:

I was unable to reproduce this bug for https://en.wikipedia.org/wiki/Charles_Hamya (see screenshot below). I still think this is something we should investigate, even if I can't personally reproduce it, but it's interesting that it didn't come up for me (using Chrome 76.0.3809.132 on macOS).

Screen Shot 2019-09-17 at 11.46.09 AM.png (709×1 px, 205 KB)

I couldn't repro either, Chromium 77 on Ubuntu.

Could the "Wiki Loves Monument" geonotice have something to do with it? I don't see why it would, but that is one thing you have that Ilana and I do not.

Works correctly for me as well. Chrome 77 on Mac.

Screen Shot 2019-09-17 at 5.06.18 PM.png (927×784 px, 174 KB)

Doesn't seem to be related to Wiki Loves Monuments either (since I have it & can't reproduce it):

Screen Shot 2019-09-17 at 5.34.29 PM.png (740×1 px, 256 KB)

ifried renamed this task from Revision Details Pop-up sometimes in wrong place to Revision Details Pop-up sometimes in wrong place [small].Sep 17 2019, 11:33 PM
ifried renamed this task from Revision Details Pop-up sometimes in wrong place [small] to Revision Details Pop-up sometimes in wrong place .

@dom_walden Is this still an issue? I'm unable to reproduce the issue, but maybe you're still seeing it. Let me know. Thanks!

@dom_walden Is this still an issue? I'm unable to reproduce the issue, but maybe you're still seeing it. Let me know. Thanks!

I have not been able to reproduce it yet, but I wouldn't like to bet that it will never come back :)

It might have been fixed by T241004.

Okay, thanks, Dom. I'll keep it in the 'to be estimated/discussed' column for now, and we'll check in again at a later time to see if the behavior resurfaces.

Also, @Mooeypoo, do you think this issue was fixed in the process of the refactor work in T241004? Thanks!

Okay, thanks, Dom. I'll keep it in the 'to be estimated/discussed' column for now, and we'll check in again at a later time to see if the behavior resurfaces.

Also, @Mooeypoo, do you think this issue was fixed in the process of the refactor work in T241004? Thanks!

My professional opinion is a solid schmaybe.

The way this bug looks, this seems to suggest that there was some race condition that prevented the $floatableContainer from being placed in time. In that case, it's extremely likely that the refactor has fixed it. However, there's a slight chance that the race condition was due to an error in loading order. I doubt that this is the case because it sounds like we'd be getting that bug a lot more often if that was the case, but coming off the trail of the previous mw.Api() loading bug, I am erring on the side of caution.

I think it's safe that if this can't be reproduced, it's good to close this bug; if it comes back, it's an easy one to spot, we'll reopen it and have an investigation. For now, looks like the refactor may have fixed it by organizing the order of attachment to the DOM + $floatableContainer, so I'll stick with that.