mirror of
https://github.com/lexmount/moli.git
synced 2026-11-21 08:02:59 +00:00
Select the live Document URL, following srcdoc containers and rejecting opaque client origins, before applying the effective referrer policy. Resolve these values before both service-worker interception and native network dispatch, without changing the public Request or the origin and cookie initiator. Use HTML's about:srcdoc URL match so javascript replacements remain srcdoc Documents. Preserve the replaced Document's current delivered policies, including removed meta elements, instead of reverting to response-only state. Cover network headers across two origins, author base URLs, history changes, about:blank boundaries, javascript replacements, opaque srcdoc Documents, and service-worker request metadata. Keep Fetch resource classification when attaching policy metadata, and isolate memory-cache entries by their resolved Referer so policy changes cannot reuse a response selected for a different referrer.