apple: TestWebMuteSuspendsMedia aborts the test process removing observers it never added
メンテナーはふだん 1 日以内に返信
評価
この 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 ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nsgo-dev/nsgo のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
macos: TestInputMethodCommitAndSinkCandidates times out waiting for focus after other window tests対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2157 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
linux: a fitted panel realized before its first fit keeps its options size対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2096 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
base: Radio has no LabelFunc or HintFunc, unlike Checkbox and Button対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2059 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
nsgotest: no step clicks a tray icon, so a tray's menu and panel cannot be tested対応中かも @houko が今日担当しました。 オープン
nsgo-dev/nsgo#2051 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
peterstace/simplefeatures#726 ·
-
area: import bug go good first issue priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
fukubie/StockLlama#69 ·
-
enhancement help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
cloverworks-hq/rumpty-cli#95 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
pulseaiclub/phi#615 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信