A copy the browser refuses shows "Unknown error" and is logged as critical

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp, wasm
領域
frontend

調査の方向性

Start with ClientExceptionHandlerBase, which turns a clipboard refusal from Butil's Clipboard.WriteText into the generic unknown-error dialog and a Critical log entry. The copy call sites are the two-factor key and recovery codes on Settings, the diagnostic modal and report, Operations, and the landing page share button. Done when a refused copy shows a message asking the user to select the text manually and is not logged as critical, and the behaviour is unchanged in Development.

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

説明

The template's copy buttons call Butil's Clipboard.WriteText and let a failure reach WrapHandled: the two-factor key and the recovery codes on the Settings page, the diagnostic modal and report, the Operations page, and the landing page's share button and copied texts. A browser may refuse a clipboard write, for example in an embedded web view, on a page that isn't a secure context, or in a frame without the clipboard-write permission. ClientExceptionHandlerBase then treats the refusal as an unexpected error: outside Development the user gets a dialog saying an unknown error happened, and the log gets a Critical entry for what is the browser's choice rather than a defect.

A refused copy should tell the user the text couldn't be copied, so they can select it themselves, and shouldn't be logged as critical.

主要言語
C#
スター
1.4k
フォーク
264
平均マージ
7時間 38分
マージ済み PR(30日)
544

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

bitfoundation/bitplatform のほかの issue

bitfoundation/bitplatform の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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