Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept CRX uploads in "Submit a new Add-on" #3130

Closed
tofumatt opened this issue May 23, 2016 · 5 comments · Fixed by mozilla/addons-server#3018
Closed

Accept CRX uploads in "Submit a new Add-on" #3130

tofumatt opened this issue May 23, 2016 · 5 comments · Fixed by mozilla/addons-server#3018
Assignees
Labels

Comments

@tofumatt
Copy link
Contributor

tofumatt commented May 23, 2016

Part of #3059, we should accept .crx files in the "Submit a new Add-on" flow.

CRX files are just zip files with some extra bit in the header, so we should be able to extract them and use them as add-ons the same as we do with .xpi files (zip archives) now.

@krupa
Copy link

krupa commented Jun 27, 2016

test webextension: http://cl.ly/3n3n0e2E1k3L

setup:

Set xpinstall.signatures.dev-root to true in about:config

STR:

  1. Download Amazon Storywriter webextension from Chrome store and directly upload the .crx file without any modifications. Approve the app from Editor tools.
  2. Load https://addons-dev.allizom.org/en-US/firefox/addon/amazon-storywriter/ on your Firefox dev edition 49.0a2 (2016-06-27). I'm using the de build,just fyi.
  3. Install the webextension from step 2

expected behavior:

install is successful

observed behavior:

install fails with the following error

1467067541299 addons.webextension. ERROR Loading extension 'null': Reading manifest: Error processing permissions.5: Unexpected value {"fileSystem":["write"]}
Log.jsm:753
1467067541301 addons.xpi WARN Download of https://addons-dev.allizom.org/firefox/downloads/latest/amazon-storywriter/addon-492104-latest.xpi?src=dp-btn-primary failed: Error: Extension is invalid (resource://gre/modules/addons/XPIProvider.jsm:892:11) JS Stack trace: loadManifestFromWebManifest<@XPIProvider.jsm:892:11 < TaskImpl_run@Task.jsm:319:40 < Handler.prototype.process@Promise-backend.js:937:23 < this.PromiseWalker.walkerLoop@Promise-backend.js:816:7 < Promise_this.PromiseWalker.scheduleWalkerLoop@Promise-backend.js:747:11 < this.PromiseWalker.schedulePromise@Promise-backend.js:779:7 < this.PromiseWalker.completePromise@Promise-backend.js:714:7 < TaskImpl_run@Task.jsm:324:13 < promise callback_TaskImpl_handleResultValue@Task.jsm:395:7 < TaskImpl_run@Task.jsm:327:13 < Handler.prototype.process@Promise-backend.js:937:23 < this.PromiseWalker.walkerLoop@Promise-backend.js:816:7 < Promise_this.PromiseWalker.scheduleWalkerLoop@Promise-backend.js:747:11 < this.PromiseWalker.schedulePromise@Promise-backend.js:779:7 < Promise.prototype.then@Promise-backend.js:454:5 < TaskImpl_handleResultValue@Task.jsm:395:7 < TaskImpl_run@Task.jsm:327:13 < TaskImpl@Task.jsm:280:3 < createAsyncFunction/asyncFunction@Task.jsm:254:14 < Task_spawn@Task.jsm:168:12 < promiseLocales@Extension.jsm:963:30 < ExtensionData.prototype.initAllLocales<@Extension.jsm:992:25 < TaskImpl_run@Task.jsm:319:40 < TaskImpl@Task.jsm:280:3 < createAsyncFunction/asyncFunction@Task.jsm:254:14 < loadManifestFromWebManifest<@XPIProvider.jsm:888:23 < TaskImpl_run@Task.jsm:319:40 < promise callback_TaskImpl_handleResultValue@Task.jsm:395:7 < TaskImpl_run@Task.jsm:327:13 < TaskImpl@Task.jsm:280:3 < createAsyncFunction/asyncFunction@Task.jsm:254:14 < loadManifestFromZipReader<@XPIProvider.jsm:1426:21 < TaskImpl_run@Task.jsm:319:40 < TaskImpl@Task.jsm:280:3 < createAsyncFunction/asyncFunction@Task.jsm:254:14 < AddonInstall.prototype.loadManifest<@XPIProvider.jsm:5633:26 < TaskImpl_run@Task.jsm:319:40 < TaskImpl@Task.jsm:280:3 < createAsyncFunction/asyncFunction@Task.jsm:254:14 < AddonInstall.prototype.onStopRequest@XPIProvider.jsm:5947:9

@krupa krupa reopened this Jun 27, 2016
@andymckay
Copy link

1467067541299 addons.webextension. ERROR Loading extension 'null': Reading manifest: Error processing permissions.5: Unexpected value {"fileSystem":["write"]}
Log.jsm:753

It's got a set of permissions we don't support. That's an app, not an extension.

@tofumatt
Copy link
Contributor Author

tofumatt commented Jun 27, 2016

Looks like we should try to flag that, I suppose in the linter.

I’ll aim to have a patch tomorrow so we can include it in the tag.

@tofumatt
Copy link
Contributor Author

I should be clear: https://addons-dev.allizom.org/en-US/firefox/addon/amazon-storywriter/ needs to be deleted, it will never work to be installed in Firefox. But if the add-on @krupa originally tried submitting is submitted now, it should fail validation.

@vcarciu
Copy link

vcarciu commented Jun 29, 2016

Verified as fixed :
javascript

@KevinMind KevinMind added migration:no-jira repository:addons-server Issue relating to addons-server labels May 4, 2024
@KevinMind KevinMind transferred this issue from mozilla/addons-server May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants