• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
Firefox
  1. MDN
  2. Mozilla
  3. Firefox
  4. Firefox developer release notes
  5. Firefox 3.5 for developers
  6. Security changes in Firefox 3.5

Security changes in Firefox 3.5

In This Article
  1. Changes to chrome registration
  2. Private browsing
  3. New certificate error handling
  4. See also

Draft
This page is not complete.

This article covers security-related changes in Firefox 3.5.

Changes to chrome registration

A security hole was closed in order to prevent remote content to be used as chrome.  This could impact any add-on that included a resource in their chrome.manifest file that referenced a file on the web.

Fixing this bug was accomplished by adding a new URI_IS_LOCAL_RESOURCE flag to the nsIProtocolHandler interface that indicates that the protocol is safe to register as chrome.  Any add-on that creates its own protocol handler and tries to register it in its chrome.manifest file will have to use this flag in order to work correctly.

Private browsing

Firefox 3.5 implements private browsing, a mode in which cookies, history, and other potentially private information isn't saved permanently on the user's computer.  Extensions and other add-ons may support the private browsing feature, detecting when it's in use so they can avoid saving private information while private browsing mode is enabled.  See Supporting private browsing mode for details.

Plug-ins can detect whether or not private browsing mode is in effect by using the NPN_GetValue() function to check the current value of the NPNVprivateModeBool variable.

New certificate error handling

In previous versions of Firefox 3, SSL certificate errors resulted in the presentation of the standard network error page, about:neterror, in the browser window.  Starting in Firefox 3.5, there is a new error page, about:certerror, which is displayed instead.  The error URL is formatted like this:

about:certerror?e=error&u=url&d=desc

Embedders needing to provide custom certificate error pages can now do so by supplying their own about: page  implementation, and setting the security.alternate_certificate_error_page preference to the appropriate page name (e.g. "certerror").

See also

  • Firefox 3.5 for developers 

Document Tags and Contributors

Tags: 
  • Firefox
  • Firefox 3.5
  • Security
  • XUL
 Contributors to this page: teoli, Sheppy, Johnath
 Last updated by: teoli, May 27, 2014, 1:31:14 PM
  1. Add-ons
    1. Firefox developer release notes
    2. Add-ons
    3. Add-on guidelines
    4. Add-on Manager
    5. Extensions
    6. OpenSearch plug-ins
    7. Plugins
    8. Themes
  2. Firefox internals
    1. Firefox developer release notes
    2. Mozilla project
    3. Gecko
    4. JavaScript code modules
    5. JS-ctypes
    6. MathML project
    7. MFBT
    8. Mozilla projects
    9. Preference system
    10. WebIDL bindings
    11. XPCOM
    12. XUL
  3. Building and contributing
    1. Build instructions
    2. Configuring build options
    3. How the build system works
    4. Mozilla source code
    5. Localization
    6. Mercurial
    7. Quality assurance
    8. Using Mozilla code in other projects