Change information
Commit message:
Clarify Service Worker lifetime for Payment Handlers in FAQ
The Service Worker Security FAQ currently states standard termination policies (e.g., 30-second idle timeout) but does not reflect the exception for Payment Handlers.
To address timeouts in payment flows longer than 5 minutes (an issue raised by partners like Google Pay), http://crrev.com/c/7226437 was implemented to keep a Payment Handler's Service Worker active as long as its payment window is open.
During the review of that CL, a concern was raised about potential abuse of this extended lifetime. The security team was consulted and concluded that this does not introduce a significant new attack surface. Their rationale was that the worker's activity is tied to a user-visible window, which users are unlikely to keep open indefinitely, making the risk negligible.
This CL updates the FAQ to make this exception and its security rationale explicit, aligning the documentation with the implemented and security-reviewed behavior.
Bug: 41438822
Change-Id: Id30ea79d77a8f928c4b91402ac2f3a58cf902937
Cr-Commit-Position: refs/heads/main@{#1568853}
Files:
- M docs/security/service-worker-security-faq.md
Change size: XS
Delta: 1 file changed, 5 insertions(+), 0 deletions(-)
Branch: refs/heads/main
Submit Requirements:
Code-Review: +1 by Shunya Shishido