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

Stop adding permissions middleware to trusted connections #8701

Merged
merged 2 commits into from
May 29, 2020

Conversation

rekmarks
Copy link
Member

@rekmarks rekmarks commented May 29, 2020

Stops adding the permissions controller middleware to trusted connections.

This has the added benefit of preventing the extension from requesting permissions from itself, which was previously possible by sending e.g. wallet_requestPermissions over ethereumProvider from the UI.

Also fixes a test case that provided the wrong special origin value.

@rekmarks rekmarks requested a review from a team as a code owner May 29, 2020 16:32
@metamaskbot
Copy link
Collaborator

Builds ready [c2a6b9d]
Page Load Metrics (593 ± 59 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint319541178
domContentLoaded33372659112359
load33472859312359
domInteractive33272659112359

@metamaskbot
Copy link
Collaborator

Builds ready [c0c967f]
Page Load Metrics (580 ± 64 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint30423542
domContentLoaded34073957813464
load34174158013464
domInteractive33973957813464

@rekmarks rekmarks merged commit cf60c8e into develop May 29, 2020
@rekmarks rekmarks deleted the no-permissions-internal-middleware branch May 29, 2020 17:53
Gudahtt added a commit that referenced this pull request Jun 1, 2020
* origin/develop: (689 commits)
  Implement asset page (#8696)
  fix crash on signature request (#8709)
  Fix accounts menu styling (#8707)
  Delete docs/porting_to_new_environment.md (#8704)
  Remove unused `getToErrorObject` parameters (#8705)
  hide connected-status on metamask ext (#8703)
  Stop adding permissions middleware to trusted connections (#8701)
  Use `send` state for send flow token (#8695)
  do not display extension id in connection modal (#8699)
  Fix tab content disappearing during scrolling on macOS Firefox (#8702)
  close details when button is pressed (#8694)
  Refactor token selectors (#8671)
  Update eth_accounts permission description (#8693)
  Extract selected token from token input (#8692)
  Fix propType for Home defaultHomeActiveTabName (#8683)
  Fix create account form styling (#8689)
  Remove unused `getSelectedTokenAssetImage` selector (#8691)
  Remove `getTxParams` (#8676)
  do not show account mismatch alert on details (#8678)
  Fix connect hardware styling (#8680)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants