Page MenuHomePhabricator

Manual reload message bar disappears and content can be obscured when clicking internal links or collapsing content
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

What is the problem?

When realtime preview is in manual-mode, if you click an internal link in the Preview the manual reload bar disappears.

It also happens when you collapse some content (like the Contents menu).

The whole div.ext-WikiEditor-realtimepreview-preview element appears to move upwards when I do so, obscuring the manual reload bar and sometimes other content depending on how far it has moved.

This can only be fixed by either reloading the page or pressing the reload shortcut key (alt+) on my machine).

If I do the latter, the manual reload bar does reappear but is still slightly obscured (see final screenshot).

When manual-mode is not on, clicking internal links and collapsing things appears to work fine.

Steps to reproduce problem
  1. Go to a large page and open the source editor (e.g. https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Cat&action=edit, https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Polar_bear&action=edit)
  2. Reload the page a few times until you see the reload bar (you might need to open devtools and throttle your connection)
  3. In the right-hand preview pane, click on an internal link. For example, in https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Cat&action=edit click on any of the links inside the Contents menu (shown in the first screenshot). Or, collapse the Contents menu.

Expected behavior: The right hand preview pane scrolls down to the appropriate part of the document. The reload bar still appears.
Observed behavior: The reload bar disappears.

Environment

Browser: Firefox 91, Chromium 87
Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.39.0-alpha (df2b1ee) 10:01, 26 April 2022.
Editor: WikiEditor 0.5.3 (45a8a07) 06:19, 25 April 2022.

Screenshots

Before:

manual_refresh_bar_disappear_before.png (715Γ—1 px, 164 KB)

After:

manual_refresh_bar_disappear_after.png (708Γ—1 px, 284 KB)

Position of div.ext-WikiEditor-realtimepreview-preview element:

manual_refresh_bar_disappear_html.png (662Γ—1 px, 274 KB)

After pressing reload shortcut:

manual_refresh_bar_disappear_shortcut.png (720Γ—1 px, 336 KB)

Event Timeline

dom_walden renamed this task from Manual reload message bar disappears when clicking internal link to Manual reload message bar disappears when clicking internal links or collapsing content.Apr 26 2022, 10:41 AM
dom_walden updated the task description. (Show Details)
dom_walden renamed this task from Manual reload message bar disappears when clicking internal links or collapsing content to Manual reload message bar disappears and content can be obscured when clicking internal links or collapsing content.Apr 26 2022, 10:45 AM
dom_walden updated the task description. (Show Details)

Change 815380 had a related patch set uploaded (by HMonroy; author: HMonroy):

[mediawiki/extensions/WikiEditor@master] Realtime Preview: fix display when toggling content in manual mode

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

Change 815380 merged by jenkins-bot:

[mediawiki/extensions/WikiEditor@master] Realtime Preview: fix display when toggling content in manual mode

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

I am seeing some strange behaviour on beta. When I move the horizontal resizer to the right, I can keep going indefinitely.

horizontal_resize_overflow_2.gif (768Γ—1 px, 3 MB)

I have only been able to reproduce this on beta, Vector 2022 with the left-hand menu open. I have reproduced it with the extension and the gadget.

I cannot reproduce this on plwiki or locally, so I don't know when this bug started to happen.

It seems similar to T313376, but I think it is different. @HMonroy @Samwilson

I am seeing some strange behaviour on beta. When I move the horizontal resizer to the right, I can keep going indefinitely.

…

It seems similar to T313376, but I think it is different. @HMonroy @Samwilson

I noticed the same. There's a max-width on the right panel, but the slider (or possibly something with flexbox) doesn't maintain that width within the confines of the WikiEditor viewport. I think this might be a JS issue with the slider. I'm looking into it for T313376.

Update: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiEditor/+/816013/1 seems to fix this.

I noticed the same. There's a max-width on the right panel, but the slider (or possibly something with flexbox) doesn't maintain that width within the confines of the WikiEditor viewport. I think this might be a JS issue with the slider. I'm looking into it for T313376.

Thanks. I will do more testing as part of that task.

With respect to the original bug, I haven't found any circumstance where the manual reload bar disappears or any of the Preview pane gets obscured when interacting with internal links or expand/collapse elements.

Test environment: https://en.wikipedia.beta.wmflabs.org WikiEditor 0.5.3 (9f3d4f0) 04:29, 21 July 2022 (latest tested).
Browsers: Firefox 91, Chromium 87.
Skins: Vector 2022, Vector 2010, Minerva, MonoBook, Timeless.