After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 771241 - [PATCH] Add inline installation of Chrome/Firefox/Opera web extensions to extensions.gnome.org site
[PATCH] Add inline installation of Chrome/Firefox/Opera web extensions to ext...
Status: RESOLVED FIXED
Product: website
Classification: Infrastructure
Component: extensions.gnome.org
current
Other Linux
: Normal normal
: ---
Assigned To: Yuri Konotopov
Shell extensions maintainer(s)
: 779104 779824 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-09-11 11:44 UTC by Yuri Konotopov
Modified: 2017-03-10 03:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (5.12 KB, patch)
2016-09-11 11:44 UTC, Yuri Konotopov
none Details | Review

Description Yuri Konotopov 2016-09-11 11:44:50 UTC
Created attachment 335300 [details] [review]
Proposed patch

Hi,

With attached patch Chrome/Chromium, Vivaldi and Opera users will see custom error message when GNOME Shell integration for Chrome [1] is not installed.

In addition, support for inline installation [2][3] of web extension is added for mentioned browsers.

While this will work in Opera as is, for Chrome/Chromium and Vivaldi additional step of site verification is needed [4]:
1. extensions.gnome.org site should be added to Google Search Console [5].
2. Some access (as I think - minimal restricted should be enought) should be added to my Google account from Google Search Console (currently Chrome web extension is released under my Google account because Release Team was not interested in controlling extension release account last time I asked [6]).

----
[1] https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome
[2] https://developer.chrome.com/webstore/inline_installation
[3] https://dev.opera.com/extensions/inline-installation/
[4] https://developer.chrome.com/webstore/inline_installation#verified-site
[5] https://www.google.com/webmasters/tools/home
[6] https://mail.gnome.org/archives/release-team/2016-March/msg00023.html
Comment 1 Alex Băluț 2016-09-28 09:42:28 UTC
Review of attachment 335300 [details] [review]:

This change will make it much more clear to the user what he has to do. Thanks!

I think the "web extension" term is not very clear. 
As far as I see, Firefox introduced this term one year ago https://wiki.mozilla.org/WebExtensions
https://en.wikipedia.org/wiki/Web_browser mentions "browser extensions"
Chome browser's plugins are simply called "extensions" https://chrome.google.com/webstore/category/extensions
Let's use "browser extension" instead of "web extension".

Nitpick: Would be nice to mention in the "else" block the intention: Open the store to let the user search for the extension (?)
Comment 2 Yuri Konotopov 2016-09-30 20:18:23 UTC
> I think the "web extension" term is not very clear. 
> ...
> Let's use "browser extension" instead of "web extension".

Agreed


> Nitpick: Would be nice to mention in the "else" block the intention: Open the store to let the user search for the extension (?)

Do you mean "dummy_proxy" message?
Comment 3 Alex Băluț 2016-09-30 20:37:00 UTC
Now I see two else!
No, I meant the other else:
} else if(typeof(chrome) !== 'undefined') {
Comment 4 Yuri Konotopov 2016-09-30 21:24:19 UTC
> Nitpick: Would be nice to mention in the "else" block the intention: Open the store to let the user search for the extension (?)
> No, I meant the other else:
> } else if(typeof(chrome) !== 'undefined') {

If both window.opr and window.chrome are undefined then user browsing site via some webkit browser that possibly may not work with Chrome store.
I don't think we should point users to possibly incompatible extensions repository.
Comment 5 Alex Băluț 2016-10-01 09:12:20 UTC
I meant by adding a comment in the code, it will be easier to understand, when reading the code, what the intention is and what is expected to happen.
Comment 6 Yuri Konotopov 2017-02-23 05:30:14 UTC
*** Bug 779104 has been marked as a duplicate of this bug. ***
Comment 7 Yuri Konotopov 2017-02-25 20:07:46 UTC
Fixed in master for Chrome, Firefox and Opera. Deployed in production.
Comment 8 Yuri Konotopov 2017-03-10 03:18:58 UTC
*** Bug 779824 has been marked as a duplicate of this bug. ***