Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Jan 23, 2026

📜 Tickets

Jira ticket
Github issue

💡 Description

Temporary stopgap measure: Downgrade Swift 6 while we investigate a more robust solution for what appears to be an issue with a WKWebNavigationDelegate method being compiled out with release build optimization for Swift 6.

Bumping the warning threshold to accommodate some Swift 6 language changes we've made in the past couple weeks after upgrading to Swift 6.

More details to come.

📝 Checklist

  • I filled in the ticket numbers and a description of my work
  • I updated the PR name to follow our PR naming guidelines
  • I ensured unit tests pass and wrote tests for new code
  • If working on UI, I checked and implemented accessibility (Dynamic Text and VoiceOver)
  • If adding telemetry, I read the data stewardship requirements and will request a data review
  • If adding or modifying strings, I read the guidelines and will request a string review from l10n
  • If needed, I updated documentation and added comments to complex code

This is an automatic backport of pull request #31793 done by [Mergify](https://mergify.com).

…stigate a more robust solution (#31793)

* Stopgap downgrade of Swift 6 while we resolve WKNavigationDelegate methods not being called properly. Bumping warning threshold.

* Downgrade ClientTests to Swift 5 as well to avoid errors after some Swift 6 related changes were made.

* Apply suggestion from @ih-codes

Bump warning count.

(cherry picked from commit 5878473)
@mergify mergify bot requested a review from a team as a code owner January 23, 2026 02:27
@mergify mergify bot requested review from lmarceau and removed request for a team January 23, 2026 02:27
@mattreaganmozilla
Copy link
Collaborator

Uplift Request

[User impact if declined]: Several authentication methods will be broken without this fix, as well as JS alerts (bug introduced in 147.1)

[Is this code covered by automated tests?] Partially, but the bug itself bypasses our CI due to the issue stemming from compiler optimizations and dead code stripping in production builds (which doesn't happen in Fennec targets)

[Has the fix been verified in Nightly?] Bug verified in Nightly, fix verified by devs locally

[Needs manual test from QA?] Yes
[If yes, steps to reproduce] Please see: #31789 (comment)

[List of other uplifts needed] n/a

[Why is the change risky/not risky? (and alternatives if risky)] Changes our Swift compiler version, some inherent risk but the bug this fixes has considerable user impact

[String changes made/needed] n/a

@mattreaganmozilla
Copy link
Collaborator

+cc @mozilla-mobile/relman

@mattreaganmozilla mattreaganmozilla requested a review from a team January 23, 2026 02:34
@mobiletest-ci-bot
Copy link

‼️ ATTENTION ‼️

🎯 This PR targets a release branch.

Please ensure you've followed the uplift request process.

Generated by 🚫 Danger Swift against a09f3e9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants