Fork me on GitHub
#dirac
<
2017-03-29
>
darwin06:03:02

Feel free to ask. I will get back to it.

baptiste-from-paris09:03:42

I was wondering what prerequisites are necessary to generate chromex from js API

baptiste-from-paris12:03:38

my question is pretty simple, do you think generation process that you apply on chrome extension api would be portable in some way to google charts https://www.google.com/uds/modules/gviz/gviz-api.js

darwin13:03:39

absolutely not portable, chromium devs described their api via JSON, this data structure is used mainly for generating their documentation site[1], I simply abused the fact and generate clojure code from that JSON: https://github.com/binaryage/chromex/tree/master/tools [1] https://developer.chrome.com/extensions/api_index

darwin13:03:24

gviz people most likely have nothing to do with chromium and I doubt they would have some similar data describing their apis

baptiste-from-paris13:03:08

so I should 1 - use directly js or 2 - wrap native js api into cljs functions

darwin13:03:48

not sure, I’m not familiar with those apis

darwin13:03:37

but in general yes, either use js interop directly or hide it behind a wrapper library

baptiste-from-paris13:03:35

Ok, thanks @darwin ! And the chromex lib is impressive ! 👏👏👏

darwin13:03:41

thanks 🙂

darwin13:03:08

btw. when getting your hands dirty with js interop, check out https://github.com/binaryage/cljs-oops

darwin13:03:29

chromex uses it internally

baptiste-from-paris13:03:33

I've seen it but never tried

darwin13:03:51

ah, wait, maybe not

darwin13:03:01

I forgot already...

baptiste-from-paris13:03:31

I started to read what you can do with a chrome extension

baptiste-from-paris13:03:55

And you can do quite a lot... #bigbrother

darwin13:03:23

yep, I consider chrome as a very attractive application platform

baptiste-from-paris13:03:26

I use chrome extension, but I never paid for one (and I buy a lot of apps/saas/softwares)

baptiste-from-paris13:03:26

I am not sure people are ready to buy chrome extension

darwin13:03:35

right, monetization is an open question

baptiste-from-paris13:03:08

Should be possible as a support for a standalone product

baptiste-from-paris13:03:45

"Chrome extension adds some magic to my super product "

sineer22:03:53

Wow, I never realized chromex could do so much stuff! It makes me wonders how hard it can be to install and hide an evil chrome app...

darwin22:03:53

pretty hard

darwin22:03:25

btw. Google can black-list/uninstall extensions installed from the chrome web store.

darwin22:03:55

and in general they take security/privacy very seriously

sineer22:03:20

well forget hiding as most people wouldn't even notice something wrong with browser until nothing works... All you need to do is get them to install your app right?

darwin22:03:24

so you as a user would have to give strong permissions to an evil extensions

sineer22:03:44

again most people would never even read about your permissiong just click next.

sineer22:03:17

the only barrier is that chrome web store is the only place I can get extensions from or not evne?

darwin22:03:34

you can install them by hand, from a “zip” file

sineer22:03:02

heh yeah I guess at that point you might as well install an exe and get them to give you admin rights..

darwin22:03:40

right, the same applies to any platform if you assume that users are stupid 🙂

sineer22:03:58

but still that might have to deal with AVs and on mac little snitch whitelisting chrome is so common that is a nice vector...

darwin22:03:17

as I said, they have a mechanism how to remove malware/rogue code if it turns out to be an issue

sineer22:03:48

I just think it would be easy to trick even someone like me into installing a seamingly friendly chrome extension (ie dirac ?! 🙂 ) that would call home and screencapture and shit

darwin22:03:54

not easy, the apis are pretty limited

darwin22:03:26

and again you would have to give it really strong permissions, which is not something you would want to do for a usual extension

darwin22:03:18

but there could be some attack vectors, but we yet have to see some real incidents in the wild

sineer22:03:34

ok I'll take your words for it 😉 at first glance it does look quite worrying but you are correct that at least there is such permission mechanish... I'm just getting a little more worried about browsers everyday I think

darwin22:03:26

chrome people are quite capable, I trust them that they find a good balance - features vs. security/privacy

sineer22:03:31

Yeah you may be right 🙂 Still I never realized chromium could do all that stuff, I thought sure maybe chrome with their bunch of exts but plain chromium doing all that wow.. I guess you do need all that to be a true platform so yeah I'm not sure why I'm surprised.