Firefox version of the browser extension

Aperta
#17 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, tauri
Ambito
desktop, web-dev

Direzione di ricerca

Start with set_browsers_connected in src-tauri/src/main.rs and the browser-process allowlist in src-tauri/src/native_host.rs, then read the existing Chrome/Edge extension docs in docs/EXTENSION.md. First decide the extension layout (shared code or extension-firefox/), which the issue asks for before any coding starts. Done means a private Firefox tab hides that window from a screen share and restores it when you switch away, verified on the test page, with Chrome and Edge unchanged.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted

Hidely for browsers works in Chrome and Edge. Firefox isn't supported yet, but it has what's needed: native messaging, the tabs and windows APIs, and window positions.

This is a bigger task, best for someone who knows WebExtensions.

What would need to change

  • Extension: Firefox supports Manifest V3, but some parts differ (for example browser_specific_settings.gecko.id instead of the key field, and background scripts instead of a service worker). One shared code base with a small build step, or a separate extension-firefox/ folder, are both fine. Say which you prefer before starting.
  • Native messaging host: Firefox reads HKCU\Software\Mozilla\NativeMessagingHosts\io.github.codingrule.hidely, and its host file uses allowed_extensions (the extension's ID) instead of allowed_origins. See set_browsers_connected in src-tauri/src/main.rs.
  • Window matching: native_host.rs only accepts known browser processes, so firefox.exe needs adding, and the position-based matching needs checking against Firefox's window coordinates and display scaling.
  • Docs: EXTENSION.md, the Settings label ("Connect Chrome and Edge"), and the README.

Done when

  • Marking a tab private in Firefox keeps that Firefox window out of a screen share, and switching away brings it back, checked on the test page.
  • Chrome and Edge behave exactly as before.
Lingua principale
Rust
Stelle
7
Fork
1
Merge medio
6h 34m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CodingRule/Hidely

Tutte le issue di CodingRule/Hidely

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.