Closed Bug 1384709 Opened 7 years ago Closed 7 years ago

addEngineWithDetails should store the extension ID in the loadpath

Categories

(Firefox :: Search, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: mkaply, Assigned: mkaply)

Details

Attachments

(1 file)

Right now addEngineWithDetails uses

    engine._loadPath = "[other]addEngineWithDetails";

for the load path.

If there is an extensionID passed, we should incorporate it into the loadPath.

This was suggested on a patch in bug 1301315, but we ended up not modifying nsSearchServices, so it was lost.

From Florian:

> That being said, for loadpath, are you thinking:
> 
> if (aExtensionID) {
> engine._loadPath = "[" + aExtensionID + "]addEngineWithDetails";

I would prefer the string between [] to remain a constant, so I would like something like:
[extension]addEngineWithDetails:" + aExtensionID
Comment on attachment 8895064 [details]
Bug 1384709 - Store extension ID in loadPath.

https://reviewboard.mozilla.org/r/166194/#review172716

Thanks!
Attachment #8895064 - Flags: review?(florian) → review+
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/51ecd7a311ef
Store extension ID in loadPath. r=florian
https://hg.mozilla.org/mozilla-central/rev/51ecd7a311ef
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: