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

[api-minor] Re-factor the PDFScriptingManager class to use private fields/methods #16569

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

  • Change (most) fields/methods into private ones, since that's now supported.
  • Tweak the constructor-parameters, and simplify the sandbox initialization w.r.t. the viewer components.
  • Remove some unused function/method parameters.
  • Slightly simplify the "updatefromsandbox"-handler by using local variables and inverting some conditions.

Rather than sprinkling pre-processor statements throughout the viewer-code, simply "disable" the relevant `PDFViewer` setters instead.

Also, given that the GeckoView-specific viewer doesn't have a sidebar we don't actually need to explicitly ignore a `pageMode` during loading.
…fields/methods

 - Change (most) fields/methods into private ones, since that's now supported.
 - Tweak the constructor-parameters, and simplify the sandbox initialization w.r.t. the viewer components.
 - Remove some unused function/method parameters.
 - Slightly simplify the "updatefromsandbox"-handler by using local variables and inverting some conditions.
@Snuffleupagus Snuffleupagus force-pushed the PDFScriptingManager-private branch from 45ab503 to 547b827 Compare June 22, 2023 06:10
@mozilla mozilla deleted a comment from moz-tools-bot Jun 22, 2023
@mozilla mozilla deleted a comment from moz-tools-bot Jun 22, 2023
@mozilla mozilla deleted a comment from moz-tools-bot Jun 22, 2023
@mozilla mozilla deleted a comment from moz-tools-bot Jun 22, 2023
@moz-tools-bot
Copy link
Collaborator

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/836b216e493bad8/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/d93f46236eefa95/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/836b216e493bad8/output.txt

Total script time: 4.82 mins

  • Integration Tests: FAILED

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/d93f46236eefa95/output.txt

Total script time: 16.45 mins

  • Integration Tests: FAILED

@timvandermeij timvandermeij merged commit fa95bbc into mozilla:master Jun 24, 2023
@timvandermeij
Copy link
Contributor

Nice work!

@Snuffleupagus Snuffleupagus deleted the PDFScriptingManager-private branch June 25, 2023 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants