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

Move the reset-calls to occur last in the toolbar-constructors #15296

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

By invoking the reset methods last in the Toolbar/SecondaryToolbar-constructors, we ensure that the "toolbarreset"/"secondarytoolbarreset"-events are actually handle when the viewer loads. Note that previously those events were dispatched before the relevant event-listeners had been attached.
With this small change we can avoid inconsistent initial toolbar-state, specifically in the case when the viewer is reloaded (since Firefox keeps the HTML-state on "soft" reloads).

@Snuffleupagus
Copy link
Collaborator Author

@calixteman I believe that this should get rid of the soft-reload issues you've encountered.

/botio-linux preview

By invoking the `reset` methods *last* in the `Toolbar`/`SecondaryToolbar`-constructors, we ensure that the "toolbarreset"/"secondarytoolbarreset"-events are actually handle when the viewer loads. Note that previously those events were dispatched *before* the relevant event-listeners had been attached.
With this small change we can avoid inconsistent initial toolbar-state, specifically in the case when the viewer is *reloaded* (since Firefox keeps the HTML-state on "soft" reloads).
@mozilla mozilla deleted a comment from pdfjsbot Aug 9, 2022
@mozilla mozilla deleted a comment from pdfjsbot Aug 9, 2022
@pdfjsbot
Copy link

pdfjsbot commented Aug 9, 2022

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/941662b03d48fb6/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 9, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/941662b03d48fb6/output.txt

Total script time: 2.40 mins

Published

@Snuffleupagus
Copy link
Collaborator Author

/botio integrationtest

@pdfjsbot
Copy link

pdfjsbot commented Aug 9, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/32ecb06f4dc9690/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 9, 2022

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/9f4ae62dc2ae4d5/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Aug 9, 2022

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/32ecb06f4dc9690/output.txt

Total script time: 4.71 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Aug 9, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/9f4ae62dc2ae4d5/output.txt

Total script time: 8.72 mins

  • Integration Tests: FAILED

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.

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.

3 participants