Nonfree JavaScript on this site?

15 réponses [Dernière contribution]
Nathan
Hors ligne
A rejoint: 09/01/2011

I noticed today that the homepage was updated, and it didn't seem to be displaying right. I'm pretty sure it isn't libre code because LibreJS is blocking the code.

If you go to the LibreJS website (https://www.gnu.org/software/librejs/), you'll see a link to a page that helps you free your code (http://www.gnu.org/software/librejs/free-your-javascript.html).

I think whatever the issue is needs to be resolved, but I don't have any knowledge of JS.

Pièce jointeTaille
Screenshot.png403.6 Ko
malberts

I am a member!

I am a translator!

Hors ligne
A rejoint: 04/19/2011

On 04/06/2012 08:54, name at domain wrote:
> I noticed today that the homepage was updated, and it didn't seem to be
> displaying right. I'm pretty sure it isn't libre code because LibreJS
> is blocking the code.

The problem isn't that the code is non-free. All of the modules used on
this website should be GPL. The Drupal content management system used
here requires all modules available on their main website to be GPL'd.

The problem is that the CMS uses a javascript aggregator that combines
all the JS of all the modules into one file. At the time of this
writing, you can see it here:
http://trisquel.info/files/js/js_600ab93c70b6774dd76f340b8766ad94.js

The license of each JS file is typically inherited from the module's
license file. But this cannot be seen by LibreJS.

> I think whatever the issue is needs to be resolved, but I don't have
> any knowledge of JS.
>

Since the aggregation is an automated process, it would be unfeasible to
manually insert a license header into the aggregated JS file as you run
the risk of it being regenerated. It is also unfeasible to manually add
an appropriate license header to each individual JS file as any upstream
updates to the module will overwrite that. Even if the licenses were
added upstream, the aggregated file can get big with all the license
headers.

The solution, then, would be to write a new module that will allow the
administrator to manually assign a license to each JS file and have this
displayed on a separate page using the JavaScript Web Labels method. The
module will then generate the most compatible license from all the
available license. For example, if there are any non-free licenses then
the aggregated file's license will be non-free. Or if all the licenses
are GPL-compatible then the combination will also be GPL.

However, the number of people using LibreJS is small. The number of
Drupal companies/developers caring about JS freedom is even smaller.
Thus it is very unlikely that a coded or paid solution will come from
one of the bigger companies.

I doubt if quidam has the time to code up such a module. Perhaps we can
add this as a Trisquel task, "Free the Trisquel website javascript",
which will have the added benefit of allowing all other Drupal 6 sites
to also implement it (should they care). On a sidenote, Drupal 6 is old
so the solution would ideally have to be added to Drupal 7 too.

I believe there are a few people with Drupal development experience
here, me included, so perhaps we can pool our knowledge/time and get
this done?

--
Morne Alberts

Loic J. Duros
Hors ligne
A rejoint: 01/28/2012

It appears some of the JavaScript on the website is embedding Flattr code dynamically.

I had a discussion with Ruben yesterday on #gnu. He told me the JavaScript on trisquel.info is 100% free. I do not doubt that most if not all the JavaScript code aggregated by Drupal is free (GPL or compatible). However the code from Flattr embedded dynamically may not be free. Here is the file that is embedded dynamically:
http://api.flattr.com/js/0.6/load.js?mode=auto&https=1

In any case, you could replace the on-page JS snippet that embeds this code dynamically and use a tag. Then add a license notice at the top of the page for the inline code and the random string aggregated JS would be treated independently from the Flattr code. So although this particular piece may not be free, the rest could still be accepted by LibreJS/IceCat if it has license notices properly formatted.

ivaylo
Hors ligne
A rejoint: 07/26/2010

В 13:30 +0200 на 13.07.2012 (пт), name at domain написа:
> It appears some of the JavaScript on the website is embedding Flattr code
> dynamically.
>
> I had a discussion with Ruben yesterday on #gnu. He told me the JavaScript on
> trisquel.info is 100% free. I do not doubt that most if not all the
> JavaScript code aggregated by Drupal is free (GPL or compatible). However the
> code from Flattr embedded dynamically may not be free. Here is the file that
> is embedded dynamically:
> http://api.flattr.com/js/0.6/load.js?mode=auto&https=1

There is an old discussion [1] at Flattr's forums about the same
(similar?) issue. I suppose it is the same code. From Flattr responded
[2] and I quote:

It's free, as a bird. We thought that was obvious =)

end of quote.

It is not exactly helpful from license point of view and there is no
other place I know of where this information is available.

For exactly that reason I use a static Flattr button at Linterna
Mágica's website, but it has the downside that it does not show the
number of people that Flattred a project. Currently for Linterna Mágica
that is not that big a deal since there are zero Flattrs received. This
is without counting the few Flattrs before the project switched to
Savannah, and the Flattr button pointed to my personal website.

[1] https://forum.flattr.net/showthread.php?tid=381&pid=2546
[2] https://forum.flattr.net/showthread.php?tid=381&pid=2588#pid2588

Loic J. Duros
Hors ligne
A rejoint: 01/28/2012

On 07/16/2012 01:25 AM, Ivaylo Valkov wrote:
> There is an old discussion [1] at Flattr's forums about the same
> (similar?) issue. I suppose it is the same code. From Flattr responded
> [2] and I quote: It's free, as a bird. We thought that was obvious =)

Heh, If it's free. It needs to have a proper license no or have it
documented somewhere? :-)

