Changes

Jump to: navigation, search

Components and Interfaces

8 bytes removed, 16:32, 4 October 2006
Components and Interfaces in Mozilla
These components can be grouped together to become a Module. A component or several components (aka Module) are delivered as binary library. In Windows, libraries are .dll files; whereas, Unix libraries are DSO.
 
 
''For example, the CookieManager Component can be called from Javascript code''
// xpconnect to cookiemanager
// get the cookie manager component in JavaScript
'''var cookiemanager = Components.classes["@mozilla.org/ cookiemanager;1"].getService(); ''' '''cookiemanager = cookiemanager.QueryInterface (Components.interfaces.nsICookieManager); '''
// called as part of a largerDeleteAllCookies() function
cookiemanager.remove(deletedCookies[c].host,
deletedCookies[c].name,
deletedCookies[c].path);
}
1
edit

Navigation menu