Fix "Worker was terminated" console error when closing a PDF before it finishes loading#48196
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
@paultsimura Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@paultsimura this PR is ready for review. I've verified that this error is unrelated to my PR and also happens on staging |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb Safari2024-08-28.-.20.34.-.Screen.Recording.2024-08-28.at.20.32.37.mp4MacOS: Chrome / Safari2024-08-28.-.20.34.-.Screen.Recording.2024-08-28.at.20.21.13.mp4MacOS: Desktop2024-08-28.-.20.34.-.Screen.Recording.2024-08-28.at.20.24.39.mp4 |
|
@CyberAndrii please comment "recheck" to trigger the CLA bot again. |
|
recheck |
thienlnam
left a comment
There was a problem hiding this comment.
I just manually re-queued the check - all good. Just waiting on the perf tests now
|
Thanks @thienlnam - the perf tests are done ✔️ |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 9.0.26-1 🚀
|
|
This PR is failing because of issue #48314 |
|
@IuliiaHerets I don't quite understand why you say this PR is failing because of #48314. Prod: 2024-08-30.-.11.29.-.Screen.Recording.2024-08-30.at.11.25.44.mp4Staging: 2024-08-30.-.11.29.-.Screen.Recording.2024-08-30.at.11.28.51.mp4 |
|
@paultsimura PR says that we need to verify that no errors appear in the JS console. We see an error. So it is not pass. |
|
Shoot, I got you. @CyberAndrii could you please change the last steps in the PR description to be more specific? |
|
@IuliiaHerets we'll change the steps in the PR description, thank you. This one was aimed at the "Worker was terminated" error only. |
|
Done |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.26-6 🚀
|


Details
This PR fixes the "Worker was terminated" console error that occurs when closing a PDF view window before it finishes loading.
Fixed Issues
$ #47810
PROPOSAL: #47810 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
47810.android.native.webm
Android: mWeb Chrome
47810.android.mWeb.webm
iOS: Native
47810.ios.native.mov
iOS: mWeb Safari
47810.ios.mWeb.mov
MacOS: Chrome / Safari
47810.macos.safari.mov
MacOS: Desktop
47810.macos.desktop.mov