S051: WIP tab audio from is-playing-audio, site mute through WebKit, media-audio smoke

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-14 08:07:37 -06:00
commit 28efd283e5
2 changed files with 74 additions and 12 deletions

View file

@ -579,6 +579,8 @@ impl Engine {
let hub = self.hub.clone();
web.connect_favicon_notify(move |_| hub.push(Event::Favicon(id)));
let hub = self.hub.clone();
web.connect_is_playing_audio_notify(move |w| hub.push(Event::Audio(id, w.is_playing_audio())));
let hub = self.hub.clone();
let provisional = Rc::new(std::cell::Cell::new(false));
let tab_loading = provisional.clone();
web.connect_load_changed(move |w, event| {

View file

@ -87,6 +87,8 @@ pub enum Event {
Page(ViewId, PageMessage),
/// Find in page: how many matches the last search or step found (0: none).
Find(ViewId, u32),
/// WebKit's `is-playing-audio` changed.
Audio(ViewId, bool),
/// A cookie was added, changed or deleted.
CookiesChanged,
/// What a host keeps (`Engine::site_data`).