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

Restore support for @metamask/inpage provider@"< 8.0.0" #10179

Merged
merged 8 commits into from
Jan 13, 2021

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented Jan 12, 2021

This PR restores support for @metamask/inpage-provider@" 8.0.0", for consumers who bring their own version of this package. The plan is to keep this support in production for about a month after communicating its removal to those consumers.

This restores support for versions of the inpage provider prior to v8.
This is intended to support dapps and extensions that directly
instantiated their own provider rather than using the injected
provider.
@rekmarks rekmarks requested a review from Gudahtt January 12, 2021 23:30
app/scripts/contentscript.js Outdated Show resolved Hide resolved
app/scripts/contentscript.js Outdated Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [276aaa9]
Page Load Metrics (531 ± 42 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint33654994
domContentLoaded3336395308943
load3346405318842
domInteractive3336395298943

@rekmarks rekmarks marked this pull request as ready for review January 13, 2021 01:29
@rekmarks rekmarks requested a review from a team as a code owner January 13, 2021 01:29
@rekmarks rekmarks changed the title Restore support for legacy inpage provider (<v8.0.0) Restore support for @metamask/inpage provider@"< 8.0.0 Jan 13, 2021
@rekmarks rekmarks changed the title Restore support for @metamask/inpage provider@"< 8.0.0 Restore support for @metamask/inpage provider@"< 8.0.0" Jan 13, 2021
Copy link
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 tested this with a copy of the test dapp that uses an embedded instance of v6.0.1 of our inpage provider, and is served with a CSP header of script-src: 'self' which prevents injection on Firefox.

@rekmarks rekmarks merged commit 0dfdd44 into develop Jan 13, 2021
@rekmarks rekmarks deleted the restore-legacy-provider branch January 13, 2021 01:43
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 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.

3 participants