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

Handle JPX wasm fetch-response errors correctly (PR 19329 follow-up) #19333

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

Currently we're not checking that the response is actually OK before getting the data, which means that rather than throwing an error we can get an empty ArrayBuffer.

To avoid duplicating code we can move an existing helper into src/core/core_utils.js and re-use it when fetching the JPX wasm-file as well.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Currently we're not checking that the response is actually OK before getting the data, which means that rather than throwing an error we can get an empty `ArrayBuffer`.

To avoid duplicating code we can move an existing helper into `src/core/core_utils.js` and re-use it when fetching the JPX wasm-file as well.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@moz-tools-bot
Copy link
Collaborator

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/5e75a9748cf9fcd/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

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

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

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.

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/5e75a9748cf9fcd/output.txt

Total script time: 28.86 mins

  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

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

Total script time: 58.94 mins

  • Unit tests: FAILED
  • Integration Tests: FAILED
  • Regression tests: Passed

@Snuffleupagus Snuffleupagus merged commit 851a52f into mozilla:master Jan 17, 2025
9 checks passed
@Snuffleupagus Snuffleupagus deleted the src-core-fetchBinaryData branch January 17, 2025 10:29
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