-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[NO-QA] Add core-js polyfill for pdfjs to support older Chrome & Safari versions #24068
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
Conversation
|
@mananjadhav 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] |
mananjadhav
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be fixing the issue for one my emulators.
Reviewer Checklist
Screenshots/VideosWebweb-keyat-split-fix.mov |
|
I need to download iOS 15 and then test on that. But most of it looks good. |
|
@jjcoffee Better to mention the exact iOS Safari version |
|
@mananjadhav Good point, it's much clearer that way - updated now! |
|
thanks @jjcoffee. @Julesssss All yours. 🎀 👀 🎀 C+ reviewed. |
Julesssss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Shared this here in Slack |
|
✋ 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/Julesssss in version: 1.3.51-0 🚀
|
|
@jjcoffee @mananjadhav @Julesssss QA is having a hard time testing this PR on older browser versions. Could one of y'all please test this on staging and confirm that it is working as expected? |
|
Ah my bad, we probably should have made this NO QA as it's an issue that only really occurs on dev (the Old Android emulator chrome version is outdated and requires polyfill) checking it off now |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.52-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|






Details
pdfjs (a dependency of
react-jswhich we use inPDFViewer) usesArray.prototype.at()which is only supported on newer versions of both Chrome (2021-07-20 release) and Safari (v15.4, 2022-03-15). Especially for Safari it seems worth supporting as it's highly likely that people may be stuck on an unsupported version.Fixed Issues
$ #22395
PROPOSAL: #22395 (comment)
Tests
--user-data-dirflag to avoid corrupting any existing profiles. I also needed to add--disable-gpu --no-sandboxflags to get it working.key.split(...).at is not a functiondoes not appear in the consoleOffline tests
N/A
QA Steps
Same as above.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
jspdf-polyfill-chrome-desktop-2023-08-02_16.31.24.mp4
Mobile Web - Chrome
jspdf-polyfill-android-chrome-2023-08-02_19.47.36.mp4
Mobile Web - Safari
jspdf-polyfill-ios14.5-safari-2023-08-02_16.55.54.mp4
Desktop
jspdf-polyfill-mac-desktop-2023-08-02_16.36.12.mp4
iOS
Android