Firefox version of the browser extension

未關閉
#17 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
30/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
rust, tauri
領域
desktop, web-dev

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
Rust
星號
7
分支
1
平均合併
6 小時 34 分鐘
30 天內合併 PR
2

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CodingRule/Hidely 的其他 Issue

查看 CodingRule/Hidely 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。