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

Add a new closeIfActive method in the OverlayManager class #19487

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

It's now pretty common that we only want to close a dialog if it's currently active, to avoid throwing errors, and this new method provides a shorter and more convenient way to achieve that.

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/d86500ad1604214/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/d86500ad1604214/output.txt

Total script time: 0.85 mins

Published

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

It's now pretty common that we only want to close a `dialog` *if* it's currently active, to avoid throwing errors, and this new method provides a shorter and more convenient way to achieve that.
@Snuffleupagus Snuffleupagus force-pushed the OverlayManager-closeIfActive branch from 344a792 to 96f5dcb Compare February 14, 2025 14:43
@Snuffleupagus Snuffleupagus merged commit c69282a into mozilla:master Feb 14, 2025
7 checks passed
@Snuffleupagus Snuffleupagus deleted the OverlayManager-closeIfActive branch February 14, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants