fix(ios): clear a secure field with deletes before the caret tap

Merged
TA
6d ago
+390-12

Summary

On iOS, fill always cleared a secure field, whose value is unreadable even when empty. The clear starts with a caret tap 4 pt inside the right edge, where apps often draw a show/hide button. In tester-army/e2e#1631 that tap pressed the button, the app swapped the input, and the fill failed with TEXT_INPUT_NOT_FOCUSED.

Now a masked field with unconfirmed focus gets the readiness retap at its center, and isn't cleared when it shows nothing or a placeholder that isn't a mask. A bullet placeholder isn't taken as empty: text of its length reads the same. Otherwise the clear sends deletes and reads back, and the edge tap runs only if masked text remains. The rule stays out of the shared textValueRead, where it would make formatted fills into bullet-placeholder fields mismatch.

9 files: runner, fixture, tests, docs, CLI help.

Validation

  • Base 093341a60, head 569032096.
  • Fixture tests (toggle over the right edge) fail without the fix, pass at head. 129 text-entry XCTests pass on iOS 27.2 and 26.5. macOS, tvOS and visionOS runners build.
  • Mutation check (test-experiments.md): 14 mutants, all killed.
  • RN 0.86.3 app, the issue's row, iOS 26.5: 21 steps pass at head, button never pressed (log). Base: 12 of 21 failed. Android 16: unaffected.
  • check:affected --run --head 569032096: 14 of 14 pass.
  • Independent review: findings fixed.
  • Not covered: masked text the deletes can't reach (documented).
  • CI: waiting for workflow approval.