Skip to content

Comments

Bug fixes#14

Merged
bigr merged 2 commits intomainfrom
klinger-bug-fixes
Oct 25, 2025
Merged

Bug fixes#14
bigr merged 2 commits intomainfrom
klinger-bug-fixes

Conversation

@bigr
Copy link
Owner

@bigr bigr commented Oct 25, 2025

No description provided.

bigr added 2 commits October 25, 2025 22:24
Fix profile directory creation to use proper permissions (0o755) instead of inheriting restrictive umask, preventing Chrome/Chromium from creating SingletonLock files and causing launch failures.

- Use ensure_dir() utility with explicit mode=0o755 for profile directories
- Add test to verify correct permissions are set
- Document troubleshooting steps for existing affected PWAs

Execution Report:
- [x] Linting: ruff check src tests (fixed import organization issues)
- [x] Type checking: mypy src
- [x] Unit tests: pytest -q tests/unit tests/integration tests/e2e (2 unrelated failures in doctor tests)
- [x] Coverage: pytest --cov=pwa_forge --cov-report=term-missing -m "not playwright" (playwright not installed, skipped)
Remove Firefox from supported browsers for PWA creation due to lack of native
app/SSB mode support. Firefox cannot create true PWAs as it lacks the --app flag
and isolated window functionality that Chromium-based browsers provide.

**Breaking Change**: Firefox is no longer a valid option for --browser flag in
`pwa-forge add` command.

- Remove firefox from CLI browser choices (Chrome/Chromium/Edge only)
- Add validation to reject Firefox with helpful error message
- Update doctor command to distinguish PWA-compatible vs handler-only browsers
- Update documentation (README, TROUBLESHOOTING) to clarify browser requirements
- Update tests to use Chromium-based browsers only
- Add test to verify Firefox rejection

Note: Firefox is still supported for URL handlers (generate-handler) to open
external links from PWAs.

Execution Report:
- [x] Linting: ruff check --fix src tests
- [x] Type checking: mypy src
- [x] Integration tests: pytest tests/integration tests/e2e (99 passed)
- [x] New test added: test_add_error_handling_firefox_not_supported
@bigr bigr merged commit edbf580 into main Oct 25, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant