macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reached

オープン 初心者向け
#1,667 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
electron, typescript
領域
desktop-dev

調査の方向性

electron/messageBox.ts の showSaveDialogOver(L44-56)から始め、#743 に関するコメントを読んで、オーナーウィンドウがパネルをシートに変える仕組みを確認する。次に electron/ipc/handlers.ts(L1990-1994)の exportDiagnosticFile と比較する。これはオーナーなしで dialog.showSaveDialog を呼び出している。メニューとトレイのエントリポイントがそのハンドラーにどう到達するかを追い、フォーカスされたウィンドウをオーナーとして渡せるようにする。診断パネルがエディターウィンドウに接続され、Cmd+Tab 後も前面に残れば完了。検証には macOS ビルドが必要。

索引モデルが issue の本文から書いたものです。

説明

bug

On macOS, the save panel opened by Save Diagnostics ends up under the editor window after an app switch. It can then be neither seen nor clicked.

Steps

  1. In the editor, wordmark menu → Save Diagnostics. The "Save Diagnostic File" panel opens in front.
  2. Bring another app to the front (Safari here), then come back with Cmd+Tab.

Expected: the panel stays in front of the editor, or is attached to it as a sheet.

Actual

  • The editor comes back above the panel. The window list holds the panel under the editor, invisible and out of the mouse's reach.
  • Return does nothing, since the panel is not key. The Window menu offers only Minimize, Zoom and Bring All to Front.
  • The save could only be finished through accessibility (AXPress on its Save button). The bundle was then written correctly.

Seen on 2.4.0-rc.1 (DMG), macOS 27.0.1, Mac mini M1.

Why

exportDiagnosticFile calls dialog.showSaveDialog with no owner window (handlers.ts#L1990-L1994). The other save panels go through showSaveDialogOver (messageBox.ts#L44-L56). Its comment describes exactly this trap (#743): unowned, a macOS save panel is a free-floating window that a click sends behind the editor; owned, it is a sheet on that window.

Fix direction

Open the diagnostics panel with showSaveDialogOver, owned by the window the request came from. The menu and tray entry points can pass the focused window.

主要言語
TypeScript
スター
3.7k
フォーク
231
平均マージ
1日 8時間
マージ済み PR(30日)
150

環境構築

はじめの一歩

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

getopenscreen/openscreen のほかの issue

getopenscreen/openscreen の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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