Closed Bug 1500741 Opened 6 years ago Closed 6 years ago

"encoding" parameter not parsed in custom search engine overrides

Categories

(WebExtensions :: Untriaged, defect)

64 Branch
defect
Not set
normal

Tracking

(firefox65 verified)

VERIFIED FIXED
mozilla65
Tracking Status
firefox65 --- verified

People

(Reporter: bugzilla, Assigned: mkaply)

Details

(Keywords: dev-doc-complete)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Steps to reproduce:

Using Firefox 64.0b2.

Tried to crate an extension with my own custom search engines, I've copied and pasted an official example from:

https://github.com/mdn/webextensions-examples/blob/master/discogs-search/manifest.json


Actual results:

Upon loading the extension I see this warning:

Reading manifest: Error processing chrome_settings_overrides.search_provider.encoding: An unexpected property was found in the WebExtension manifest.

The search engine works as expected, though.


Expected results:

No warnings. The "encoding" parameter should be correctly parsed and validated.
Product: Firefox → WebExtensions
Hi, Thanks for taking the time to report this issue, can you please provide the extension you created or a link to it so we can reproduce the issue as well, also can you please try this issue in the latest version of nightly you can find it here: https://nightly.mozilla.org.
Attached file discogs-search.zip
test case for the issue report
Hello Rares,

thanks for your quick feedback!

The issue can be reproduced with latest nightly 65.0a1 (2018-10-23) (Linux 64-Bit)

Also, uploaded the extension to reproduce the issue.

Let me know if you need more info.
Hi, Thanks for the Add-on, we can reproduce the issue as well in Firefox Nightly 65.0a1 (2018-10-23).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Mike, is this something we should support?
Status: NEW → UNCONFIRMED
Ever confirmed: false
Flags: needinfo?(mozilla)
Yes. It's easy to support.
Assignee: nobody → mozilla
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(mozilla)
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/878c6403d4da
Support encoding for WebExtension engines. r=mixedpuppy
https://hg.mozilla.org/mozilla-central/rev/878c6403d4da
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Mike and all the team, thank you for taking care of this quickly!
Hi, I can reproduce this issue in older versions of Firefox Nightly but I can't reproduce it in Nightly 65.0a1 (2018-11-07) Build ID 20181107095322 from (https://tools.taskcluster.net/index/gecko.v2.mozilla-central.latest.firefox/win64-opt). I will mark this issue accordingly.
Status: RESOLVED → VERIFIED
@mkpaly, I'm thinking I'd like to see a followup based on my last comment in phab.

queryCharset: new TextEncoder(searchProvider.encoding).encoding.toUpperCase();

null or undefined still produce utf-8.  This would at least prevent garbage in.
Flags: needinfo?(mozilla)
sigh. forget it.

https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder

It doesn't produce anything other than utf-8.
Flags: needinfo?(mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: