X
Tap here to go to the mobile version of the site.

Support Forum

If applications are written in Javascript, how a developer can protect copyrights?

Posted

I read that applications for Firefox OS are written in Javascript, Html and CSS. Can anyone see or copy the code? Is there a way to prevent it?

I read that applications for Firefox OS are written in Javascript, Html and CSS. Can anyone see or copy the code? Is there a way to prevent it?

Chosen solution

Apps in Firefox OS are written in JavaScript. It doesn't support Java or Flash. Your code is automatically protected by copyright in some countries like France, see the laws of your country. But if you want to hide your code, it is not possible. You juste can make it unreadable with a mibified version.

Read this answer in context 1

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:42.0) Gecko/20100101 Firefox/42.0

More Information

guigs 1072 solutions 11697 answers

I might suggest asking this question on stackoverflow.com for development details.

I did find some resources that you might find helpful:

I might suggest asking this question on stackoverflow.com for development details. I did find some resources that you might find helpful: *[http://smus.com/mobile-web-app-tech-stack/] *[https://marketplace.firefox.com/developers/support] *[https://developer.mozilla.org/en-US/Apps/Quickstart/Build/For_Web_developers]
jscher2000
  • Top 10 Contributor
8693 solutions 71058 answers

Copyright provides legal protection, the right to go after those who make unauthorized copies or derivative works. This applies whether people can read what you wrote or not. Of course, less copying is likely to occur if the code cannot be read in the first place...

Copyright provides legal protection, the right to go after those who make unauthorized copies or derivative works. This applies whether people can read what you wrote or not. Of course, less copying is likely to occur if the code cannot be read in the first place...

Question owner

guigs said

"I might suggest asking this question on stackoverflow.com for development details."

Hello. I know Stackoverflow as well but isn't "Mozilla Support/Firefox OS" the right place to ask a simple question?. I'm not asking about any complex implementation details. Just wanted to know, before investing hundreds of hours of my time on creating applications for your OS, how do I prevent anyone to get access to all my source code in a couple of seconds.

''guigs [[#answer-812650|said]]'' <blockquote>"I might suggest asking this question on stackoverflow.com for development details."</blockquote> Hello. I know Stackoverflow as well but isn't "Mozilla Support/Firefox OS" the right place to ask a simple question?. I'm not asking about any complex implementation details. Just wanted to know, before investing hundreds of hours of my time on creating applications for your OS, how do I prevent anyone to get access to all my source code in a couple of seconds.

Modified by derloopkat

Question owner

jscher2000 said

Copyright provides legal protection, the right to go after those who make unauthorized copies or derivative works. This applies whether people can read what you wrote or not. Of course, less copying is likely to occur if the code cannot be read in the first place...

Unfortunately, that's not enough. As a developer, if you give me a source code that works, I can easily create a derivative that doesn't match the original code. To makes things harder one may obfuscate the code by Minimifing Javascript code. It could help but you still expose the logics as well as all styles and resources.

''jscher2000 [[#answer-812652|said]]'' <blockquote>Copyright provides legal protection, the right to go after those who make unauthorized copies or derivative works. This applies whether people can read what you wrote or not. Of course, less copying is likely to occur if the code cannot be read in the first place...</blockquote> Unfortunately, that's not enough. As a developer, if you give me a source code that works, I can easily create a derivative that doesn't match the original code. To makes things harder one may obfuscate the code by Minimifing Javascript code. It could help but you still expose the logics as well as all styles and resources.
jscher2000
  • Top 10 Contributor
8693 solutions 71058 answers

It is hard to keep secrets from determined researchers.

It is hard to keep secrets from determined researchers.
comzeradd 0 solutions 1 answers

You don't create apps for Firefox OS. You are creating web apps. So, how would you protect copyrights if you create a website?

You don't create apps for Firefox OS. You are creating web apps. So, how would you protect copyrights if you create a website?

Helpful Reply

comzeradd said

You don't create apps for Firefox OS. You are creating web apps. So, how would you protect copyrights if you create a website?

Basically you're asking me my own question. But it wasn't me who decided that apps should run like websites.

I guess it may be useful to be able to package the app in an encrypted format and, from OS, prevent user to see the code and resources once loaded into browser.

Does Firefox OS support Flash, Java Applets or Silverlight?

''comzeradd [[#answer-814736|said]]'' <blockquote> You don't create apps for Firefox OS. You are creating web apps. So, how would you protect copyrights if you create a website? </blockquote> Basically you're asking me my own question. But it wasn't me who decided that apps should run like websites. I guess it may be useful to be able to package the app in an encrypted format and, from OS, prevent user to see the code and resources once loaded into browser. Does Firefox OS support Flash, Java Applets or Silverlight?

Modified by derloopkat

jscher2000
  • Top 10 Contributor
8693 solutions 71058 answers

Helpful Reply

derloopkat said

Does Firefox OS support Flash, Java Applets or Silverlight?

I don't think so, although someday JavaScript may be able to decompile and execute SWF files well enough to ship as part of Firefox. Assuming they don't have OS-specific dependencies. See: http://www.areweflashyet.com/shumway/

''derloopkat [[#answer-814792|said]]'' <blockquote> Does Firefox OS support Flash, Java Applets or Silverlight? </blockquote> I don't think so, although someday JavaScript may be able to decompile and execute SWF files well enough to ship as part of Firefox. Assuming they don't have OS-specific dependencies. See: http://www.areweflashyet.com/shumway/
stargayte 3 solutions 28 answers

Chosen Solution

Apps in Firefox OS are written in JavaScript. It doesn't support Java or Flash. Your code is automatically protected by copyright in some countries like France, see the laws of your country. But if you want to hide your code, it is not possible. You juste can make it unreadable with a mibified version.

Apps in Firefox OS are written in JavaScript. It doesn't support Java or Flash. Your code is automatically protected by copyright in some countries like France, see the laws of your country. But if you want to hide your code, it is not possible. You juste can make it unreadable with a mibified version.