Closed Bug 1411123 Opened 7 years ago Closed 6 years ago

Re-enabling an extension that overrides the home page does not update about:preferences correctly

Categories

(WebExtensions :: General, defect, P3)

58 Branch
defect

Tracking

(firefox57 unaffected, firefox58 wontfix, firefox59 wontfix, firefox60 verified)

VERIFIED FIXED
mozilla60
Tracking Status
firefox57 --- unaffected
firefox58 --- wontfix
firefox59 --- wontfix
firefox60 --- verified

People

(Reporter: bsilverberg, Assigned: mstriemer)

Details

Attachments

(3 files)

If you install an extension that overrides the home page, then disable it, then restart Firefox, then re-enable it, the home page is overridden but about:preferences doesn't include the expected controls around the home page.

STR:

1. Install an extenion which overrides the home page from a file via about:addons.
2. Check about:preferences. All appears as expected: home page is overidden and user can not edit it without disabling the extension.
3. Disable the extension.
4. Check about:preferences. All appears as expected: home page is back to the default and user can edit it.
5. Shut down Firefox normally.
6. Start Firefox.
7. Go to about:addons and enable the extension.
8. Check about:preferences. It does not appear as expected: The home page value is overidden, but it is editable by the user and the message for disabling the extension is not present.

I am attaching a manifest.json file that can be used to generate an extension to reproduce this issue.

Note that we tested this on 57 and Nightly and it reproduces on Nightly but not on 57.
Priority: -- → P3
I think this is happening because ExtensionSettingsStore.addSetting() only updates the value of the setting. If it is disabled, it stays disabled. Calling addSetting() should likely enable the setting.
Assignee: nobody → mstriemer
Comment on attachment 8945628 [details]
Bug 1411123 - Enable settings when set in ExtensionSettingsStore

https://reviewboard.mozilla.org/r/215758/#review221504
Attachment #8945628 - Flags: review?(aswan) → review+
Keywords: checkin-needed
Pushed by rgurzau@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8e7974162770
Enable settings when set in ExtensionSettingsStore r=aswan
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8e7974162770
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Attached image reanable extension.gif
I was able to reproduce this bug in Firefox 58.0a1(20171023220222).
Retested and verified the bug in Firefox 60.0a1(20180205100240) on Windows 10 64Bit and Mac OS  X 10.13.2.
Status: RESOLVED → VERIFIED
should we get this in 59?
Flags: needinfo?(mstriemer)
Guess not, we're now a week away from RC.
Flags: needinfo?(mstriemer)
Will a fix go in 60? Able to reproduce.
This is fixed in 60, are you able to reproduce it in Firefox Beta?
If so, please spell out the exact steps you took.
Flags: needinfo?(alexkjones)
Seeing it fixed in FF60 beta, thanks!
Flags: needinfo?(alexkjones)
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: