Closed
Bug 1487854
Opened 7 years ago
Closed 7 years ago
browser.search.get should use getVisibleEngines method
Categories
(WebExtensions :: General, enhancement, P5)
WebExtensions
General
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.
Comment 2•7 years ago
|
||
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
Updated•7 years ago
|
Priority: -- → P5
Comment 3•7 years ago
|
||
If this is your first contribution, please refer to https://wiki.mozilla.org/Add-ons/Contribute/Code on how to get started.
Mentor: rob
| Assignee | ||
Comment 4•7 years ago
|
||
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)
Comment 5•7 years ago
|
||
(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 | ||
Updated•7 years ago
|
Assignee: nobody → arshadkazmi42
Status: NEW → ASSIGNED
| Assignee | ||
Comment 6•7 years ago
|
||
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)
Comment 7•7 years ago
|
||
Yes, verifying that the following test passes is sufficient:
mach test browser/components/extensions/test/browser/browser_ext_search.js
Flags: needinfo?(mozilla)
| Assignee | ||
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment on attachment 9008659 [details]
Bug 1487854 - Use getVisibleEngines in browser.search.get
Rob Wu [:robwu] has approved the revision.
Attachment #9008659 -
Flags: review+
Updated•7 years ago
|
Attachment #9008659 -
Attachment description: Downloads.search, getEngines with filter changed to getVisibleEngines → Use getVisibleEngines in browser.search.get
Updated•7 years ago
|
Attachment #9008659 -
Attachment description: Use getVisibleEngines in browser.search.get → Bug 1487854 - Use getVisibleEngines in browser.search.get
Comment 10•7 years ago
|
||
Comment on attachment 9008659 [details]
Bug 1487854 - Use getVisibleEngines in browser.search.get
Andrew Swan [:aswan] has approved the revision.
Attachment #9008659 -
Flags: review+
| Assignee | ||
Comment 11•7 years ago
|
||
should I add check-in needed flag in this now?
Flags: needinfo?(rob)
Flags: needinfo?(aswan)
| Assignee | ||
Updated•7 years ago
|
Comment 12•7 years ago
|
||
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
Comment 13•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•