Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Handle empty permissions for packaged apps (bug 1039067)#2326

Merged
mstriemer merged 1 commit into
mozilla:masterfrom
mstriemer:package-with-no-permission-1039067
Jul 17, 2014
Merged

Handle empty permissions for packaged apps (bug 1039067)#2326
mstriemer merged 1 commit into
mozilla:masterfrom
mstriemer:package-with-no-permission-1039067

Conversation

@mstriemer
Copy link
Copy Markdown
Contributor

https://bugzilla.mozilla.org/show_bug.cgi?id=1039067

Handle the case where there aren't any permissions in the manifest which the app-validator helpfully represents as False instead of [].

Comment thread mkt/developers/utils.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think set creation is going to be a lot slower than using any. any can also bail out early if it can.

I also don't see the difference between old L165-166 and L165.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the app doesn't define a permissions key in its manifest the app-validator sets "permissions": false in its validation results. So I moved the default outside of the get. I meant to add a comment. I'll do that.

I'll switch back to the any. I had just noticed that PRERELEASE_PERMISSIONS was already a set so I did intersection.

mstriemer added a commit that referenced this pull request Jul 17, 2014
…39067

Handle empty permissions for packaged apps (bug 1039067)
@mstriemer mstriemer merged commit 99b36c5 into mozilla:master Jul 17, 2014
@mstriemer mstriemer deleted the package-with-no-permission-1039067 branch July 17, 2014 21:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants