Skip to content

Version v9.0.3 RC#10253

Merged
danfinlay merged 4 commits intomasterfrom
Version-v9.0.3
Jan 22, 2021
Merged

Version v9.0.3 RC#10253
danfinlay merged 4 commits intomasterfrom
Version-v9.0.3

Conversation

@metamaskbot
Copy link
Copy Markdown
Collaborator

@metamaskbot metamaskbot commented Jan 22, 2021

📦 🚀

Changelog

metamaskbot and others added 3 commits January 22, 2021 18:29
* Fix getting the site metadata from the request origin params.

Regressed from inpage-provider ts migration the request. The property domainMetadata is now set as a params key for the request.

https://github.com/MetaMask/inpage-provider/blob/v7.0.0/src/siteMetadata.js#L19-L25
vs
https://github.com/MetaMask/inpage-provider/blob/main/src/siteMetadata.ts#L19-L27

* Change hardcoded mocked response of the request to the prod response.
The decrupt message confirmation UI will crash if the origin metadata
is not present. This PR makes the UI tolerant of that metadata being
missing. It was always intended to be optional anyway.
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

All commits have been included in the changelog
@Gudahtt Gudahtt marked this pull request as ready for review January 22, 2021 18:57
@Gudahtt Gudahtt requested a review from a team as a code owner January 22, 2021 18:57
@Gudahtt Gudahtt self-requested a review January 22, 2021 18:57
@metamaskbot
Copy link
Copy Markdown
Collaborator Author

Builds ready [727ed51]
Page Load Metrics (558 ± 58 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint337050115
domContentLoaded33092755612158
load33292855812158
domInteractive33092655612158

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM! I've tested this on latest Chrome and Firefox, and have confirmed that there is no longer a UI crash on the decrypt confirmation on either. The site metadata is loading correctly as well.

I have also tested that this prevents a UI crash on sites using a legacy embedded inpage provider (e.g. https://gudahtt-test-dapp.herokuapp.com/). So if the site metadata is missing for whatever reason, there will still be no crash.

@danfinlay
Copy link
Copy Markdown
Contributor

Also verified the fix! Thanks for the fast response.

@danfinlay danfinlay merged commit 6411ac5 into master Jan 22, 2021
@danfinlay danfinlay deleted the Version-v9.0.3 branch January 22, 2021 20:41
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants