Open wpdarren opened 5 days ago
AC ✔
@jimmymadon, as far as i understand it, those console errors appear because isURLUsingHTTPS
is called while home URL is not resolved yet. We need to update components that use that function to wait until the home url is resolved and only then call that function. Could you please update IB accordingly?
@eugene-manuilov The IB indirectly does do what you are saying unless I'm missing something. We can just check if homeURL
is undefined and not call the isURLUsingHTTPS
function in that case. Or do you mean we should use something like await resolveSelect('getSiteInfo')
which makes sure homeURL
will be resolved?
Ah... yes, sorry about that 🤦♂, you are right, IB ✔
Bug Description
From the SiWG bug bash. Asana ticket can be found here.
When on the SiWG module set up screen, various warnings occur in the browser.
@jamesozzie also reported it when going to the edit screen for SiWG.
Ths does not appear to be creating any user-facing issues from our testing but we've reported it as a launch blocker as it should be fixed.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/modules/sign-in-with-google/components/setup/SetupMain.js
:isURLUsingHTTPS
(and subsequently<SetupForm>
), check if homeURL is not undefined.assets/js/components/notifications/HTTPSWarning.js
:homeURL
is undefined, return null before calling theisURLUsingHTTPS
method.Test Coverage
QA Brief
Changelog entry