docs(browser): add permissions guide and improve documentation

- Create comprehensive PERMISSIONS.md explaining all permissions
- Document empty host_permissions array and privacy benefits
- Add session cookie security best practices to BrowserExtension.md
- Clarify future use case for content script message handler
- Improve error message clarity for JSON parsing failures

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-12 03:11:33 +00:00
parent 142c19ef50
commit 0a3fe11f66
4 changed files with 158 additions and 5 deletions
+5 -3
View File
@@ -1,9 +1,11 @@
// Content script for DocuElevate browser extension
// This script runs on all web pages to detect file URLs
// and enable communication between page content and the extension
// This script runs on all web pages to enable communication
// between page content and the extension
// Listen for messages from the popup (reserved for future use)
// Message handler reserved for future functionality
// Future use case: Extract additional page metadata or interact with page content
// Currently not used - can be removed if not needed
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
if (message.type === 'GET_PAGE_INFO') {
// Return information about the current page