Skip to content

Commit

Permalink
Change the search
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedor committed Oct 6, 2023
1 parent a2bb15d commit 25620e4
Show file tree
Hide file tree
Showing 266 changed files with 112 additions and 5,292 deletions.
1 change: 0 additions & 1 deletion browser/app/profile/mypal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,6 @@ pref("services.sync.prefs.sync.browser.newtabpage.activity-stream.section.highli
pref("services.sync.prefs.sync.browser.newtabpage.enabled", true);
pref("services.sync.prefs.sync.browser.newtabpage.pinned", true);
pref("services.sync.prefs.sync.browser.offline-apps.notify", true);
pref("services.sync.prefs.sync.browser.search.update", true);
pref("services.sync.prefs.sync.browser.sessionstore.restore_on_demand", true);
pref("services.sync.prefs.sync.browser.startup.homepage", true);
pref("services.sync.prefs.sync.browser.startup.page", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,6 @@
"browser.safebrowsing.malware.enabled": {
"type": "boolean"
},
"browser.search.update": {
"type": "boolean"
},
"browser.tabs.warnOnClose": {
"type": "boolean"
},
Expand Down
2 changes: 1 addition & 1 deletion browser/components/preferences/in-content/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ browser.jar:
* content/browser/preferences/in-content/preferences.xul
content/browser/preferences/in-content/subdialogs.js

content/browser/preferences/in-content/main.js
* content/browser/preferences/in-content/main.js
content/browser/preferences/in-content/home.js
content/browser/preferences/in-content/search.js
content/browser/preferences/in-content/privacy.js
Expand Down
3 changes: 2 additions & 1 deletion browser/components/preferences/in-content/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ Preferences.addAll([

// Update
{ id: "browser.preferences.advanced.selectedTabIndex", type: "int" },
{ id: "browser.search.update", type: "bool" },

{ id: "privacy.userContext.enabled", type: "bool" },
]);
Expand Down Expand Up @@ -519,11 +518,13 @@ var gMainPane = {
let arch = bundle.GetStringFromName(archResource);
version += ` (${arch})`;

#ifdef MOZ_UPDATER
document.l10n.setAttributes(
document.getElementById("updateAppInfo"),
"update-application-version",
{ version }
);
#endif

// Show a release notes link if we have a URL.
let relNotesLink = document.getElementById("releasenotes");
Expand Down
12 changes: 2 additions & 10 deletions browser/components/preferences/in-content/main.xul
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@
<stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
#endif

#ifdef MOZ_UPDATER
<hbox id="updatesCategory"
class="subcategory"
hidden="true"
Expand All @@ -427,7 +428,6 @@
<description id="distribution" class="text-blurb" hidden="true"/>
<description id="distributionId" class="text-blurb" hidden="true"/>
</vbox>
#ifdef MOZ_UPDATER
<spacer flex="1"/>
<!-- Please don't remove the wrapping hbox/vbox/box for these elements. It's used to properly compute the search tooltip position. -->
<vbox>
Expand All @@ -441,9 +441,7 @@
history-intro
"/>
</vbox>
#endif
</hbox>
#ifdef MOZ_UPDATER
<vbox id="updateBox">
<deck id="updateDeck" orient="vertical">
<hbox id="checkForUpdates" align="start">
Expand Down Expand Up @@ -533,9 +531,6 @@
</hbox>
</deck>
</vbox>
#endif

#ifdef MOZ_UPDATER
<description id="updateAllowDescription" data-l10n-id="update-application-allow-description"></description>
<vbox id="updateSettingsContainer">
<radiogroup id="updateRadioGroup">
Expand All @@ -555,11 +550,8 @@
data-l10n-id="update-application-use-service"
preference="app.update.service.enabled"/>
#endif
#endif
<checkbox id="enableSearchUpdate"
data-l10n-id="update-enable-search-update"
preference="browser.search.update"/>
</groupbox>
#endif

<hbox id="performanceCategory"
class="subcategory"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ const mockUpdateManager = {
],
};

function resetPreferences() {
Services.prefs.clearUserPref("browser.search.update");
}

function formatInstallDate(sec) {
var date = new Date(sec);
const dtOptions = {
Expand All @@ -96,26 +92,6 @@ function formatInstallDate(sec) {

registerCleanupFunction(resetPreferences);

add_task(async function() {
await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
resetPreferences();
Services.prefs.setBoolPref("browser.search.update", false);

let doc = gBrowser.selectedBrowser.contentDocument;
let enableSearchUpdate = doc.getElementById("enableSearchUpdate");
is_element_visible(
enableSearchUpdate,
"Check search update preference is visible"
);

// Ensure that the update pref dialog reflects the actual pref value.
ok(!enableSearchUpdate.checked, "Ensure search updates are disabled");
Services.prefs.setBoolPref("browser.search.update", true);
ok(enableSearchUpdate.checked, "Ensure search updates are enabled");

gBrowser.removeCurrentTab();
});

add_task(async function() {
await openPreferencesViaOpenPreferencesAPI("general", { leaveOpen: true });
let doc = gBrowser.selectedBrowser.contentDocument;
Expand Down
Binary file not shown.

This file was deleted.

Binary file not shown.
26 changes: 0 additions & 26 deletions browser/components/search/extensions/allegro-pl/manifest.json

This file was deleted.

Binary file not shown.
26 changes: 0 additions & 26 deletions browser/components/search/extensions/atlas-sk/manifest.json

This file was deleted.

Binary file not shown.
28 changes: 0 additions & 28 deletions browser/components/search/extensions/azerdict/manifest.json

This file was deleted.

Binary file not shown.
26 changes: 0 additions & 26 deletions browser/components/search/extensions/azet-sk/manifest.json

This file was deleted.

Binary file not shown.
28 changes: 0 additions & 28 deletions browser/components/search/extensions/baidu/manifest.json

This file was deleted.

Binary file not shown.
60 changes: 0 additions & 60 deletions browser/components/search/extensions/bing/manifest.json

This file was deleted.

Binary file removed browser/components/search/extensions/bok-NO/favicon.png
Binary file not shown.
26 changes: 0 additions & 26 deletions browser/components/search/extensions/bok-NO/manifest.json

This file was deleted.

Loading

0 comments on commit 25620e4

Please sign in to comment.