Skip to content

web/polyfill: polyfill customElements.getName for Safari < 17.4 (cherry-pick #22940 to version-2026.5) - #22963

Merged
PeshekDotDev merged 2 commits into
version-2026.5from
cherry-pick/22940-to-version-2026.5
Jun 10, 2026
Merged

PeshekDotDev merged 2 commits into
version-2026.5from
cherry-pick/22940-to-version-2026.5

Conversation

@authentik-automation

Copy link
Copy Markdown
Contributor

Cherry-pick of #22940 to version-2026.5 branch.

Original PR: #22940
Original Author: @GirlBossRush
Cherry-picked commit: b456e4a

* web/polyfill: polyfill customElements.getName for Safari < 17.4

The flow renderer started calling window.customElements.getName in 2026.5,
which crashes on iOS 16 Safari and any WebKit WebView before 17.4. Reporters
saw "getName is not a function" at the first stage render and the page never
recovered.

The polyfill wraps define() to record each tag and constructor pair, then
resolves getName(ctor) from that map. It only installs when the registry is
missing the method, so modern browsers keep their native implementation. The
polyfill bundle is loaded from base/skeleton.html ahead of every interface
entry point, so the wrap is in place before any customElements.define call
runs.

Fixes #22611

Co-Authored-By: Agent (authentik-i22611-committed-cooperative-orchid) <[email protected]>

* Refine.

---------

Co-authored-by: Agent (authentik-i22611-committed-cooperative-orchid) <[email protected]>
Co-authored-by: Connor Peshek <[email protected]>
@codecov

codecov Bot commented Jun 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.24%. Comparing base (9697ee6) to head (e2bd804).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                Coverage Diff                 @@
##           version-2026.5   #22963      +/-   ##
==================================================
- Coverage           93.26%   93.24%   -0.02%     
==================================================
  Files                1033     1033              
  Lines               60181    60181              
  Branches              400      400              
==================================================
- Hits                56126    56115      -11     
- Misses               4055     4066      +11     
Flag Coverage Δ
conformance 36.50% <ø> (-0.04%) ⬇️
e2e 41.78% <ø> (+<0.01%) ⬆️
integration 32.98% <ø> (+<0.01%) ⬆️
rust 0.00% <ø> (ø)
unit 92.20% <ø> (ø)
unit-migrate 92.22% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@netlify

netlify Bot commented Jun 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit e2bd804
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a289714b20365000852b49f
😎 Deploy Preview https://deploy-preview-22963--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-e2bd80418beef8823950da9f9f70a05612f37db4
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-e2bd80418beef8823950da9f9f70a05612f37db4

Afterwards, run the upgrade commands from the latest release notes.

@PeshekDotDev
PeshekDotDev merged commit fec3d65 into version-2026.5 Jun 10, 2026
102 of 103 checks passed
@PeshekDotDev
PeshekDotDev deleted the cherry-pick/22940-to-version-2026.5 branch June 10, 2026 03:56
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