Speculative fix for WebXR WPT already declared syntax error
Seeing an increase in failures due to isChromiumBased
already being
defined. This attempts to mitigate those by trying to assert if it has
already been defined before loading the script that would define it.
Note that this shouldn't lead to any silent failures of not having
a navigator.xr.test
object as we still attempt to load that and
assert that it has been implemented.
Fixed: 351995591
Change-Id: Ia6f354732ac2a56f34e9b3cd0008404c82639f16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5703805
Commit-Queue: Alexander Cooper alcooper@chromium.org
Reviewed-by: Brian Sheedy bsheedy@chromium.org
Cr-Commit-Position: refs/heads/main@{#1327587}