-
Notifications
You must be signed in to change notification settings - Fork 231
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
Support Whale extensions store #124
base: master
Are you sure you want to change the base?
Conversation
This also fixes a match pattern for Edge add-ons store.
I'd welcome support for Whale. For future reference and testing, could you paste relevant links/examples of the pages to visit and the actions to take in order to verify that support works? Basically the test plan that verifies that (1) context menu works (2) extension button works (3) the viewer works as expected. The current PR is missing the logic for preferring the slug in crxviewer.js; for some relevant changes, see the commit that introduced support for the Edge gallery (dbc8a54 from #101). |
Steps for testingHere are what I've verified as working:
AFAIK direct link to the "whx" (analogous to crx) are not exposed to the user-facing website. Slug?
I cannot find a reference of what "slug" means in this context. I guess it is some internal lingo used in AMO, could you elaborate? If you are referring to the line 1577 of Optional permissionsCurrently, the extension has the following host permissions, presumably to bypass CORS header in CWS. "*://clients2.google.com/service/update2/crx*",
"*://clients2.googleusercontent.com/crx/download/*", Why not add the following permissions as well? "*://edge.microsoft.com/extensionwebstorebase/v1/crx*",
"*://msedgeextensions.f.tlu.dl.delivery.mp.microsoft.com/*",
"*://store.whale.naver.com/update/whx*",
"*://store-whale.pstatic.net/update/whx/*" It will allow downloading of the extension from Edge Add-ons store and Whale store without granting |
I'll have to take a closer look at this PR, but will probably not get to that this week. I did a cursory look, and found
What do you mean by that? In Chrome, crx cannot be installed by clicking links, but right-click + Save-as would work. A link/URL to something that is very likely an extension package (.whx file extension?) is likely a good candidate for support in crxviewer.
A "URL slug" is generic terminology that refers to the human-readable part of a URL. E.g. in the Chrome Web Store, it is the "chrome-extension-source-v" part in https://chrome.google.com/webstore/detail/chrome-extension-source-v/jifpbeccnghkjeaalbbjmodiffmgedin
I see, you're right. It has been almost two years since that commit.
Adding new extension permissions disables the extension on update, until the user has approved the new permissions. That's why I don't add new permissions. |
If there was such a link, I would have provided it in the test steps too, because the input form in
Not granting |
Still haven't got time to review this? |
Whale browser is based on Chromium, is run by Naver, and has a noticeable market share of %6 in South Korea. Similar to Edge, it supports installing extensions from CWS but also from its own store https://store.whale.naver.com/extensions/. Would you consider adding support for this store in crxviewer? I tried to update references to regexes throughout the sources with appropriate regex for whale web store. Also I've fixed a match pattern that wasn't working for edge add-ons store.