Showing posts with label Firefox.extension. Show all posts
Showing posts with label Firefox.extension. Show all posts

Monday, 11 July 2011

Firefox extension development tutorial : security

Evaluating Code with Restricted Privileges
This article describes the use of Components.utils.evalInSandbox, which is a way to evaluate code "such as remote code" without chrome privileges.

Creating Sandboxed HTTP Connections
This article explains how to created sandboxed HTTP connections which don't affect the user's cookies.

Displaying Web Content in an Extension
Learn how to display web content in an extension without security issues.

Five Wrong Reasons to Use eval in an Extension
In this blog post, Wladimir Palant gives five wrong ways to evaluate code in an extension.



Web Hosting



Extension development:Best Practices

Once you know the basics, these guides will help you with intermediate to advanced extension development topics.

Best Practices
Respecting the JavaScript Global Namespace
In this blog post, Mark Ziesemer explains how to prevevent global namespace pollution by wrapping your extension's variables.

Security Best Practices in Extensions
Every extension developer should know and follow the security best practices outlined in this document to keep users safe.

Localizing an Extension
This article explains how to localize an extension, including XUL and JavaScript strings.

Responsible First-run Usage
This blog post describes what a bad first-run experience means for users, and gives tips for improving that experience.

Web Hosting