Skip to content

Fix/web audio resume after reopen - #225

Merged
m-abs merged 2 commits into
Notalib:mainfrom
ddfreiling:fix/web-audio-resume-after-reopen
Sep 11, 2026
Merged

m-abs merged 2 commits into
Notalib:mainfrom
ddfreiling:fix/web-audio-resume-after-reopen

Conversation

@ddfreiling

Copy link
Copy Markdown
Member

No description provided.

ddfreiling and others added 2 commits September 10, 2026 15:34
audioEnable fired its restore seek without awaiting it, so the promise
resolved immediately and Dart's follow-up play() landed while upstream
AudioNavigator.go() still had _isNavigating true. Readium's DOM "play"
handler is guarded by that flag, so the event was swallowed: audio ran
but position polling never restarted and the player reported paused
until the track ended.

Await the seek in both "navigator already exists" branches so
audioEnable resolves only once navigation has finished.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
flutter drive hardcodes the WebDriver capability
goog:loggingPrefs.browser to INFO and offers no flag to change it, so
chromedriver discards every console.debug entry before the test driver
reads the browser log. A log.debug added while investigating a failure
therefore looks like code that never ran.

Detect navigator.webdriver and route debug output through console.log
under WebDriver, keeping console.debug (and the DevTools "Verbose"
filter) in a normal browser.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

@m-abs m-abs left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@m-abs
m-abs merged commit 9917009 into Notalib:main Sep 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants