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

do not display extension id in connection modal #8699

Merged
merged 1 commit into from
May 29, 2020
Merged

Conversation

brad-decker
Copy link
Contributor

fixes #8685

Before
After

@brad-decker brad-decker requested a review from a team as a code owner May 29, 2020 14:56
@brad-decker brad-decker marked this pull request as draft May 29, 2020 14:56
Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

See inline comment.

Edit: I would really, really love it if GitHub was better at highlighting whether a PR is a draft or not 😑

@@ -50,7 +51,7 @@ export default class ConnectedAccounts extends PureComponent {

return (
<Popover
title={activeTabOrigin}
title={activeTabOrigin === extension.runtime.id ? t('currentExtension') : activeTabOrigin}
Copy link
Member

@rekmarks rekmarks May 29, 2020

Choose a reason for hiding this comment

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

Hm, this will only do it for the MetaMask extension itself, no? I'm just realizing, that's probably a bad idea. We should probably prevent the extension UI from initiating an external permissions request to itself.

That's a different issue. Meanwhile, is there any platform-agnostic way of detecting an extension ID here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm good point lol.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

window.location.protocol seems promising... 'chrome-extension' 'moz-extension' etc

@metamaskbot
Copy link
Collaborator

Builds ready [1f0ce51]
Page Load Metrics (671 ± 82 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint3711747178
domContentLoaded40591566917182
load40791667117182
domInteractive40591466917182

@brad-decker brad-decker marked this pull request as ready for review May 29, 2020 16:54
@brad-decker brad-decker requested a review from rekmarks May 29, 2020 16:54
Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

LGTM!

@brad-decker brad-decker merged commit e481166 into develop May 29, 2020
@brad-decker brad-decker deleted the fix-origin branch May 29, 2020 17:12
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.

[develop] Improve extension origin representation on "Not Connected" menu
3 participants