Worker Login & Subresource Integrity

Debugging guide for authentication worker issues and SRI (Subresource Integrity) verification failures.

Worker Login Flow

The Proton WebClients frontend uses service workers for authentication session management. When the Tauri WebView loads the Proton app, the service worker intercepts login requests and manages session tokens.

Common Issues

  • Service worker not registered: Clear WebView cache and reload
  • CORS blocking worker scripts: Verify proxy headers
  • Token not persisted: Check cookie jar sharing between WebView and reqwest

SRI Verification

Proton’s frontend uses SRI hashes to verify script integrity. When scripts are modified or cached improperly, SRI failures prevent the app from loading.

Debugging Steps

  1. Open DevTools → Console for SRI error messages
  2. Check Network tab for blocked scripts
  3. Clear WebView cache and service worker registrations
  4. Verify no middleware is modifying script content

ProtonDrive Linux — not affiliated with Proton AG. GitHub