browser.search.get() fails on ubuntu 18.04 FF68.0.1
Categories
(WebExtensions :: General, defect, P1)
Tracking
(firefox-esr60 unaffected, firefox-esr68 wontfix, firefox68 wontfix, firefox69 wontfix, firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox-esr68 | --- | wontfix |
firefox68 | --- | wontfix |
firefox69 | --- | wontfix |
firefox70 | --- | fixed |
People
(Reporter: ssborbis, Assigned: robwu)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
browser.search.get() run on ubuntu 18.04 64bit, FF 68.0.1 (debug console, web extension background page, etc )
Actual results:
An unexpected error occured
Expected results:
Promise resolves with array of one-click search engines
Comment 1•5 years ago
•
|
||
I need to check on FFx build vs Canonical build, Canonical may be removing it.
Edited: reporter did confirm it's a distro issue.
Confirmed it only occurs in the Canonical build. Tarball 68.0.1 works as expected
Thank you for checking that!
This is always frustrating with distro builds, they may disable features for any number of reasons, which can cause things like this.
One more step, if you have time. Can you install this sample extension on the Canonical build and see if it works or not?
https://github.com/mdn/webextensions-examples/tree/master/menu-search
Using menu-search as temp add-on
Canonical - fail ( Error: An unexpected error occurred .......... undefined )
Official - works as expected
Comment 5•5 years ago
|
||
This is working with other distros. Maybe something Snap related?
(In reply to Mike Kaply [:mkaply] from comment #5)
This is working with other distros. Maybe something Snap related?
I had an addon user report this bug on ubuntu 18.04 64bit, confirmed on my vbox install. I'll test snap vs apt
Assignee | ||
Comment 7•5 years ago
|
||
Cannot reproduce on Ubuntu 18.04, Firefox 68.0.1 (Canonical, installed via apt
, Dutch locale).
If you are able to reproduce, could you check whether the global JavaScript console (Ctrl-Shift-J) contains any errors?
The error could be caused by https://searchfox.org/mozilla-central/rev/b38e3beb658b80e1ed03e0fdf64d225bd4a40327/browser/components/extensions/parent/ext-search.js#56
... when a search engine is defined with a non-existing icon URL.
Assignee | ||
Comment 8•5 years ago
|
||
I went to https://packages.ubuntu.com/bionic/web/firefox
and downloaded the source package from http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_68.0.1+build1-0ubuntu0.18.04.1.debian.tar.xz
Inside that package, there is debian/searchplugins/amazondotcom.xml
(and many other amazon*.xml
files). They reference resource://search-plugins/images/amazon.ico
.
This file was removed in part 3 of bug 1496075, so any request to fetch that image URL will fail, and hence break browser.search.get
.
(In reply to Rob Wu [:robwu] from comment #8)
I went to https://packages.ubuntu.com/bionic/web/firefox
and downloaded the source package from http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_68.0.1+build1-0ubuntu0.18.04.1.debian.tar.xzInside that package, there is
debian/searchplugins/amazondotcom.xml
(and many otheramazon*.xml
files). They referenceresource://search-plugins/images/amazon.ico
.
This file was removed in part 3 of bug 1496075, so any request to fetch that image URL will fail, and hence breakbrowser.search.get
.
Yep, simply deleting the Amazon engine without an icon fixed the issue. I'll let the user know.
Assignee | ||
Comment 10•5 years ago
|
||
All built-in engines have migrated from OpenSearch to WebExtensions.
WebExtensions do not support resource: or chrome:-URLs in their
favicon_url
field, so the "resource:" and "chrome:" URLs can only be
used by external opensearch XML files. These should not rely on internal
resources from omni.ja, as the bug shows. So just drop support for
"chrome:" and "resource:"-URLs, as we don't need them any more.
Current OpenSearch engines that relied on chrome/resource:-URLs can
either replace the URL with a data:-URL, or migrate to WebExtensions.
Assignee | ||
Comment 11•5 years ago
|
||
(linking to meta bug 1517486, because the proposed patch removes a feature that is not supported by the WebExtension format)
Comment 12•5 years ago
|
||
Thanks everyone for their help getting to next steps on this bug! Y'all rock. 🙌
Updated•5 years ago
|
Updated•5 years ago
|
Comment 13•5 years ago
|
||
I'll fix the URLs in the partner distro repository.
Comment 14•5 years ago
|
||
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/778471f56de7 Drop support for resource/chrome icons in search engines r=mkaply,daleharvey,mixedpuppy
Comment 15•5 years ago
|
||
bugherder |
Comment 16•5 years ago
|
||
Is this something we should consider for uplift or can it ride Fx70 to release?
Comment 17•5 years ago
|
||
Is this something we should consider for uplift or can it ride Fx70 to release?
Getting it on 69 would be nice, but the Snap problem specifically will be fixed by a change to their distro.
Assignee | ||
Comment 18•5 years ago
|
||
Let's ride the train. The number of users that are affected by this is probably small. A work-aroumd for them is to delete the (opensearch) file/engine.
Updated•5 years ago
|
Comment 19•5 years ago
|
||
Hello,
I've tried to reproduce this on Ubuntu 18.04.2 LTS 64-bit on Firefox Release 68.0.1 by downloading and temporarily adding in about:debugging the "menu-search" extension manifest from comment 3.
After which debugging mode was enabled, a Debug performed and also I used the the browser.search.get() function in the console.
No error was received; for more details please check the "console browser search" attachment.
If manual QA is still needed on this issue, could you please add the "qe+" verify flag and also provided more steps or details in order to test?
Thank you
Assignee | ||
Comment 20•5 years ago
|
||
There is automated test coverage.
Updated•5 years ago
|
Updated•2 years ago
|
Description
•