Closed Bug 1810852 Opened 1 year ago Closed 1 year ago

Move _extensionID and _locale out of SearchEngine and into AddonSearchEngine

Categories

(Firefox :: Search, task, P3)

task

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: standard8, Assigned: victoria.o.ajala, Mentored)

Details

(Whiteboard: [lang=js])

Attachments

(1 file)

We still have _extensionID references in SearchEngine, we should investigate moving them out to AddonSearchEngine, since they are only really relevant there.

There's also _locale that we should move as well.

Summary: Move _extensionID out of SearchEngine and into AddonSearchEngine → Move _extensionID and _locale out of SearchEngine and into AddonSearchEngine

I believe the work here is possible, bug 1819102 is something similar that was done for a few OpenSearchEngine fields. Use searchfox to find the class definitions/look at the source.

Mentor: standard8
Whiteboard: [lang=js]

Hi @Mark Banner, I would like to work on this bug, I'm currently going through the comments and the similar bug you included in [comment 3] to understand how to go about it. I've used searchfox to find the specific files that need fixing. I assume the fix should be moving _extensionID references in toolkit/components/search/SearchEngine.sys.mjs to toolkit/components/search/AddonSearchEngine.sys.mjs as well as _locale.

(In reply to Victoria Ajala from comment #3)

Hi @Mark Banner, I would like to work on this bug, I'm currently going through the comments and the similar bug you included in [comment 3] to understand how to go about it. I've used searchfox to find the specific files that need fixing. I assume the fix should be moving _extensionID references in toolkit/components/search/SearchEngine.sys.mjs to toolkit/components/search/AddonSearchEngine.sys.mjs as well as _locale.

Generally yes, but where's there are functions (e.g. this one) in SearchEngine that use _extensionID, we'll need to keep those returning an appropriate value, and override the function in AddonSearchEngine.

Assignee: nobody → victoria.o.ajala

(In reply to Mark Banner (:standard8) from comment #4)

Generally yes, but where's there are functions (e.g. this one) in SearchEngine that use _extensionID, we'll need to keep those returning an appropriate value, and override the function in AddonSearchEngine.

I've created a patch for this but I've only removed the _extensionID function in the SearchEngine. I'm unsure where and how to override the function in AddonSearchEngine.

Attachment #9326631 - Attachment description: Bug 1810852 Moved _extensionID and _locale out of SearchEngine and into AddonSearchEngine. r=standard8 → Bug 1810852 Moved _extensionID and _locale functions out of SearchEngine and into AddonSearchEngine. r=standard8
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c8fc4588a1c6
Moved _extensionID and _locale functions out of SearchEngine and into AddonSearchEngine. r=Standard8
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: