fix: fall back to --load-extension for extensions missing policy files #129
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
webRequestpermission that are missingupdate.xmland.crxfiles were returning 400 errors--load-extensionapproach instead, which works for unpacked extensions created bykernel extensions download-web-storeExtensionInstallForcelistapproach (requiringupdate.xml+.crx) is still used when those files are presentBackground
The v26 image added validation requiring extensions with
webRequestpermission to haveupdate.xmland.crxfiles forExtensionInstallForcelist. However, the kernel CLI'sdownload-web-storecommand creates unpacked extensions without these files, causing extension loading to fail.This fix allows falling back to the
--load-extensionflag approach when the policy files are missing, which is how v25 handled these extensions.Test plan
TestWebRequestExtensionFallbacke2e testwebRequestpermission but noupdate.xml/.crx🤖 Generated with Claude Code
Note
Allows unpacked extensions that trigger enterprise policy to load without
update.xml/.crxby falling back to Chromium--load-extensionflags.UploadExtensionsAndRestart, when an extension requires policy but is missingupdate.xmlor a.crx, log and disable policy install, appending its path to--disable-extensions-except/--load-extensioninstead of returning 400update.xmlwhen presentTestWebRequestExtensionFallbackand a minimaltest-extension-webrequest(MV3,webRequest) to assert 201 response and basic chrome://extensions accessibilityWritten by Cursor Bugbot for commit 569e408. This will update automatically on new commits. Configure here.