Closed
Bug 1453350
Opened 7 years ago
Closed 6 years ago
Search Engine Policies should be on modify, not run once
Categories
(Firefox :: Enterprise Policies, defect, P1)
Firefox
Enterprise Policies
Tracking
()
VERIFIED
FIXED
Firefox 62
People
(Reporter: mkaply, Assigned: kanika16047)
References
Details
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
Felipe
:
review+
RyanVM
:
approval-mozilla-esr60+
|
Details |
I'm thinking the search engine policies (at least default), should be based on modification, not just run once.
Also, I'm wondering about the ability to remove an engine that was added via the policy.
Comment 2•7 years ago
|
||
I actually thought this was already the case. But yeah, that sounds better
Flags: needinfo?(felipc)
Reporter | ||
Updated•7 years ago
|
Priority: -- → P1
Updated•7 years ago
|
Assignee: nobody → kanika16047
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•6 years ago
|
||
:felipe Can you please guide me about what we wish to achieve here?
I understood 1) Replace 'runOnce' by 'runOncePerModification' everywhere in the policy. 2) Add "Remove" attribute (an object similar to "Add" attribute) to the param of the policy.
Thank you! :)
Flags: needinfo?(felipc)
Comment 4•6 years ago
|
||
Hi Kanika, for this bug, we just want to do the runOnce -> runOncePerModification change.
The Remove feature is something that we want, but it should probably be done in a separate bug. If you're interested in that, feel free to create a new bug about that and assign it to you :)
Flags: needinfo?(felipc)
Comment hidden (mozreview-request) |
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8982998 [details]
Bug 1453350 - Search Engines Policy runs on modification
https://reviewboard.mozilla.org/r/248842/#review255670
Attachment #8982998 -
Flags: review?(felipc) → review+
Comment 7•6 years ago
|
||
So this is the change expected, but the test browser_policy_search_engine.js fails with it. It just needs some adjustments (I didn't look into it to see why)
Assignee | ||
Comment 8•6 years ago
|
||
FAIL Specified search engine should be the default - Got Google, expected MozSearch
FAIL Specified search engine should be the default - Got Bing, expected MozSearch
These are the errors that we're getting. I cannot understand that in the test we're changing the policy by setting default engine as Mozsearch, so ideally setDefaultSearchEngine should be called and default engine should be set up successfully.
Can't we see the errors thrown by Policies.jsm to understand more about why it is failing?
Comment 9•6 years ago
|
||
Ah, I do see the error when running the test. It's just hard to spot because there's some much info on the output.
Here's what I got, when I ran `mach test browser_policy_search_engine.js`:
0:06.73 INFO Console message: [JavaScript Error: "TypeError: callback is not a function" {file: "resource:///modules/policies/Policies.jsm" line: 857}]
I missed this in the review.. The prob is that the runOncePerModification requires one more parameter than the runOnce function.. You need to define what's the value to be compared (and then the function call is the 3rd parameter)
Comment hidden (mozreview-request) |
Comment 11•6 years ago
|
||
Pushed by felipc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d261d4228bd8
Search Engines Policy runs on modification r=Felipe
Comment 12•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Reporter | ||
Comment 14•6 years ago
|
||
We're not doing policy updates on ESR60 for this go cycle.
Flags: needinfo?(mozilla)
Updated•6 years ago
|
Reporter | ||
Comment 15•6 years ago
|
||
Comment on attachment 8982998 [details]
Bug 1453350 - Search Engines Policy runs on modification
[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration: Policy only change
User impact if declined:
Fix Landed on Version: Firefox 62
Risk to taking this patch (and alternatives if risky): Low Policy Only.
String or UUID changes made by this patch: None
See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Attachment #8982998 -
Flags: approval-mozilla-esr60?
Comment 16•6 years ago
|
||
Comment on attachment 8982998 [details]
Bug 1453350 - Search Engines Policy runs on modification
Policy engine fix needed on ESR60. Approved for ESR 60.2.
Attachment #8982998 -
Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
Comment 17•6 years ago
|
||
bugherder uplift |
status-firefox-esr60:
--- → fixed
Updated•6 years ago
|
Flags: qe-verify+
Comment 18•6 years ago
|
||
This bug was covered by the overall testing efforts invested in the New Enterprise Policies feature.
Marking this as verified fixed using Firefox 62.0b16 (BuildId:20180809104529) and the ESR try build (provided in comment 17) on Windows 10 64bit and macOS 10.13.4
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•