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

Remove the internal PDFScriptingManager._pageEventsReady boolean (PR 13074 follow-up) #13577

Conversation

Snuffleupagus
Copy link
Collaborator

With the introduction of PDFScriptingManager._closeCapability in PR #13074, the pre-existing PDFScriptingManager._pageEventsReady boolean essentially became redundant.
Given that you always want to avoid tracking closely related state separately, since it's easy to introduce subtle bugs that way, we should just remove PDFScriptingManager._pageEventsReady now.

Obviously I should have done this already back in PR #13074, sorry about the churn here!

…R 13074 follow-up)

With the introduction of `PDFScriptingManager._closeCapability` in PR 13074, the pre-existing `PDFScriptingManager._pageEventsReady` boolean essentially became redundant.
Given that you always want to avoid tracking closely related state *separately*, since it's easy to introduce subtle bugs that way, we should just remove `PDFScriptingManager._pageEventsReady` now.

Obviously I *should* have done this already back in PR 13074, sorry about the churn here!
@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/2c3d9350d7506cf/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/2c21d50a95ddbd7/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/2c3d9350d7506cf/output.txt

Total script time: 4.37 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/2c21d50a95ddbd7/output.txt

Total script time: 5.56 mins

  • Integration Tests: Passed

…itializing the scripting-factory

This way, we'll immediately clean-up in exactly the same way as the other failure code-paths in the `PDFScriptingManager.setDocument` method.
@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/c065980ea7f783a/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/bc3368cc2c186d3/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/c065980ea7f783a/output.txt

Total script time: 4.38 mins

  • Integration Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/bc3368cc2c186d3/output.txt

Total script time: 5.34 mins

  • Integration Tests: FAILED

@timvandermeij timvandermeij merged commit 248efb1 into mozilla:master Jun 18, 2021
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the rm-PDFScriptingManager._pageEventsReady branch June 18, 2021 20:06
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