Closed Bug 1271895 Opened 8 years ago Closed 8 years ago

Webextension does not show its preferences (options) in Add-ons Manager

Categories

(Toolkit :: Add-ons Manager, defect)

46 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: proshins, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160425115943

Steps to reproduce:

1. Create a webextension with this entry in manifest.json:
"options_ui": {"page": "options.html"}

2. Create options.html file having some form element which saves a user choice on this element with this method:
myElem.onchange = function () { chrome.storage.local.set({myElem: myElem.value}); };

3. Submit an extension to and then install from AMO.




Actual results:

The extension has neither [Preferences] button in Add-ons Manager Extensions list nor any preferences seen when you click on the extension More link.


Expected results:

A user must have access to the extension preferences (options).
Component: Untriaged → Add-ons Manager
Product: Firefox → Toolkit
The options ui didn't land until Firefox 48 and you are using 45. 

I cannot reproduce in nightly:

https://www.dropbox.com/s/o93cx51cp84n6zb/Screenshot%202016-05-11%2010.00.38.png?dl=0
https://www.dropbox.com/s/79o07gnazaem7tv/Screenshot%202016-05-11%2010.00.18.png?dl=0
Flags: needinfo?(proshins)
Well, I confirm nightly 49 works! The options opened under the extension description.

Developer Edition 48 does not work.

Firefox 47 has a [Preferences] button (great!) but opens options in a pop-up window where javascript does not work :((.

Firefox 46 still does not work.

Firefox 45 not tested as for that already no sense I think.

https://drive.google.com/folderview?id=0ByhUsDkUzT4ITU4wTGRZbUxuQjg&usp=drive_web

I am on Ubuntu 12.04.
I would recommend not testing on anything newer that 48, nothing is going to change on those browsers. I can see the preferences button and it works for me in 48. Is there anything in your logs?
Flags: needinfo?(proshins)
Developer Edition 48 works now!

How it could be? Just one hour later I've opened the same browser (48.0a2) and it gives me different result, which is great but what is the reason for this behaviour? I've upgraded it from 47 to 48 version before taking the screenshot and then restarted the browser. May be it need to be restarted two times...   

Anyway, at least now webextensions developers may be pointed to this issue if they will have questions like "Where is my preferences?"
There was no support for options pages in WebExtensions in Firefox 47. The only way you could have gotten a Preferences button for a WebExtension in 47 would be if you had an options.xul file in your extension root, and that would not have opened in a popup.

Can you provide more details about how you triggered this? Did you install the exact version of the add-on that you attached to this bug? Did you have a different version installed previously? Are you using the same profile directory with multiple versions of Firefox? What other extensions do you have installed?
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
(In reply to Kris Maglione [:kmag] from comment #5)

> Can you provide more details about how you triggered this? Did you install
> the exact version of the add-on that you attached to this bug? Did you have
> a different version installed previously? Are you using the same profile
> directory with multiple versions of Firefox? What other extensions do you
> have installed?

It was the latest version installed from AMO but before that it was on this profile as a temporary install from my file system.

In the example I've used the Nightly 49 profile to launch Firefox 47. You can see the list of extensions installed on this profile in the screenshot I've added to the previous screenshots. As you see the [Preferences] button has disappeared after reinstalling the extension from AMO.
(In reply to drugan from comment #6)
> In the example I've used the Nightly 49 profile to launch Firefox 47.

That's your problem, then. You're trying to use an add-on database entry
created by Firefox 49 on Firefox 47, where it isn't supported.

Profile migration only works one way. You can use a profile from an older
version of Firefox, but not the other way around. And once you've used it with
a newer version, you can't use it with the old version again.

> You can see the list of extensions installed on this profile in the
> screenshot

I can only see some of them. Many of them are covered by another window.
(In reply to Kris Maglione [:kmag] from comment #7)

> I can only see some of them. Many of them are covered by another window.

See extensions.png image in this folder:

https://drive.google.com/folderview?id=0ByhUsDkUzT4ITU4wTGRZbUxuQjg&usp=drive_web
Depends on: 1272446
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: