Skip to content

fix: certificate enrollment view not displayed by developer tools - WPB-24270 🍒 🍒#4723

Queued
github-actions[bot] wants to merge 2 commits into
developfrom
fix/e2ei-certificate-enrollment-not-displayed-by-developer-tools-cherry-pick-cherry-pick
Queued

fix: certificate enrollment view not displayed by developer tools - WPB-24270 🍒 🍒#4723
github-actions[bot] wants to merge 2 commits into
developfrom
fix/e2ei-certificate-enrollment-not-displayed-by-developer-tools-cherry-pick-cherry-pick

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This PR was automatically cherry-picked based on the following PR:

Original PR description:


This PR was automatically cherry-picked based on the following PR:

Original PR description:


BugWPB-24270 [iOS] Certificate Expiration debug tool not working anymore on bund-next environments

Issue

The certificate enrollment view is not being displayed by the developer tools menu when tapping on the enroll button.

Cause

The developer tools sheet has modalPresentationStyle != .fullScreen, so the while loop in topmostViewController stops one level too early and returns the parent VC — not the developer tools VC. However, the parent VC already has a presentedViewController (the developer tools sheet), so present() fails silently.

This only affects builds that have SecurityFlags.useEmbeddedIDPUserAgent evaluate to true, because in this case WebViewUserAgent is used. It relies on a targetViewController to be presented. That target VC is the one captured by topmostViewController()

Builds with SecurityFlags.useEmbeddedIDPUserAgent evaluating to false rely on OIDExternalUserAgentIOS, which uses the window directly, instead of a target VC.

Solution

use topmostViewController(onlyFullScreen: false) to find and use the developer tools sheet as target VC


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

…PB-24270 🍒 (#4710)

Co-authored-by: David-Henner <david.henner@wire.com>
Copy link
Copy Markdown
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

LGTM:)

…ayed-by-developer-tools-cherry-pick-cherry-pick
Copy link
Copy Markdown
Collaborator

@zenkins zenkins left a comment

Choose a reason for hiding this comment

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

✅ Auto-approved cherry-pick PR 🍒.

@netbe netbe enabled auto-merge May 20, 2026 12:57
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions Bot commented May 20, 2026

Test Results

1 891 tests   1 864 ✅  2m 1s ⏱️
  302 suites     27 💤
    1 files        0 ❌

Results for commit 07dafaf.

Summary: workflow run #26164026193
Allure report (download zip): html-report-30152-fix_e2ei-certificate-enrollment-not-displayed-by-developer-tools-cherry-pick-cherry-pick

@netbe netbe added this pull request to the merge queue May 20, 2026
Any commits made after this event will not be merged.
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