Skip to content

Commit

Permalink
Bug 1852442 - Remove delay for heuristic result. r=mak
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D192462

UltraBlame original commit: e7b2d7bd13afd6565574515c1f1d49ac47b4196a
  • Loading branch information
marco-c committed Nov 16, 2023
1 parent 4d57575 commit 2737ccf
Show file tree
Hide file tree
Showing 9 changed files with 560 additions and 1,370 deletions.
41 changes: 26 additions & 15 deletions browser/components/urlbar/UrlbarEventBufferer.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ UKNOWN
RUNNING
:
1
RUNNING_GOT_RESULTS
RUNNING_GOT_ALL_HEURISTIC_RESULTS
:
2
COMPLETE
Expand Down Expand Up @@ -433,7 +433,7 @@ than
/
UrlbarProvidersManager
.
CHUNK_HEURISTIC_RESULTS_DELAY_MS
CHUNK_RESULTS_DELAY_MS
.
static
DEFERRING_TIMEOUT_MS
Expand All @@ -442,7 +442,7 @@ Cu
.
isInAutomation
?
1000
1500
:
300
;
Expand Down Expand Up @@ -850,6 +850,18 @@ onQueryResults
queryContext
)
{
if
(
queryContext
.
pendingHeuristicProviders
.
size
)
{
return
;
}
this
.
_lastQuery
Expand All @@ -858,7 +870,7 @@ status
=
QUERY_STATUS
.
RUNNING_GOT_RESULTS
RUNNING_GOT_ALL_HEURISTIC_RESULTS
;
/
/
Expand Down Expand Up @@ -2279,23 +2291,23 @@ this
_lastQuery
.
status
!
=
=
QUERY_STATUS
.
RUNNING
&
&
COMPLETE
|
|
this
.
_lastQuery
.
status
!
=
=
QUERY_STATUS
.
RUNNING_GOT_RESULTS
UKNOWN
)
{
/
Expand Down Expand Up @@ -2327,7 +2339,7 @@ true
;
}
let
waitingFirstResult
waitingHeuristicResults
=
this
.
Expand Down Expand Up @@ -2398,8 +2410,7 @@ are
not
waiting
for
the
first
heuristic
results
yet
.
Expand Down Expand Up @@ -2428,13 +2439,13 @@ heuristic
|
|
!
waitingFirstResult
waitingHeuristicResults
)
;
}
if
(
waitingFirstResult
waitingHeuristicResults
|
|
!
Expand Down
Loading

0 comments on commit 2737ccf

Please sign in to comment.