Skip to content

Commit

Permalink
Backed out changeset 88669d7958cf (bug 1906541) for causing bc failur…
Browse files Browse the repository at this point in the history
…e on browser_searchModeSwitcher_basic.js CLOSED TREE

UltraBlame original commit: 088d0118356b560069db4b27413a4c1ec3b98ce9
  • Loading branch information
marco-c committed Oct 22, 2024
1 parent 8021102 commit 5dd74dc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 422 deletions.
135 changes: 19 additions & 116 deletions browser/components/urlbar/SearchModeSwitcher.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ input
#
toolbarbutton
;
#
defaultIcon
;
constructor
(
input
Expand Down Expand Up @@ -304,19 +301,6 @@ enableObservers
)
;
}
this
.
#
defaultIcon
=
lazy
.
UrlbarUtils
.
ICON
.
SEARCH_GLASS
;
}
/
*
Expand Down Expand Up @@ -1224,19 +1208,19 @@ init
}
catch
{
console
/
/
We
should
still
work
if
the
SearchService
is
not
working
.
error
(
"
Search
service
failed
to
init
"
)
;
}
let
{
Expand Down Expand Up @@ -1296,10 +1280,13 @@ inSearchMode
{
icon
=
this
lazy
.
#
defaultIcon
UrlbarUtils
.
ICON
.
SEARCH_GLASS
;
}
let
Expand Down Expand Up @@ -1341,11 +1328,6 @@ listStyleImage
=
iconUrl
;
if
(
label
)
{
this
.
#
Expand All @@ -1366,7 +1348,7 @@ urlbar
-
searchmode
-
button2
button
"
{
engine
Expand All @@ -1375,38 +1357,6 @@ label
}
)
;
}
else
{
this
.
#
input
.
document
.
l10n
.
setAttributes
(
this
.
#
toolbarbutton
"
urlbar
-
searchmode
-
button
-
no
-
engine
"
)
;
}
let
labelEl
=
Expand Down Expand Up @@ -1540,30 +1490,6 @@ null
if
(
!
Services
.
search
.
hasSuccessfullyInitialized
)
{
return
{
label
:
null
icon
:
this
.
#
defaultIcon
}
;
}
if
(
!
searchMode
|
|
Expand Down Expand Up @@ -1695,13 +1621,6 @@ replaceChildren
let
engines
=
[
]
;
try
{
engines
=
await
Services
.
Expand All @@ -1711,22 +1630,6 @@ getVisibleEngines
(
)
;
}
catch
{
console
.
error
(
"
Failed
to
fetch
engines
"
)
;
}
let
frag
=
Expand Down
Loading

0 comments on commit 5dd74dc

Please sign in to comment.