Closed Bug 1487854 Opened 7 years ago Closed 7 years ago

browser.search.get should use getVisibleEngines method

Categories

(WebExtensions :: General, enhancement, P5)

enhancement

Tracking

(firefox64 fixed)

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: kernp25, Assigned: arshadkazmi42, Mentored)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

But it uses Services.search.getEngines method instead and then filter the hidden engines out.
What do you think?
Flags: needinfo?(rob)
Flags: needinfo?(mozilla)
No idea why I did it that way, but yeah, probably worth a one liner.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(rob)
Flags: needinfo?(mozilla)
Keywords: good-first-bug
Priority: -- → P5
If this is your first contribution, please refer to https://wiki.mozilla.org/Add-ons/Contribute/Code on how to get started.
Mentor: rob
I am interested to work on this. So I explored a bit about this and found this file https://searchfox.org/mozilla-central/source/browser/components/extensions/parent/ext-search.js#38 I think, changes needs to be made in this file But I am not so sure, about what types of test cases will be required to test this. Or it should just pass the existing test cases which is already there?
Flags: needinfo?(rob)
(In reply to Arshad Kazmi from comment #4) > I am interested to work on this. > > So I explored a bit about this and found this file > > https://searchfox.org/mozilla-central/source/browser/components/extensions/ > parent/ext-search.js#38 > > I think, changes needs to be made in this file You are correct. > But I am not so sure, about what types of test cases will be required to > test this. > Or it should just pass the existing test cases which is already there? There should not need to be a new test for this. Just passing the existing test should be enough.
Flags: needinfo?(rob)
Assignee: nobody → arshadkazmi42
Status: NEW → ASSIGNED
For this checking this test case is enough? Or is there any other test case which needs to be validated too? https://searchfox.org/mozilla-central/source/browser/components/extensions/test/browser/browser_ext_search.js
Flags: needinfo?(mozilla)
Yes, verifying that the following test passes is sufficient: mach test browser/components/extensions/test/browser/browser_ext_search.js
Flags: needinfo?(mozilla)
Comment on attachment 9008659 [details] Bug 1487854 - Use getVisibleEngines in browser.search.get Rob Wu [:robwu] has approved the revision.
Attachment #9008659 - Flags: review+
Attachment #9008659 - Attachment description: Downloads.search, getEngines with filter changed to getVisibleEngines → Use getVisibleEngines in browser.search.get
Attachment #9008659 - Attachment description: Use getVisibleEngines in browser.search.get → Bug 1487854 - Use getVisibleEngines in browser.search.get
Comment on attachment 9008659 [details] Bug 1487854 - Use getVisibleEngines in browser.search.get Andrew Swan [:aswan] has approved the revision.
Attachment #9008659 - Flags: review+
should I add check-in needed flag in this now?
Flags: needinfo?(rob)
Flags: needinfo?(aswan)
Flags: needinfo?(rob)
Flags: needinfo?(aswan)
Keywords: checkin-needed
Pushed by apavel@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/05fcdb6d47cf Use getVisibleEngines in browser.search.get r=robwu, aswan
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: