Skip to content

Refactor FXIOS-15151 [Native Error Pages] Rename otherErrorPages flag to wrongHostCertificateErrorPage#32611

Merged
Cramsden merged 3 commits into
mozilla-mobile:mainfrom
ananyashreesharma:fix/other-error-pages-flag-naming
Apr 14, 2026
Merged

Refactor FXIOS-15151 [Native Error Pages] Rename otherErrorPages flag to wrongHostCertificateErrorPage#32611
Cramsden merged 3 commits into
mozilla-mobile:mainfrom
ananyashreesharma:fix/other-error-pages-flag-naming

Conversation

@ananyashreesharma

Copy link
Copy Markdown
Contributor

Tickets

GitHub issue: #32610
JIRA: FXIOS-15151

📜 Description

This PR renames the Nimbus / feature-flag surface from other_error_pages / .otherErrorPages to wrong_host_certificate_error_page / .wrongHostCertificateErrorPage so the name matches the actual behavior (wrong-host / bad certificate native error page)

The Feature Flags debug toggle is unchanged in purpose: it still lets you manually enable/disable this flag for testing and it now uses the renamed flag (.wrongHostCertificateErrorPage).

Note: This PR is part of Outreachy.

Implementation details

  • Updated nativeErrorPageFeature.yaml
  • Renamed NimbusFlaggableFeature case and wired it in NimbusFeatureFlagLayer (including the Nimbus value property name after codegen).
  • Renamed NativeErrorPageFeatureFlag accessor to isWrongHostCertificateErrorPageEnabled and updated call sites
  • Updated Feature Flags debug entry
  • Adjusted unit tests that construct NativeErrorPageFeature / assert the flag (BrowserViewControllerTests, NativeErrorPageFeatureFlagTests).

📝 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 updated tests for the rename
  • 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

@ananyashreesharma
ananyashreesharma requested a review from a team as a code owner March 23, 2026 00:07
case nativeErrorPage
case noInternetConnectionErrorPage
case otherErrorPages
case wrongHostCertificateErrorPage

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@ananyashreesharma what do you think about renaming this to badCertDomainErrorPage instead so that we are consistent with the figma file and error message?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes sure, that makes sense!

@cyndichin cyndichin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks for the renaming!

@mobiletest-ci-bot

Copy link
Copy Markdown
Warnings
⚠️ Detected tab related changes in: firefox-ios/Client/Frontend/Browser/BrowserViewController/Extensions/BrowserViewController+WebViewDelegates.swift (cc @lmarceau)
Messages
📖 Project coverage: 41.04%

💪 Quality guardian

2 tests files modified. You're a champion of test coverage! 🚀

🥇 Perfect PR size

Smaller PRs are easier to review. Thanks for making life easy for reviewers! ✨

✅ New file code coverage

No new file detected so code coverage gate wasn't ran.

Client.app: Coverage: 39.39

File Coverage
ErrorPageHelper.swift 0.0% ⚠️
BrowserViewController.swift 35.03% ⚠️
FeatureFlagsDebugViewController.swift 0.0% ⚠️
BrowserViewController+WebViewDelegates.swift 20.23% ⚠️
NativeErrorPageFeatureFlag.swift 54.55%
NimbusFlaggableFeature.swift 95.9%
NimbusFeatureFlagLayer.swift 83.71%

Generated by 🚫 Danger Swift against e4fd914

@Cramsden
Cramsden merged commit 7455e63 into mozilla-mobile:main Apr 14, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🚀 PR merged to main, targeting version: 150.1

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