github / github/app

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

Ouverte
#3,184 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
triage
Langage dominant
Aucune donnée de langage
Étoiles
2.1k
Forks
153
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### 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_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Domaine
frontend
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.