Closed
Bug 1359203
Opened 8 years ago
Closed 8 years ago
Create a preference to control whether legacy extensions may be enabled
Categories
(Toolkit :: Add-ons Manager, defect, P1)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: aswan, Assigned: aswan)
References
Details
(Whiteboard: triaged)
Attachments
(3 files)
No description provided.
Updated•8 years ago
|
Priority: -- → P1
Whiteboard: triaged
Updated•8 years ago
|
status-firefox55:
--- → affected
status-firefox57:
affected → ---
Assignee | ||
Comment 1•8 years ago
|
||
First and last call for bikeshedding on the preference name.
I propose "extensions.legacy.enabled"
Comment 2•8 years ago
|
||
+1, bikeshedding period over.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8868015 -
Flags: review?(kmaglione+bmo)
Attachment #8868017 -
Flags: review?(mh+mozilla)
Attachment #8868018 -
Flags: review?(kmaglione+bmo)
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8868017 [details]
Bug 1359203 Part 2 Add build-time constant for allowing legacy extensions
https://reviewboard.mozilla.org/r/139586/#review143388
::: browser/confvars.sh:69
(Diff revision 1)
>
> # Enable checking that add-ons are signed by the trusted root
> MOZ_ADDON_SIGNING=1
>
> +# Allow Legacy extensions unless explicitly overridden
> +MOZ_ALLOW_LEGACY_EXTENSIONS=1
Please move this to browser/moz.configure|toolkit/moz.configure. See what's done for e.g. MOZ_PLACES.
Attachment #8868017 -
Flags: review?(mh+mozilla)
Comment 7•8 years ago
|
||
mozreview-review |
Comment on attachment 8868015 [details]
Bug 1359203 Part 1 Replace AddonConstants with AddonSettings
https://reviewboard.mozilla.org/r/139584/#review143806
::: toolkit/mozapps/extensions/test/browser/browser_details.js:713
(Diff revision 1)
> });
> });
> });
>
> // These tests are only appropriate when signing can be turned off
> -if (!REQUIRE_SIGNING) {
> +if (!AppConstants.REQUIRE_SIGNING) {
These should be MOZ_REQUIRE_SIGNING
::: toolkit/mozapps/extensions/test/browser/browser_list.js:421
(Diff revision 1)
> is(get_node(addon, "error-link").value, "More Information", "Error link text should be correct");
> is(get_node(addon, "error-link").href, "http://example.com/addon9@tests.mozilla.org", "Error link should be correct");
> is_element_hidden(get_node(addon, "pending"), "Pending message should be hidden");
>
> // These tests are only appropriate when signing can be turned off
> - if (!REQUIRE_SIGNING) {
> + if (!AppConstants.REQUIRE_SIGNING) {
*MOZ_REQUIRE_SIGNING
Attachment #8868015 -
Flags: review?(kmaglione+bmo) → review+
Comment 8•8 years ago
|
||
mozreview-review |
Comment on attachment 8868018 [details]
Bug 1359203 Part 3 Add extensions.legacy.enabled preference
https://reviewboard.mozilla.org/r/139588/#review143812
::: toolkit/mozapps/extensions/internal/AddonSettings.jsm:43
(Diff revision 1)
> +
> +if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS || Cu.isInAutomation) {
> + XPCOMUtils.defineLazyPreferenceGetter(AddonSettings, "ALLOW_LEGACY_EXTENSIONS",
> + PREF_ALLOW_LEGACY, true);
> +} else {
> + makeConstant( "ALLOW_LEGACY_EXTENSIONS", false);
Nit: Remove space after `(`
Attachment #8868018 -
Flags: review?(kmaglione+bmo) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 12•8 years ago
|
||
mozreview-review |
Comment on attachment 8868017 [details]
Bug 1359203 Part 2 Add build-time constant for allowing legacy extensions
https://reviewboard.mozilla.org/r/139586/#review144498
Attachment #8868017 -
Flags: review?(mh+mozilla) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 16•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2766cd8808dd2d1d66bc4e9e9e313bbc60b9a197
Bug 1359203 Part 1 Replace AddonConstants with AddonSettings
https://hg.mozilla.org/integration/mozilla-inbound/rev/49c132a43a7dd020d6777dbd6afe6b7dc83300e9
Bug 1359203 Part 2 Add build-time constant for allowing legacy extensions
https://hg.mozilla.org/integration/mozilla-inbound/rev/4e40b5b294428fc51707a47a471cdb5d90424fdd
Bug 1359203 Part 3 Add extensions.legacy.enabled preference
![]() |
||
Comment 17•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2766cd8808dd
https://hg.mozilla.org/mozilla-central/rev/49c132a43a7d
https://hg.mozilla.org/mozilla-central/rev/4e40b5b29442
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•