Skip to content
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

fix(connect): fix outdated browser breaking change #8170

Merged
merged 2 commits into from
Apr 21, 2023

Conversation

mroz22
Copy link
Contributor

@mroz22 mroz22 commented Apr 20, 2023

test(connect-popup): enable unchained test enables tests that would have caught the bug I am fixing here now, if it was online

fix(connect-popup): systemInfo fixes broken backwards compatibility. Data used in popup to decide whether browser is outdated is now sent from the code that is part of npm package, this means that unless update, this data is missing in popup.html.

QA testing tips:

@mroz22 mroz22 force-pushed the connect-debug-outdated branch from acf84d9 to 41b6bb4 Compare April 20, 2023 19:23
@mroz22 mroz22 force-pushed the connect-debug-outdated branch 2 times, most recently from 59c913e to 9ddc3b3 Compare April 20, 2023 19:48
@mroz22 mroz22 marked this pull request as ready for review April 20, 2023 19:48
@@ -181,6 +212,9 @@ const handleMessage = (event: MessageEvent<PopupEvent | UiEvent>) => {
// handle POPUP.INIT message from window.opener
const init = async (payload: PopupInit['payload']) => {
if (!payload) return;

payload.systemInfo = getSystemInfo(config.supportedBrowsers);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!payload.systemInfo) maybe lets do a fallback only for missing data?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done and forcepushed

@mroz22 mroz22 force-pushed the connect-debug-outdated branch from 9ddc3b3 to 1588850 Compare April 21, 2023 08:06
@mroz22 mroz22 merged commit 7520b03 into develop Apr 21, 2023
@mroz22 mroz22 deleted the connect-debug-outdated branch April 21, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants