github / github/app

Let canvas extensions capture the exact pixels shown in a browser preview

オープン
#3,184 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
triage
主要言語
言語のデータがありません
スター
2.1k
フォーク
153
PR マージ指標
30日以内にマージされた PR はありません

説明

### Feature summary

screenshot API for canvas extensions

### What problem are you trying to solve?

Today, an extension can inspect or rebuild the page, but it cannot capture the actual rendered preview. Rebuilding it from the DOM gives different results for responsive layouts, fonts, canvas, video, WebGL, embedded content, and browser-rendered effects.

### Proposed solution

Could the canvas provide a screenshot API that:
- Captures the visible preview exactly as rendered.
- Uses the current viewport size and device pixel ratio.
- Captures compositor output instead of rebuilding the DOM.
- Returns a PNG or blob to the extension.
- Only gives an extension access to its own canvas.

I only need the visible preview, not a full-page screenshot or the surrounding Copilot UI. This would make visual annotation reliable and framework-independent.

### Workflow impact

_No response_

### Installation context

_No response_

### Additional context

_No response_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

No files, tests, or entry points are named. Start by locating the canvas extension and browser preview implementation, then trace how the visible compositor output is produced; done means a scoped API can return an exact viewport screenshot at the current size and device pixel ratio without exposing surrounding UI.

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

評価

領域
frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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