Change nsDocShell's notification of keyword-search pass a string rather than an engine
Categories
(Firefox :: Search, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: standard8, Assigned: janey, Mentored)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lang=js|cpp][good-next-bug])
Attachments
(1 file)
If we pass a string for the engine name in the keyword-search
notification, then nsDocShell will no longer need to import the search service. This will help with potentially changing the search service to not be an XPCOM service (bug 1643008). It is still slightly TBD if we do make the change or not, but I think this is a useful simplification.
The keyword-search
notification and handler can be found here: https://searchfox.org/mozilla-central/search?q=keyword-search&path=*&case=false®exp=false
nsDocShell::MaybeNotifyKeywordSearchLoading
should be changed to pass aProvider
as the first argument, however, that needs to be wrapped into a nsISupports interface, e.g. example here.
On the JavaScript side, I think we can use Services.search.getEngineByName(subject.data)
to get the engine object.
Reporter | ||
Comment 2•3 years ago
|
||
(In reply to mgroot from comment #1)
I would like to try to fix this issue.
Sure. Thank you for the offer.
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 3•3 years ago
|
||
:mgroot, are you still working on this?
I am, but I have little time at the moment so if it is high priority feel free to reassign.
Reporter | ||
Comment 5•3 years ago
|
||
(In reply to mgroot from comment #4)
I am, but I have little time at the moment so if it is high priority feel free to reassign.
That is fine, this isn't high priority at the moment, so just wanted to check. Just let us know if anything changes. If you need help let us know.
Reporter | ||
Comment 6•3 years ago
|
||
Opening this up for others, as mgroot hasn't had time to get to it.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Hey guys! Would love to work on this one!
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 8•3 years ago
|
||
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7987621675da Change nsDocShell's notification of keyword-search pass a string rather than an engine. r=Standard8
Comment 10•3 years ago
|
||
bugherder |
Description
•