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

Convert the OverlayManager class to use private fields/methods #14704

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

  • Convert the OverlayManager class to use private fields/methods

  • Change OverlayManager.open to always error if the overlay is already active

    The old code would allow an overlay to force close itself, before immediately re-opening itself, which actually isn't very helpful in practice since that won't re-run any overlay-specific initialization code.
    Given how the overlays are being used this really shouldn't have caused any issues, but it's a bug that we should fix nonetheless.

…y active

The old code would allow an overlay to force close *itself*, before immediately re-opening itself, which actually isn't very helpful in practice since that won't re-run any overlay-specific initialization code.
Given how the overlays are being used this really shouldn't have caused any issues, but it's a bug that we should fix nonetheless.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

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/6ead1f814a0069f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/6ead1f814a0069f/output.txt

Total script time: 2.63 mins

Published

@timvandermeij timvandermeij merged commit 30612d2 into mozilla:master Mar 23, 2022
@timvandermeij
Copy link
Contributor

Thank you for doing this!

@Snuffleupagus Snuffleupagus deleted the OverlayManager-private branch March 23, 2022 21:13
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