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

Try to remove the mozOpaque canvas-property (PR 6551 follow-up) #14894

Merged
merged 1 commit into from
May 12, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

According to MDN, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/mozOpaque, the mozOpaque canvas-property is not only non-standard (obviously) but it's also been deprecated.
Instead it's recommended to use alpha = false when getting the canvas-context, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext#contextattributes, which all of our affected code is already doing.

According to MDN, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/mozOpaque, the `mozOpaque` canvas-property is not only non-standard (obviously) but it's also been deprecated.
Instead it's recommended to use `alpha = false` when getting the canvas-context, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext#contextattributes, which all of our affected code is already doing.
@Snuffleupagus
Copy link
Collaborator Author

Hopefully this won't break anything, since #6551 (comment) mentioned issues in Firefox on MacOS. However, that's over six years ago and it's hopefully no longer an issue now.

@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2022

From: Bot.io (Linux m4)


Received

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

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

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2022

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/10a0929a5b13f98/output.txt

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2022

From: Bot.io (Linux m4)


Failed

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

Total script time: 26.73 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 9

Image differences available at: http://54.241.84.105:8877/d7df104234c8d6d/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/10a0929a5b13f98/output.txt

Total script time: 31.39 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.193.163.58:8877/10a0929a5b13f98/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit fbc7981 into mozilla:master May 12, 2022
@timvandermeij
Copy link
Contributor

Looks good to me; nice find!

@Snuffleupagus Snuffleupagus deleted the rm-mozOpaque branch May 13, 2022 07:37
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.

None yet

3 participants