Closed
Bug 1895341
Opened 5 months ago
Closed 5 months ago
Add install_type “admin” to the management API
Categories
(WebExtensions :: General, enhancement, P3)
WebExtensions
General
Tracking
(firefox127 fixed)
RESOLVED
FIXED
127 Branch
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: mkaply, Assigned: mkaply)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
When an addon is installed via enterprise policy, we should mark the installType as "admin"
This is what Chrome does.
Assignee | ||
Comment 1•5 months ago
|
||
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/9d36e2074dc3
Add install_type "admin" to the management API. r=rpl
Comment 3•5 months ago
|
||
Backed out for causing xpcshell failures in test_extensionsettings.js.
- Backout link
- Push with failures
- Failure Log
- Failure line:
[task 2024-05-09T15:38:15.142Z] 15:38:15 INFO - TEST-START | browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js
[task 2024-05-09T15:38:18.501Z] 15:38:18 WARNING - TEST-UNEXPECTED-FAIL | browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js | xpcshell return code: 0
[task 2024-05-09T15:38:18.501Z] 15:38:18 INFO - TEST-INFO took 3359ms
[task 2024-05-09T15:38:18.501Z] 15:38:18 INFO - >>>>>>>
[task 2024-05-09T15:38:18.502Z] 15:38:18 INFO - PID 12075 | [Parent 12075, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:2925
[task 2024-05-09T15:38:18.503Z] 15:38:18 INFO - (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2024-05-09T15:38:18.503Z] 15:38:18 INFO - (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2024-05-09T15:38:18.504Z] 15:38:18 INFO - (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2024-05-09T15:38:18.504Z] 15:38:18 INFO - running event loop
[task 2024-05-09T15:38:18.504Z] 15:38:18 INFO - browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js | Starting setup setup
[task 2024-05-09T15:38:18.504Z] 15:38:18 INFO - (xpcshell/head.js) | test setup pending (2)
[task 2024-05-09T15:38:18.504Z] 15:38:18 INFO - (xpcshell/head.js) | test run_next_test 0 finished (2)
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095546 addons.manager DEBUG Application has been upgraded"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095552 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.sys.mjs"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095556 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/SitePermsAddonProvider.sys.mjs"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095556 addons.manager DEBUG Starting provider: XPIProvider"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095556 addons.xpi DEBUG startup"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095556 addons.xpi DEBUG List of built-in add-ons is missing or invalid.: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXPCComponents_Utils.readUTF8URI]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.sys.mjs :: startup :: line 2503" data: no] Stack trace: startup()@resource://gre/modules/addons/XPIProvider.sys.mjs:2503
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - callProvider()@resource://gre/modules/AddonManager.sys.mjs:225
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - _startProvider()@resource://gre/modules/AddonManager.sys.mjs:534
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - startup()@resource://gre/modules/AddonManager.sys.mjs:747
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - startup()@resource://gre/modules/AddonManager.sys.mjs:3640
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - observe()@resource://gre/modules/amManager.sys.mjs:73
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - promiseStartupManager()@resource://testing-common/AddonTestUtils.sys.mjs:853
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - setup()@/builds/worker/workspace/build/tests/xpcshell/tests/browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js:56
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - _run_next_test/<()@/builds/worker/workspace/build/tests/xpcshell/head.js:1759
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - _run_next_test()@/builds/worker/workspace/build/tests/xpcshell/head.js:1759
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - run()@/builds/worker/workspace/build/tests/xpcshell/head.js:808
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - _do_main()@/builds/worker/workspace/build/tests/xpcshell/head.js:245
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - _execute_test()@/builds/worker/workspace/build/tests/xpcshell/head.js:596
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - -e:1"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095560 addons.xpi INFO SystemAddonLocation directory is missing"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095573 addons.xpi INFO Removing all system add-on upgrades."
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095574 addons.xpi DEBUG checkForChanges"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095574 addons.xpi DEBUG Loaded add-on state: ${}"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095576 addons.xpi DEBUG scanForChanges changed: false, state: {}"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095577 addons.xpi DEBUG Empty XPI database, setting schema version preference to 36"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095577 addons.xpi DEBUG No changes found"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095584 addons.manager DEBUG Registering shutdown blocker for XPIProvider"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095584 addons.manager DEBUG Provider finished startup: XPIProvider"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - "CONSOLE_MESSAGE: (info) 1715269095584 addons.manager DEBUG Completed startup sequence"
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - (xpcshell/head.js) | test run_next_test 1 pending (2)
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - (xpcshell/head.js) | test setup finished (2)
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js | Starting test_extensionsettings
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - (xpcshell/head.js) | test test_extensionsettings pending (2)
[task 2024-05-09T15:38:18.517Z] 15:38:18 INFO - TEST-PASS | browser/components/enterprisepolicies/tests/xpcshell/test_extensionsettings.js | test_extensionsettings - [test_extensionsettings : 44] Sanity check the temporary file doesn't exist. - true == true
Flags: needinfo?(mozilla)
Assignee | ||
Comment 4•5 months ago
|
||
I tested the heck out of this and everything passed locally. Argh.
Flags: needinfo?(mozilla)
Pushed by mozilla@kaply.com:
https://hg.mozilla.org/integration/autoland/rev/cd8eb3f4b039
Add install_type "admin" to the management API. r=rpl
Comment 6•5 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
status-firefox127:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Updated•5 months ago
|
Keywords: dev-doc-needed
MDN content changes are ready for review
- MDN content Release note for management API install_type “admin” #33714
- BCD install_type added to management API #23155
Flags: needinfo?(mozilla)
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•