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

オープン
#2,053 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@oneo-me がすでに取り組んでいます。

2026年11月22日 から。

  • #2055 @oneo-me による — オープン

評価

この issue はまだ評価されていません。

説明

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.

主要言語
Go
スター
684
フォーク
41
平均マージ
8時間 8分
マージ済み PR(30日)
911

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nsgo-dev/nsgo のほかの issue

nsgo-dev/nsgo の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。