ivaylo
Hors ligne
A rejoint: 07/26/2010

В 07:37 -0400 на 18.07.2012 (ср), Loic J. Duros написа:
> On 07/16/2012 01:25 AM, Ivaylo Valkov wrote:
> > From Flattr responded [2] and I quote: It's free, as a bird.
> We thought that was obvious =)
>
> Heh, If it's free. It needs to have a proper license no or have it
> documented somewhere? :-)

I agree, that is why I've said that this is not helpful.

Mampir
Hors ligne
A rejoint: 12/16/2009

One can write a simple script that regularly gets the number of donations from the Fattr's project page, and updates a self-made counter.

Loic J. Duros
Hors ligne
A rejoint: 01/28/2012

Hello Morne:

I'll start a module for this. You are using Drupal 7 correct? It may be a bit rudimentary. It will ask the user whether all the code is GPLv3 compatible, and if so will add a link with a page (JS Web Labels) and a license notice at the top of the template.

I'll let you know when I have something running.

Thanks,

Loic

Loic J. Duros
Hors ligne
A rejoint: 01/28/2012

Morne, Ruben:

Would you mind sending me a copy of the php template files for your custom Drupal theme? This would make it easier to make sure the module will work with it (and whatever region/variable is already used in the template.)

Thanks,

malberts

I am a member!

I am a translator!

Hors ligne
A rejoint: 04/19/2011

Thanks for starting a module.

On 13/07/2012 13:20, name at domain wrote:
> Would you mind sending me a copy of the php template files for your
> custom Drupal theme? This would make it easier to make sure the module
> will work with it (and whatever region/variable is already used in the
> template.)

Do you have your code uploaded somewhere? That way I can test it too. I
sub-theme the Omega theme with Drupal 7, if you want to test that directly.

Trisquel.info uses Drupal 6, so you'll have to make another version.

--
Morne Alberts

quidam

I am a member!

I am a translator!

Hors ligne
A rejoint: 12/22/2004

http://trisquel.info/sites/default/themes/trisquel3/template.phps

Beware of that truckload of ugly hacks....

Loic J. Duros
Hors ligne
A rejoint: 01/28/2012

On 07/16/2012 05:06 PM, name at domain wrote:
> http://trisquel.info/sites/default/themes/trisquel3/template.phps
>
> Beware of that truckload of ugly hacks....
Thanks much for the link.

Please be aware it will probably take me a while to get something
working for Drupal, but I'll put it near the top of my list.

Loic

Chris

I am a member!

Hors ligne
A rejoint: 04/23/2011

ivaylo: You reminded me that I sent an email a while back about the possibility of funding your project. Don't think there was a response though. In any case I thought this would be a good time to donate a €100. We might have some more regular donations coming your way although thats what we have for now.

:) Thanks for supporting freedom!

ivaylo
Hors ligne
A rejoint: 07/26/2010

On Mon, Jul 16, 2012 at 09:13:26AM +0200, name at domain wrote:
> You reminded me that I sent an email a while back about the
> possibility of funding your project. Don't think there was a
> response though.

I never received such e-mail or it got bulk-deleted when there was too
much unread mail in my mailbox. Do you recall when you send this
message?

> In any case I thought this would be a good time to
> donate a €100.

> We might have some more regular donations coming your
> way although thats what we have for now.

I'm grateful. Thanks! Do you mind if I set a thank you note to
ThinkPenguin on the website?

As for the future donations, don't worry, they are welcome if they
come, but it won't be a big loss if they don't. The real driving force
for the project is obviously elsewhere :) (no matter how much time it
costs me to maintain it). Thanks again!

Chris

I am a member!

Hors ligne
A rejoint: 04/23/2011

Thanks. Don't mind at all.

If you were thinking of linking to us though point people to http://libre.thinkpenguin.com/. The difference between this and http://www.thinkpenguin.com/ is the one does not offering any information on compatibility with non-free operating systems. The http://libre.thinkpenguin.com/ should be FSF perfect. The other reason is we donate 25% of the profits from users coming from free software friendly sites (through that link) to the Trisquel project.

:)

ivaylo
Hors ligne
A rejoint: 07/26/2010

В 10:33 +0300 на 16.07.2012 (пн), Ivaylo Valkov написа:
> I'm grateful. Thanks! Do you mind if I set a thank you note to
> ThinkPenguin on the website?

В 10:26 +0200 на 16.07.2012 (пн), name at domain написа:
> Thanks. Don't mind at all.

Done. Now there is a ThinkPenguin web button at the bottom at the
website of Linterna Mágica. It leads to the donation section, where
there is a short thank you note and links to libre.thinkpenguin.com.