Closed Bug 1236498 Opened 8 years ago Closed 8 years ago

Unable to replace user added search engine icon by editing search.json(.mozlz4) or xml file

Categories

(Firefox :: Search, defect, P1)

45 Branch
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox44 --- unaffected
firefox45 - wontfix
firefox46 - wontfix

People

(Reporter: alice0775, Unassigned)

References

()

Details

(Keywords: regression, ux-implementation-level, Whiteboard: [fxsearch])

[Tracking Requested - why for this release]:

[Tracking Requested - why for this release]:

Actual Results:
Search engine xml files that the user has added are no longer exist.
Unable to edit search.json.mozlz4 file using text editor.
So, unable to replace data:image/x-icon.

Expected Results:
Able to edit search.json.mozlz4 and replace data:image/x-icon
Directly editing search.json.mozlz4 (and more general files stored in the profile folder) is not supported. I replied in the reddit thread with a possible solution (download the xml file, edit locally, then install using "File -> Open File…").
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
(In reply to Florian Quèze [:florian] [:flo] from comment #2)
> Directly editing search.json.mozlz4 (and more general files stored in the
> profile folder) is not supported. 

> I replied in the reddit thread with a
> possible solution (download the xml file, edit locally, then install using
> "File -> Open File…").

I can not install local xml file  using "File -> Open File…".  ---> not SOLVED!
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
(In reply to Alice0775 White from comment #3)

> I can not install local xml file  using "File -> Open File…".  ---> not
> SOLVED!

Why not? Is there an error message?
Not supported feature and this is not really critical to deserve tracking.
(In reply to Florian Quèze [:florian] [:flo] from comment #4)
> (In reply to Alice0775 White from comment #3)
> 
> > I can not install local xml file  using "File -> Open File…".  ---> not
> > SOLVED!
> 
> Why not? Is there an error message?

There is no error messages. It is like showing an ordinary .xml file, with no prompts or options to install it as a search engine.
(In reply to Fanolian from comment #6)
> (In reply to Florian Quèze [:florian] [:flo] from comment #4)
> > (In reply to Alice0775 White from comment #3)
> > 
> > > I can not install local xml file  using "File -> Open File…".  ---> not
> > > SOLVED!
> > 
> > Why not? Is there an error message?
> 
> There is no error messages. It is like showing an ordinary .xml file, with
> no prompts or options to install it as a search engine.

Ah, sorry. File -> Open is to install an add-on (.xpi file).

A (less elegant) solution that works for search plugins is:
1. Set devtools.chrome.enabled to true in about:config
1. Open the browser console. (Tools -> Web Developer -> Browser Console)
2. Run Services.search.addEngine("file:///Users/.../opensearch.xml", null, null, false);

(For the file URL, you can copy what appeared in the URL bar after you used the "File -> Open File" menu item)
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → WONTFIX
There is an easier solution. Use this add-on: "Add OpenSearch XML" https://addons.mozilla.org/en-US/firefox/addon/add-opensearch-xml/
This functionality should be available natively in Firefox.
(In reply to Dentist from comment #8)
> There is an easier solution. Use this add-on: "Add OpenSearch XML"
> https://addons.mozilla.org/en-US/firefox/addon/add-opensearch-xml/
> This functionality should be available natively in Firefox.

+1
Using what ever means, I am now able to create custom search.
earlier I used to have custom_search.xml to add under searchplugins.
Tried above solutions, but didn't worked.
If I am able to at-least edit the hyper link to pass in address bar for search, it would be helpful.
Ex: duckduckgo.com to myownsite.com

Can I get any help in this regard. Not able to update search.json.mozlz4.

Thanks
You need to log in before you can comment on or make changes to this bug.