Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force Omni Bar cancellation when submitting a query #2923

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

samsymons
Copy link
Contributor

Task/Issue URL: https://app.asana.com/0/414709148257752/1207493955850425/f
Tech Design URL:
CC:

Description:

This PR updates the omni bar query submitted callback to cancel the omni bar, to ensure it stays in the correct state.

This bug is caused by MainViewController.onEditingEnd(), which gets checked before the autocomplete controller has been torn down. This puts the omni bar into a suspended state, not dismissed state.

Steps to test this PR:

  1. Check that the omni bar behaves as expected
  2. Check that you can submit multiple queries in a row and that the omni bar looks correct each time

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16

Internal references:

Software Engineering Expectations
Technical Design Template

@samsymons samsymons requested a review from miasma13 June 6, 2024 17:05
Copy link
Contributor

@miasma13 miasma13 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@samsymons samsymons merged commit 272119b into release/7.123.0 Jun 6, 2024
18 checks passed
@samsymons samsymons deleted the sam/fix-omnibar-state-issues branch June 6, 2024 20:57
samsymons added a commit that referenced this pull request Jun 7, 2024
* main: (34 commits)
  Release 7.122.1-0 (#2932)
  Fix widgets init due to crash of availability check inside builder on iOS 16 (#2931)
  Show subscription settings section either when subscription purchase is possible or user is authenticated (#2922)
  Release 7.123.0-1 (#2928)
  Do not refresh UI only if AutoClear was triggered (#2924)
  Do not refresh UI only if AutoClear was triggered (#2924)
  Clean up subscription state caching in settings logic (#2925)
  Force Omni Bar cancellation when submitting a query (#2923)
  Hide 'Set your address bar position' for iPad (#2913)
  Select correct access group for SubscriptionTokenKeychainStorage (#2918)
  Remove VPN waitlist feature flags and access controller (#2919)
  Remove usage of token store from iOS VPN (#2892)
  Update autoconsent to v10.9.0 (#2908)
  Load child Privacy Pro views lazily (#2917)
  Surface specific XPC & login item errors on macOS (#2872)
  Removing the temporary password manager survey code (#2910)
  Release 7.123.0-0 (#2915)
  Use better wording for history autocomplete description (#2914)
  Additional Privacy Pro RMF changes (#2911)
  Bump BSK - No iOS Changes, Enables macOS DBP Changes (#2877)
  ...
samsymons added a commit that referenced this pull request Jun 9, 2024
# By Michal Smaga (6) and others
# Via Michal Smaga (3) and GitHub (1)
* main:
  DBP: Bump C-S-S version to 5.19.0 (#2927)
  Release 7.123.0-2 (#2933)
  Fix widgets init due to crash of availability check inside builder on iOS 16 (#2931)
  Release 7.122.1-0 (#2932)
  Fix widgets init due to crash of availability check inside builder on iOS 16 (#2931)
  Show subscription settings section either when subscription purchase is possible or user is authenticated (#2922)
  Release 7.123.0-1 (#2928)
  Do not refresh UI only if AutoClear was triggered (#2924)
  Clean up subscription state caching in settings logic (#2925)
  Force Omni Bar cancellation when submitting a query (#2923)
  Remove Privacy Pro line from release notes (#2902)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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.

2 participants