Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid WebCrypto randomUUID when CMCD disabled
If CMCD is disabled, there is no reason to use randomUUID. And if tests or applications are running in plain HTTP URLs (what the web platform calls an "insecure context"), then WebCrypto APIs like randomUUID don't exist. If a site or test is running in plain HTTP, and CMCD is disabled (which is the default), there shouldn't be any need to install the randomUUID polyfill (which should be optional). This changes the CMCD utility to skip generating a session ID if CMCD is disabled. Change-Id: Iaf9c3fe94bc03c0f5ce46a082d18513ad05fb341
- Loading branch information