Bugfix FXIOS-13321 Fix 'Find In Page' UI when resuming app in private tab#33874
Conversation
|
@yoanarios I'm still doing a bit more investigation here but wanted to get a PR up for review. LMK if you'd like to sync further to discuss, you have more context on this UI than I do. |
676ec08 to
bf1a2e7
Compare
Clean-up Rename FindInPageBar so it's clear this is a deprecated property Comment [FXIOS-13321] Updates to Find In Page UI fix [FXIOS-13321] Cleanup, fix logic for refactor [FXIOS-13321] Limit to PBM Minor comment cleanup
1a1c02d to
861ef37
Compare
|
Were you able to investigate why the keyboard is dismissed only on PBM when going to the background? I didn't get the chance to work on the bug, but it always bothered me that it was only in private browsing and could be related to WebKit behaviour tied to private data stores 🤷♀️. I just want to rule out that we are not doing some extra handling for private mode that is causing the dismissal of the keyboard and is the root cause of the bug |
@yoanarios Yeah initially I'd assumed that this was intentional but it looks like this is actually an unintended side effect of our I've changed the fix in this PR so that it addresses the root issue and doesn't inadvertently hide the keyboard, which resolves this bug. I suspect this might actually fix a couple related issues we're seeing also. Possibly #32873 🤔, because I suspect that has something to do with the keyboard state change updates in PBM. I should add: in my testing this fix still allows the privacy screen to work fine, Firefox is obscured in the app switcher when in PBM. But LMK if anyone has any concerns. (+cc @thatswinnie ) |
Amazing, thank you for looking into the root cause. No concerns from my side, code-wise, this looks good to me. I’ll just do some sanity testing. |
yoanarios
left a comment
There was a problem hiding this comment.
LGTM 🚀, tested and is working as expected
b34a2b4 to
3959983
Compare
🧹 Tidy commitJust 3 file(s) touched. Thanks for keeping it clean and review-friendly! 💬 Description craftsmanGreat PR description! Reviewers salute you 🫡 🦊 BrowserViewController CheckWe’re tracking the size of
✅ New file code coverageNo new file detected so code coverage gate wasn't ran. ✅ Existing file code coverageAll modified files meet their thresholds. Client.app: Coverage: 40.74
Generated by 🚫 Danger Swift against 3959983 |
|
🚀 PR merged to |
… tab (#33874) * [FXIOS-13321] Initial fix for broken Find In Page UI behavior in PBM Clean-up Rename FindInPageBar so it's clear this is a deprecated property Comment [FXIOS-13321] Updates to Find In Page UI fix [FXIOS-13321] Cleanup, fix logic for refactor [FXIOS-13321] Limit to PBM Minor comment cleanup * [FXIOS-13321] Refactor for readability * [FXIOS-13321] Change fix, address root issue to avoid keyboard being hidden in PBM
📜 Tickets
Jira ticket
Github issue
💡 Description
findInPageBarso it's clear it is only for iOS 15 backwards-compatFor the Find In Page UI issues, the root problem is that the keyboard is dismissed, so the change here ensures the UI is updated so that the keyboard is available if search is active.
📸 Demo
fix3.mov
📝 Checklist