Skip to content

fix: disallow copy/paste on WireAuthentication - WPB-24299#4487

Merged
David-Henner merged 209 commits intorelease/cycle-4.16from
fix/WPB-24299-copy-paste
Mar 26, 2026
Merged

fix: disallow copy/paste on WireAuthentication - WPB-24299#4487
David-Henner merged 209 commits intorelease/cycle-4.16from
fix/WPB-24299-copy-paste

Conversation

@netbe
Copy link
Copy Markdown
Collaborator

@netbe netbe commented Mar 25, 2026

BugWPB-24299 [iOS] WireAuthentication textfields should not allow copy/paste on C1

Issue

The SecurityFlag.isClipboardEnabled is not passed to WireAuthentication textfields. This PR fixes it.

Testing

  1. Use a build with isClipboardEnabled false
  2. try to paste email or password or verificationCode

Checklist

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

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@netbe netbe requested review from a team, David-Henner and caldrian and removed request for a team March 25, 2026 10:13
Copy link
Copy Markdown
Contributor

@caldrian caldrian left a comment

Choose a reason for hiding this comment

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

Looks like the font size of the text fields doesn't get adjusted anymore.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 25, 2026

Test Results

2 198 tests   2 170 ✅  3m 31s ⏱️
  370 suites     28 💤
    4 files        0 ❌

Results for commit d6f2089.

♻️ This comment has been updated with latest results.

Summary: workflow run #23597346685
Allure report (download zip): html-report-28832-fix_WPB-24299-copy-paste

@datadog-wireapp
Copy link
Copy Markdown

datadog-wireapp bot commented Mar 25, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d6f2089 | Docs | Was this helpful? Give us feedback!

@netbe netbe requested a review from caldrian March 25, 2026 14:55
netbe added 12 commits March 25, 2026 16:05
…eImages/DetermineAuthMethodViewTests/testCanExitFlow.1.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testColorSchemeVariants.variant0-dark.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testColorSchemeVariants.variant0-light.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testColorSchemeVariants.variant1-dark.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testColorSchemeVariants.variant1-light.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testDynamicTypeVariants.accessibility1.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testDynamicTypeVariants.accessibility2.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testDynamicTypeVariants.accessibility3.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testDynamicTypeVariants.accessibility4.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testDynamicTypeVariants.accessibility5.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testDynamicTypeVariants.large.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testDynamicTypeVariants.medium.png: convert to Git LFS
netbe added 17 commits March 25, 2026 16:41
…eImages/VerificationCodeViewTests/testDynamicTypeVariantsEmptyState.accessibility5.png: convert to Git LFS
…eImages/VerificationCodeViewTests/testDynamicTypeVariantsEmptyState.large.png: convert to Git LFS
…eImages/VerificationCodeViewTests/testDynamicTypeVariantsEmptyState.medium.png: convert to Git LFS
…eImages/VerificationCodeViewTests/testDynamicTypeVariantsEmptyState.small.png: convert to Git LFS
…eImages/VerificationCodeViewTests/testDynamicTypeVariantsEmptyState.xLarge.png: convert to Git LFS
…eImages/VerificationCodeViewTests/testDynamicTypeVariantsEmptyState.xSmall.png: convert to Git LFS
…eImages/VerificationCodeViewTests/testDynamicTypeVariantsEmptyState.xxLarge.png: convert to Git LFS
…eImages/VerificationCodeViewTests/testDynamicTypeVariantsEmptyState.xxxLarge.png: convert to Git LFS
…eImages/ReloginViaEmailViewTests/testReloginViaEmail.dark.png: convert to Git LFS
…eImages/ReloginViaEmailViewTests/testReloginViaEmail.light.png: convert to Git LFS
…eImages/ReloginViaEmailViewTests/testReloginViaEmail_WithProxy.dark.png: convert to Git LFS
…eImages/ReloginViaEmailViewTests/testReloginViaEmail_WithProxy.light.png: convert to Git LFS
…eImages/DetermineAuthMethodViewTests/testDynamicTypeVariants.accessibility2.png: convert to Git LFS
…eImages/LoginViaEmailViewTests/testDynamicTypeVariantsWithoutCreateAccount.xxLarge.png: convert to Git LFS
…eImages/LoginViaEmailViewTests/testDynamicTypeVariantsWithoutCreateAccount.xxxLarge.png: convert to Git LFS
…eImages/ReloginViaEmailViewTests/testReloginViaEmail_WithProxy.dark.png: convert to Git LFS
…eImages/ReloginViaEmailViewTests/testReloginViaEmail_WithProxy.light.png: convert to Git LFS
Copy link
Copy Markdown
Contributor

@caldrian caldrian left a comment

Choose a reason for hiding this comment

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

Some tests fail now because (placeholder) text is cropped.
Maybe because the frame of the text field is static and doesn't grow with the font settings. Maybe also the inset between border and text is too large.
If you argue that this is not related to this PR I'm happy to approve.

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link
Copy Markdown
Contributor

@caldrian caldrian left a comment

Choose a reason for hiding this comment

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

Approving, but I guess there must be another fix for the cropped text.

@David-Henner David-Henner merged commit cb1dabe into release/cycle-4.16 Mar 26, 2026
13 of 14 checks passed
@David-Henner David-Henner deleted the fix/WPB-24299-copy-paste branch March 26, 2026 15:02
@David-Henner
Copy link
Copy Markdown
Contributor

David-Henner commented Mar 26, 2026

Approving, but I guess there must be another fix for the cropped text.

fixed here fc741df

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.

3 participants