Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 9 replies
  • 2 have this problem
  • 63 views
  • Last reply by stargayte

more options

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

All Replies (9)

more options

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

I did find some resources that you might find helpful:

more options

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...

more options

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.

Modified by derloopkat

more options

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.

more options

It is hard to keep secrets from determined researchers.

more options

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

more options

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?

Modified by derloopkat

more options

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/

more options

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.