Describe the bug
While testing #2458 I once managed to trigger a race-condition bug. Did the same thing multiple times later and never reproduced it again. But this isn't the first time I've seen it happen. The symptom is that when opening or closing a dialog, sometimes a popup can show up with Error: Timed out waiting for popstate event after history change "BackHandler-picture-viewer-dialog". (The precise history change obviously depends on what you were doing at the time)
To Reproduce
Steps to reproduce the behavior:
- Go to an entry with a picture
- Click on the picture to see "fullscreen" view (not actually fullscreen if you're on desktop, it's limited to the picture's native resolution)
- Click on the three-dots menu
- Click on edit
- MOST of the time it works, sometimes you get "Timed out waiting for popstate event"
Expected behavior
Switching between two dialogs should always succeed without a race condition.
Describe the bug
While testing #2458 I once managed to trigger a race-condition bug. Did the same thing multiple times later and never reproduced it again. But this isn't the first time I've seen it happen. The symptom is that when opening or closing a dialog, sometimes a popup can show up with
Error: Timed out waiting for popstate event after history change "BackHandler-picture-viewer-dialog".(The precise history change obviously depends on what you were doing at the time)To Reproduce
Steps to reproduce the behavior:
Expected behavior
Switching between two dialogs should always succeed without a race condition.