[vr] Fix XR test workaround for loadUrl
The existing XR test workaround (crrev.com/c/1306173) checks for the existence of isInitializationComplete by attempting to access it. However, accessing an undeclared variable throws a ReferenceError -- the correct way of checking for its existence is using typeof. Bug: 894796 Change-Id: I86a5ac2ba45fea5e51c7e0f9fddc4167b8772443 Reviewed-on: https://chromium-review.googlesource.com/c/1319715Reviewed-by:Brian Sheedy <bsheedy@chromium.org> Commit-Queue: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/master@{#605771}
Showing
Please register or sign in to comment