fenix/app
Grisha Kruglov 63154a18f9 Closes #22484 - Track direct loads per tab; fix search term lookup
This patch fixes two problems:
1) We were treating "direct tab load" as an event which applies
   uniformally to all tabs, even though it's actually an event which
   happens for a specific tab. This lead to background tabs (pages opened as new tab)
   setting the direct load flag, and then a simultaneously loading
   parent tab would incorrectly interpret that flag for itself.

   The patch switches this tracking from a simple boolean (are we direct
   loading?) to a set of tab IDs that are currently direct loading.

2) In a case when a background tab was loading with a parent who's
   search terms were cleared by a direct load, we were not trying to
   lookup search terms on the background tab's historyMetadata key,
   which exists to capture search terms for this exact scenario.

   The patch adds an additional fallback lookup for that path.
2021-11-18 15:52:01 +00:00
..
sampledata For #7092: Add initial Migration UI 2020-01-15 21:41:01 -08:00
src Closes #22484 - Track direct loads per tab; fix search term lookup 2021-11-18 15:52:01 +00:00
.gitignore Initializes Android project 2018-12-07 15:25:38 -05:00
benchmark.gradle For #21700: linting fixes 2021-10-14 21:03:05 +00:00
build.gradle For #21084: put git hash on About screen in release builds. 2021-11-08 19:15:16 +00:00
lint-baseline.xml For #21760 - Remove some unused resources 2021-10-13 20:42:49 +00:00
lint.xml For #21861 - Ignore the UnusedResources lint check for localized strings 2021-10-12 14:48:47 +00:00
metrics.yaml MR2 Telemetry: Homescreen view count (#22377) 2021-11-16 22:30:48 +00:00
pings.yaml For #20596 remove startup timeline probes 2021-08-22 00:57:10 +00:00
proguard-rules.pro For #20824: use fast service loader for MainDispatcherFactory. 2021-08-18 03:59:44 +00:00