Closed
Bug 1415727
Opened 7 years ago
Closed 7 years ago
resetToOriginalDefaultEngine doesn't work if the original engine is hidden
Categories
(Firefox :: Search, defect, P2)
Firefox
Search
Tracking
()
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: mkaply, Assigned: mkaply)
Details
(Whiteboard: [fxsearch])
Attachments
(1 file)
If you hide the default engine, then call resetToOriginalDefaultEngine, it resets to a different engine.
The function should unhide the original engine if it is hidden.
Comment 1•7 years ago
|
||
Is that needed in 57 ?
Comment 2•7 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #1)
> Is that needed in 57 ?
No. Nor in 58. It's just an improvement to make our API less surprising.
Updated•7 years ago
|
Priority: -- → P2
Whiteboard: [fxsearch]
Comment hidden (mozreview-request) |
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8933474 [details]
Bug 1415727 - resetToOriginalDefaultEngine should unhide engine.
https://reviewboard.mozilla.org/r/204404/#review210138
::: toolkit/components/search/nsSearchService.js:2837
(Diff revision 1)
>
> return this.getEngineByName(defaultEngine);
> },
>
> resetToOriginalDefaultEngine: function SRCH_SVC__resetToOriginalDefaultEngine() {
> + this.originalDefaultEngine.hidden = false;
Please don't call the originalDefaultEngine getter twice.
Should we cleanup existing callers that no longer need to do the .hidden = false dance?
Attachment #8933474 -
Flags: review?(florian) → review-
Assignee | ||
Comment 6•7 years ago
|
||
> Should we cleanup existing callers that no longer need to do the .hidden = false dance?
I checked that and the cases i found were enumerating through the entire default list and unhiding everything.
Did you find something different?
Comment 7•7 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #6)
> Did you find something different?
No, it looks like https://searchfox.org/mozilla-central/rev/7f45cb7cc0229398fc99849bdc150cb6462d6966/browser/components/nsBrowserGlue.js#2202 is the only "caller" that could be cleaned up.
Comment hidden (mozreview-request) |
Comment 9•7 years ago
|
||
mozreview-review |
Comment on attachment 8933474 [details]
Bug 1415727 - resetToOriginalDefaultEngine should unhide engine.
https://reviewboard.mozilla.org/r/204404/#review210994
::: toolkit/components/search/nsSearchService.js:2837
(Diff revisions 1 - 2)
>
> return this.getEngineByName(defaultEngine);
> },
>
> resetToOriginalDefaultEngine: function SRCH_SVC__resetToOriginalDefaultEngine() {
> - this.originalDefaultEngine.hidden = false;
> + let originalDefaultEngine = this.originalDefaultEngine;;
Please remove the duplicated ';' here.
Attachment #8933474 -
Flags: review?(florian) → review+
Comment hidden (mozreview-request) |
Comment 11•7 years ago
|
||
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/91033fe6389a
resetToOriginalDefaultEngine should unhide engine. r=florian
Comment 12•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Updated•7 years ago
|
Assignee: nobody → mozilla
You need to log in
before you can comment on or make changes to this bug.
Description
•