Skip to content

Opening multiple tabs may prevent proper syncing of channel changes #3906

@bjester

Description

@bjester

Observed behavior

Users who open multiple tabs of Studio may encounter situations where they're missing the 'Saving...' indicator in the edit modal, and may later find content they've uploaded no longer exists.

Expected behavior

Content doesn't disappear

User-facing consequences

Lost time and energy that was put into content that disappears

Errors and logs

Uncaught (in promise) Error: BroadcastChannel already has a leader-elector
    createLeaderElection leader-election.js:380
    runElection serverSync.js:397
leader-election.js:380:10

Additional information

Screenshot from 2023-01-11 13-13-03

Reproduction steps

  1. To reproduce this issue, use a virtualbox VM with:
  • Windows 10 OS
  • 1 CPU
  • 4096 MB of memory
  • Firefox 108
  1. Open a Studio channel in Firefox
  2. Open the developer console
  3. Right-click on the Firefox tab, and select 'Duplicate this tab'
  4. Open the developer console on the duplicate tab
  5. Refresh either tab until error appears, if it hasn't already

Usage Details

  • Browser: Firefox 108 (Chrome likely too) on Windows
  • URL: channel editing

Metadata

Metadata

Assignees

Labels

P0 - criticalPriority: Release blocker or regression

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions