This change is mainly motivated by the fact that iterating in a loop makes profiles easier to read and understand where time was spent in traversal callback. Additionally, using a loop reduces function call overhead and ensures constant stack usage.
as
SECPxxxr1Signature
verify_cast
nagivator.serviceWorker.getRegistration()