-
Notifications
You must be signed in to change notification settings - Fork 197
Add chrome PURL-TYPE #522
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
base: main
Are you sure you want to change the base?
Add chrome PURL-TYPE #522
Conversation
PURL-TYPES.rst
Outdated
- The ``version`` is the package version. | ||
- Examples:: | ||
|
||
pkg:chrome/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! this name look fairly weird, is this really the thing? Given an installed extension, where do you find this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unique name
is a 32 char a-z string. This is NOT the same as the name
in the manifest.json
- that name is whatever human-readable name. This allows them to have a primary key that is very collision-free, and a flexible locale/translation mutable "name" which is presented on web pages / UI.
If you want to know the name
of an installed extension, one way is to look at your extensions, and click "View in Chrome Web Store". For 1Password, this will take you to:
- https://chromewebstore.google.com/detail/aeblfdkhhhdcdjpifhhbdiojplfjncoa , which quickly redirects you to
- https://chromewebstore.google.com/detail/1password-%E2%80%93-password-mana/aeblfdkhhhdcdjpifhhbdiojplfjncoa
Note that human readable "name" field can be absent, OR any string at all. It's totally not relied upon for identifying the extension
PURL-TYPES.rst
Outdated
|
||
- The default repository is ``https://chromewebstore.google.com/``. | ||
- The ``name`` is the extension id - the human readable name often depends on locale. | ||
- The ``version`` is the package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something that is also tracked with another number internally, like the id above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The places I know if that reference the version number:
- chrome web store page for an extensions lists current version
- the chrome web store
updatecheck
API - returns the current version - the chrome web store blob URL - files suffixed with a modified form of the version (camel case... plus more?)
- the
manifest.json
has aversion
field
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: the extension id
is NOT the same as the name
in the manifest.json
- the name is whatever human-readable name. This allows them to have a primary key that is very collision-free (32 char a-z), and a flexible locale/translation mutable "name" which is presented on web pages / UI.
After the merge of PR #514, PURL types are now defined in JSON: With the new approach... we can then go either way:
If you do not reply, we will update! |
This adds support for Chrome Browser Extensions
Thanks @pombredanne ! I've had a go reformatting this PR I also note |
Please feel free to take what's here and adjust it as you see fit. Thanks for your work 🍍 🐟 |
This adds support for Chrome Browser Extensions
The examples I've given have been acquired sampling the chrome store through scraping + querying an updated "updatecheck" API that chrome itself uses to poll for updates