apple: TestWebMuteSuspendsMedia aborts the test process removing observers it never added

Aperta
#2,053 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@oneo-me ci sta già lavorando.

Dal 22/11/2026.

  • #2055 di @oneo-me — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

What happens

TestWebMuteSuspendsMedia (internal/platform/apple/webmute_test.go) aborts the whole apple test process on macOS:

*** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <(null) 0x0> for the key path "URL" from <WKWebView ...> because it is not registered as an observer.'

The test makes its own WKWebView, to allow autoplay, and marks the Web as made, so Web.make never runs: no handler exists and no key-value observer is added. Its cleanup then calls web.Close(), whose close removes the observers make adds, for a nil handler, which WebKit raises on.

Web views the backends make always add those observers, so apps are not affected; but the crash fails the Apple CI job of unrelated pull requests whenever the test runs, and stops every test after it in the package.

Expected

The test lets go of the view it made itself without Web.close, and passes.

Lingua principale
Go
Stelle
684
Fork
41
Merge medio
8h 8m
PR unite (30g)
911

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nsgo-dev/nsgo

Tutte le issue di nsgo-dev/nsgo

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.