Skip to content

[Web] Add polyfill for crypto.randomUUID#26368

Merged
rudream merged 1 commit intomasterfrom
yassine/randomuuid
May 19, 2023
Merged

[Web] Add polyfill for crypto.randomUUID#26368
rudream merged 1 commit intomasterfrom
yassine/randomuuid

Conversation

@rudream
Copy link
Copy Markdown
Contributor

@rudream rudream commented May 16, 2023

e counterpart: https://github.com/gravitational/teleport.e/pull/1422

Purpose

Adds a polyfill fallback for crypto.randomUUID for old browsers that don't support it.

Polyfill is from https://github.com/uuidjs/randomUUID

Tested with Firefox 91.0

@rudream rudream changed the title [Web [Web] Add polyfill for crypto.randomUUID May 16, 2023
@github-actions github-actions Bot requested review from gzdunek and ryanclark May 16, 2023 16:32
@rudream rudream requested review from kimlisa, ravicious and zmb3 May 16, 2023 16:35
@rudream rudream force-pushed the yassine/randomuuid branch 2 times, most recently from 6ec9594 to 896ef35 Compare May 16, 2023 16:50
Comment thread web/packages/teleport/src/DesktopSession/useDesktopSession.tsx Outdated
Comment thread web/packages/teleport/src/lib/polyfillRandomUuid.js Outdated
@rudream rudream requested a review from ravicious May 17, 2023 14:06
Comment thread web/packages/teleport/src/lib/polyfillRandomUuid.js Outdated
Copy link
Copy Markdown
Contributor

@avatus avatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preemptive approve once the few questions have been answered. neat stuff!

Copy link
Copy Markdown
Member

@ravicious ravicious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for researching that question about the secure context.

Should we backport this all the way to v11 if needed?

Comment thread web/packages/teleport/src/lib/polyfillRandomUuid.js Outdated
Comment thread web/packages/shared/components/Notification/Notification.story.tsx Outdated
@rudream rudream force-pushed the yassine/randomuuid branch from d375138 to dc14f55 Compare May 19, 2023 14:51
@rudream rudream enabled auto-merge May 19, 2023 14:51
@rudream rudream added this pull request to the merge queue May 19, 2023
Merged via the queue into master with commit c9b3803 May 19, 2023
@rudream rudream deleted the yassine/randomuuid branch May 19, 2023 15:17
@public-teleport-github-review-bot
Copy link
Copy Markdown

@rudream See the table below for backport results.

Branch Result
branch/v11 Failed
branch/v12 Create PR
branch/v13 Create PR

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