Skip to content

Intermittent "Timed out waiting for popstate event" #2480

Description

@rmunn

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:

  1. Go to an entry with a picture
  2. 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)
  3. Click on the three-dots menu
  4. Click on edit
  5. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions