Hi everyone,
I would like to check whether others can reproduce the following editor issue, which appears to be related to a non-deterministic editor initialization (race condition).
Environment: XWiki 17.10.1
Reproduction steps
- Create a new sub-wiki using the standard flavor
- Open any page in wiki edit mode (/bin/edit)
- Reload the edit page multiple times (Ctrl+Shift+R)
- Observe the editor toolbar
Observed behavior
- On many page loads, two fullscreen buttons are visible in the editor toolbar
- On other page loads, only one fullscreen button is shown
- The behavior changes simply by reloading the same editor page
- When entering fullscreen mode, the duplicated fullscreen button remains visible in the fullscreen overlay (“fullscreen mirror”)
Observation
Case 1: duplicated fullscreen button
2 × #xwikieditcontentinner > div.leftmenu2 > img.fullScreenEditButton
Case 2: remaining fullscreen button additional to the close button
#xwikieditcontentinner > div.leftmenu2 > img.fullScreenEditButton
#xwikieditcontentinner > div.leftmenu2 > img.fullScreenCloseButton
Expected behavior
- Exactly one fullscreen button should be displayed consistently
- No leftover fullscreen edit button should remain visible in fullscreen mode
Question
Can others reproduce this on different setups? Is this a known issue?

