[fenix] Move tabs out of search group if direct load occurs
commit369495c2d41351732e62db82be1ff9d17aed3a70
authorChristian Sadilek <christian.sadilek@gmail.com>
Mon, 4 Oct 2021 19:08:02 +0000 (4 15:08 -0400)
committerChristian Sadilek <christian.sadilek@gmail.com>
Mon, 4 Oct 2021 21:30:49 +0000 (4 17:30 -0400)
tree3e03b6755326c46bef7a0462aee6fb1efa29237e
parentdd929ca048ff65bc775fee1c5fff2594927a26b6
[fenix] Move tabs out of search group if direct load occurs

This regressed in our previous fix that made sure child tabs don't
mistakenly get moved out of the group if their parent is navigated
away, or in case the child tabs are redirected.

However, when a subsequent load occurs in any tab in the group the
search terms need to be cleared and the tab removed from the group
to prevent false positives.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/historymetadata/HistoryMetadataMiddleware.kt
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/historymetadata/HistoryMetadataMiddlewareTest.kt