Closed Bug 1499095 Opened 6 years ago Closed 2 years ago

Adding a search engine that was removed by the policies.json remains even after restarting Firefox

Categories

(Firefox :: Enterprise Policies, defect, P4)

defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox-esr60 --- wontfix
firefox-esr91 --- fixed
firefox62 --- wontfix
firefox63 --- wontfix
firefox64 --- wontfix
firefox101 --- fixed

People

(Reporter: emilghitta, Assigned: mkaply)

References

Details

Attachments

(1 file)

[Affected versions]:
Firefox 64.0a1 
Firefox 63.0b14
Firefox 62.0.3
Firefox 60.2.2 esr

[Affected platforms]:
Windows 10 64bit.
macOS 10.13.6
Ubuntu 16.04 64bit.

[Preconditions]
Add the following code inside the policies.json file:

{
"policies": {
	"SearchEngines": {
		"Remove": ["Google"]
}
}
}

[Steps to reproduce]:
1. Launch Firefox.
2. Access the about:preferences#search page.
3. Click the "Restore Default Search Engines" button.
4. Restart Firefox.

[Expected result]:
"Google" search engine is no displayed.

[Actual result]:
"Google" search engine is displayed (since this is a runOnce policy). 

I think that we could add the same behavior as in Bug 1498223 for this policy as well.
Ideally we wouldn't have any runOnce policies, but they are a compromise to some things that are harder/not worth to do on every startup.

The built-in engines can't really be removed and it causes this trouble with the Restore button. A non built-in engine wouldn't suffer from this.

This could be worked around similarly as in bug 1498223 but it's not something that I think we should spend time at the moment.
Mentor: felipc
Priority: -- → P4
Whiteboard: [lang=js]
Mentor: felipc
Whiteboard: [lang=js]
Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/633eedada836
Remove engines hidden by policy after restoring defaults. r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

Comment on attachment 9270776 [details]
Bug 1499095 - Remove engines hidden by policy after restoring defaults. r?Standard8

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: ESR only search related function, parity with 101
  • User impact if declined: Search engines don't add remove completely
  • Fix Landed on Version: 101
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Automated test ESR only
Attachment #9270776 - Flags: approval-mozilla-esr91?

Comment on attachment 9270776 [details]
Bug 1499095 - Remove engines hidden by policy after restoring defaults. r?Standard8

Approved for 91.10esr.

Attachment #9270776 - Flags: approval-mozilla-esr91? → approval-mozilla-esr91+

Hey Mike!

Unfortunately I'm still able to reproduce this issue using Firefox 91.10.0esr (provided in comment 8) on Windows 10 64bit.

After clicking the "Restore Default Search Engines" & refreshing the about:preferences#search, the Google search engine is displayed inside the Search Engine list. After restarting Firefox (Or after closing/re-opening Firefox), the Google search engine persists and is set as the default search engine.

Can you please take a look? Thank you!

Flags: needinfo?(mozilla)

Sorry, took me forever to get to this. You're right it doesn't seem to be working.

Can you open a new bug? I'll take a look.

I fixed something, just not everything :)

Flags: needinfo?(mozilla)

So Google is the only engine it doesn't work for because there is later code that unhides the app default engine.

Thanks for finding this!

(In reply to Mike Kaply [:mkaply] from comment #10)

Can you open a new bug? I'll take a look.

Sure thing! Filled Bug 1797965 for the Google case. (Sorry for the delay. I was in PTO)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: