-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Prod QA] Fix CSP for statement frames on Desktop #9738
Conversation
@thienlnam Could you please test the Production build of the desktop app? Also, let me know how to navigate to statements page so that I can add it to the QA steps for QA. |
Going to test it now, also testing for this will have to be internalQA. You can only navigate to the statements page via link from Concierge |
Triggered auto assignment to @MonilBhavsar ( |
@thienlnam looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
Tests had passed 🙄 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @thienlnam in version: 1.1.81-0 🚀
|
I think this caused a bad regression on staging |
We reverted this to fix staging. In the next iterations, keep in mind that you can run |
Oh, bad. I will create the new RP shortly and test it. I guess we missed #9738 (comment). |
🚀 Deployed to production by @roryabraham in version: 1.1.82-5 🚀
|
Hmm, I still seem to be running into this issue on Version 1.1.82-5 (1.1.82-5)
|
This PR was reverted. Did you check on staging? I created a new PR. |
Ah yeah my bad, I thought this was your new PR and just checked production. Will wait for the other PR to hit production |
Details
Proposal: #9713 (comment)
On the desktop app, the app is loading with localhost URL on dev and
app://
on production. CSP policy will fail if URLs do not match with what is specified in frame-ancestors.On electron, intercept the requests calls and manage the response headers for CSP before that calls are received on the frontend.
Fixed Issues
$ #9713
Tests
statements/202201/
.PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
(Needs to be production QA)
Screenshots
Web
Since URL is localhost. I am not sure how to test it there.
Mobile Web
The same goes for mWeb.
Desktop
iOS
Android