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

Focus the notification popup if it's already open #8318

Merged
merged 1 commit into from
Apr 11, 2020

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Apr 9, 2020

Any action in the background that would have opened the notification window will now focus the window instead if it was already open. Previously it would leave the window unfocused. This was particularly inconvenient when taking multiple actions in quick succession that all require confirmations (e.g. triggering multiple transactions).

@Gudahtt
Copy link
Member Author

Gudahtt commented Apr 9, 2020

This depends upon #8317

Edit: #8317 has been merged, so this is ready to review now

@Gudahtt Gudahtt force-pushed the refactor-notification-manager branch from 8b42fc0 to fff264c Compare April 9, 2020 23:22
@Gudahtt Gudahtt force-pushed the focus-popup-if-already-open branch from d24060e to 7b41506 Compare April 9, 2020 23:22
@Gudahtt Gudahtt force-pushed the refactor-notification-manager branch from fff264c to 6237c68 Compare April 9, 2020 23:44
@Gudahtt Gudahtt force-pushed the focus-popup-if-already-open branch from 7b41506 to ec2f9d7 Compare April 9, 2020 23:44
@metamaskbot
Copy link
Collaborator

Builds ready [ec2f9d7]
Page Load Metrics (623 ± 30 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeNotificationfirstPaint349041116
domContentLoaded3716826216230
load3736836236230
domInteractive3716826216230

Any action in the background that would have opened the notification
window will now focus the window instead if it was already open.
Previously it would leave the window unfocused. This was particularly
inconvenient when taking multiple actions in quick succession that all
require confirmations (e.g. triggering multiple transactions).
@Gudahtt Gudahtt force-pushed the focus-popup-if-already-open branch from ec2f9d7 to bd7bee7 Compare April 11, 2020 15:13
@Gudahtt Gudahtt changed the base branch from refactor-notification-manager to develop April 11, 2020 15:14
@Gudahtt Gudahtt marked this pull request as ready for review April 11, 2020 15:14
@metamaskbot
Copy link
Collaborator

Builds ready [bd7bee7]
Page Load Metrics (615 ± 31 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeNotificationfirstPaint34543952
domContentLoaded3476886146632
load3536896156531
domInteractive3476886136632

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!

Copy link
Contributor

@whymarrh whymarrh left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gudahtt Gudahtt merged commit e02a022 into develop Apr 11, 2020
@Gudahtt Gudahtt deleted the focus-popup-if-already-open branch April 11, 2020 23:43
Copy link

@wizzfile wizzfile left a comment

Choose a reason for hiding this comment

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

1

wizzfile added a commit to wizzfile/metamask-extension that referenced this pull request Apr 12, 2020
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.

5 participants