Closed Bug 1804921 Opened 3 years ago Closed 1 month ago

Remove the extensions.manifestV3.enabled pref

Categories

(WebExtensions :: General, task, P3)

task

Tracking

(firefox148 fixed)

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: robwu, Assigned: rachrusiecki)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(2 files)

With extensions.manifestV3.enabled having been enabled by default in bug 1801291, we should eventually remove this pref.

In unit tests, this was used to enable MV3 extensions when it was previously off by default. There is only one test that sets the pref to false: https://searchfox.org/mozilla-central/rev/196b6aa0427f38058fd43ac90ee94fcf2f436fb6/toolkit/mozapps/extensions/test/browser/browser_html_detail_permissions.js#394,505-507

In various places, e.g. on AMO, we make the assumption that MV3 is supported since 109, so we should ideally remove the ability to turn off MV3.

Side note: regardless of this pref, MV2 continues to be supported. The pref was only used to control Firefox's ability to load extensions with "manifest_version": 3 in its manifest.json file.

Severity: -- → N/A
Priority: -- → P3
Whiteboard: [addons-jira]
Blocks: old-prefs

I’m a new contributor, and I’ll be submitting a patch for this bug soon.

I removed the pref from all files, including test files. The test referenced above where the pref is set to false, I just deleted. I figured that since it was on by default, the test was no longer necessary, but let me know if I am mistaken or if there is anything else I need to do.

Flags: needinfo?(rob)

The patch is in WIP state. Could you drop the WIP state? I think that the moz-phab tool automatically sets the WIP state when the patch has no reviewers. Although you added [:robwu] to the commit message, it did not automatically set the reviewer because the format should have been with r=, e.g. r=robwu instead.

moz-phab submits each commit as a separate patch. To make sure that you update the patch instead of adding another patch, edit the commit instead of creating a new commit, with git commit --am .

Assignee: nobody → rachrusiecki
Status: NEW → ASSIGNED
Flags: needinfo?(rob)
Attachment #9526207 - Attachment description: WIP: Bug 1804921 - Remove the extensions.manifestV3.enabled pref. [:robwu] → Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r=robwu!
Attachment #9526207 - Attachment description: Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r=robwu! → Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r?robwu
Attachment #9526207 - Attachment description: Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r?robwu → Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r=robwu!
Attachment #9526207 - Attachment description: Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r=robwu! → Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r?robwu
Pushed by rob@robwu.nl: https://github.com/mozilla-firefox/firefox/commit/dfc58e117f8a https://hg.mozilla.org/integration/autoland/rev/a2b362479c8d Remove the extensions.manifestV3.enabled pref. r=robwu,toolkit-telemetry-reviewers
Pushed by csabou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cd3a65e94808 https://hg.mozilla.org/integration/autoland/rev/72209b96cca6 Revert "Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r=robwu,toolkit-telemetry-reviewers" for causing xpcshell failures on test_Chrome_extensions.

Backed out for causing xpcshell failures on test_Chrome_extensions.

Push with failures

Failure log

Backout link

The test failure is caused by a test-only issue that would resolve on its own within a day or two, explained at bug 1769184, specially https://bugzilla.mozilla.org/show_bug.cgi?id=1769184#c3

The test has test tag "condprof" due to https://searchfox.org/firefox-main/rev/54da8f6bfead7871ca89f2cb18323af5f00d9620/browser/components/migration/tests/unit/xpcshell.toml#6,49

To avoid the test failure, we should temporarily skip the test, and re-enable the test after 2 days. Skipping can be done with a one-line change, e.g. as seen at https://phabricator.services.mozilla.com/D211342

See Also: → 1769184

Okay, I think I understand. I submitted a new WIP for this bug. Is the file the same as the example (xpcshell.toml) that needs the skip line?

Flags: needinfo?(rob)

(In reply to Rachel Rusiecki from comment #10)

Okay, I think I understand. I submitted a new WIP for this bug. Is the file the same as the example (xpcshell.toml) that needs the skip line?

No, the change needs to be made in the toml file I linked from my comment, after the line with "test_Chrome_extensions.js". Please include that change in your original patch.

Flags: needinfo?(rob)
Attachment #9532779 - Attachment description: WIP: Bug 1804921 - Temporarily skip test_ext_manifest.js. r?robwu → Bug 1804921 - Temporarily skip xpcshell test for Chrome extensions. r?robwu
Attachment #9526207 - Attachment description: Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r?robwu → Bug 1804921 - Remove the extensions.manifestV3.enabled pref. r=robwu,toolkit-telemetry-reviewers
Pushed by rob@robwu.nl: https://github.com/mozilla-firefox/firefox/commit/6d1fbb323935 https://hg.mozilla.org/integration/autoland/rev/cc1d741bc684 Remove the extensions.manifestV3.enabled pref. r=robwu,toolkit-telemetry-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
Attachment #9532779 - Attachment description: Bug 1804921 - Temporarily skip xpcshell test for Chrome extensions. r?robwu → Bug 1804921 - Remove skip-if condprof from test_Chrome_extensions.js r=robwu
Pushed by rob@robwu.nl: https://github.com/mozilla-firefox/firefox/commit/628102e30e49 https://hg.mozilla.org/integration/autoland/rev/0b11248202d8 Remove skip-if condprof from test_Chrome_extensions.js r=robwu,migration-reviewers,Gijs
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: