Mozilla Series - Mozilla Directory Structure Analysis

xiaoxiao2021-03-06  63

Mozilla directory structure - Mozilla Firefox after installation of directory file structure and its functions

The directory of Mozilla Firefox is mainly divided into two parts, one is an installation directory, one is the user profile directory.

Let's talk about the user profile directory. Its location is as follows:

Windows Platform: (XP, 2K and NT) / Documents and Settings / / Application Data / Mozilla / Firefox

('98 and me) / Windows / Application Data / Mozilla / Firefox

LINUX platform: ~ / .mozilla / firefox /

Macos X Platform: ~ / Library / Application Support / Firefox

The content placed in the Profile directory is mainly some of the cache of Firefox, the overlay information of the interface,

Users downloaded plugins and skin, and other personalized parameter configurations.

The PROFILE directory is created when Firefox is running for the first time, and it will not be deleted when uninstall.

Let's talk about the installation directory.

Install the Contents root directory with these contents:

* .dll: Mozilla platform Various DLLs, such as JavaScript Engine, XPCOM Engine, XPI Interpretation Engine, etc.

Install_status.log: The process of installation is recorded here, and information installed in various components

Install_wizard.log: The uninstall information written in the registry is written here.

Install.log: This file is not installed for the first time, when you successfully download it from the Internet installed some

When the plugin XPI package, their information will be recorded here.

/ chrome directory, store all files in the interface layer, these files are made into one JAR package according to the module, here

There is also a very important file install-chrome.txt, which records each module of the interface layer.

Registration information, as long as there is a new plug-in module installed in the interface, you must register here.

We can see that each module usually has three information: Content, Locale and Skin,

This also reflects the Division of Mozilla on the interface. After the program is started, it will be based on install-chrome.txt

Inside the information generated / chrome / overlayInfo directory and /chrome/chrome.rdf file, here

Recorded the details of each part of each component and the overlay relationship between them, programs

After startup, you will check the old old, chrome.rtf, the old old, chrome.rdf, the old,

If the latter is not created, if the latter is older, it means that there is a new plugin to join,

Refresh overlayInfo and chrome.rdf.

/ Components directory, which is stored here is a variety of XPCOM components. These components include DLL files implemented in C and

JS file implemented by JavaScript, the Mozilla program is generated according to the information of these DLL and JS after startup

Comreg.dat and XPTI.DAT two XPCOM components registry files, according to these two DAT files,

Mozilla knows which components are registered there. In Firefox, these two DAT files are not

Put it in the Components directory, but put it under the user's profile, but it seems to be reflected in the soup.

Medicine practice.

/ Defaults directory, this directory is stored in various internal configuration information used by the program, interested friends can open

Some JS files inside. / grepRefs directory, Gecko Runtime Enviroment configuration information, this directory is not before Mozilla 1.7,

GRE configuration information is also placed under the defaults before Mozilla 1.7.

/ plugins directory, store the DLL of third-party plug-ins, such as flash, MediaPlayer, etc., generally want to put third parties

The DLL is copied in this directory, and Mozilla will detect itself.

/ Resideic, this directory is not good, put some resource files.

/ uninstall directory, this directory is more important, store two files, install_wizard1.log and uninstallfirefox.exe,

INSTALL_WIZARD1.LOG records all the operations that are installed when installed, including what directory

Copy the file, what information is written to the registration table, what files do, etc., but UninstallFirefox.exe

In the uninstallation, it is based on this log file. In addition, there is one in the system directory.

The UninstallFirefox.exe file is a backup file for uninstalling files.

/ searchPlugin directory, this is the configuration directory of the Google Search Plug-in and does not count Mozilla's own directory.

Note: The above is for the current latest Firefox 1.0 and its previous versions.

转载请注明原文地址:https://www.9cbs.com/read-86370.html

New Post(0)