4

Move _extensionID and _locale out of SearchEngine and into AddonSearchEngine

 2 years ago
source link: https://bugzilla.mozilla.org/show_bug.cgi?id=1810852
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Closed Bug 1810852 Opened 3 months ago Closed 15 days ago

Move _extensionID and _locale out of SearchEngine and into AddonSearchEngine

Categories

(Firefox :: Search, task, P3)

Tracking

(bug RESOLVED as FIXED)

RESOLVED FIXED

114 Branch

Tracking Status
firefox114 --- fixed

People

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

Details

(Whiteboard: [lang=js])

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 [email protected]:
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: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
You need to log in before you can comment on or make changes to this bug.

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK