mirror of
https://github.com/floccusaddon/floccus.git
synced 2026-04-25 14:16:12 +03:00
[PR #1848] [MERGED] script to override manifest.json for Firefox and prevent accidental GIT commits #1942
Labels
No labels
browser-specific
bug
correctness issues
enhancement
feature: Google Drive
feature: Linkwarden
feature: git
feature: nextcloud-bookmarks
feature: tabs
feature: webdav
help wanted
native-app
priority: high
priority: low
priority: medium
pull-request
question
question
stale
upstream
waiting for more information
wontfix
🙁 Not following issue template
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/floccus#1942
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/floccusaddon/floccus/pull/1848
Author: @peter-lyons-kehl
Created: 1/27/2025
Status: ✅ Merged
Merged: 1/27/2025
Merged by: @marcelklehr
Base:
develop← Head:manifest-firefox-override📝 Commits (1)
1341d31For local development for Firefox.📊 Changes
1 file changed (+30 additions, -0 deletions)
View changed files
➕
manifest-firefox-override.sh(+30 -0)📄 Description
Thank you for Floccus. Hoping to contribute more.
You as an author of Floccus may have some more advanced setup that avoids the below problem, but for most developers (even ones with experience of developing Firefox extensions), the problem described below is a big time waster/accident maker. Hoping the workaround script is clear.
If you know of any more mistake/me-the-local-idiot-proof setup with less work or more reproducible/automated, I'm open to alternatives.
(Also in
manifest-firefox-override.sh:)Local development workaround for Firefox.
Once you build this extension (with
npm installandnpm run build, as per <README.md>), to load it, visit Firefox special URL about:debugging#/runtime/this-firefox. Click button "Load Temporary Add-on..." That button shows a file/folder picker.Problem: The file picker does allow you to select
manifest.firefox.json, BUT it will not load it. It loadsmanifest.json(from the directory where you selectedmanifest.firefox.json) instead. (Indeed, a Firefox defect - but life is too short for us to waste it on Mozilla's bugzilla....)Firefox doesn't allow to use symlinks to workaround the above problem (see https://bugzilla.mozilla.org/show_bug.cgi?id=803999 - symlinks are a security problem).
Workaround: This script
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.