当我在Firefox 45.0中打开url资源:///defaults/preferences/firefox.js时,会显示许多根据this page应存储在browser / app / profile / firefox.js中的选项
但我在firefox浏览器目录中看到的唯一文件是:
blocklist.xml
chrome.manifest
crashreporter-override.ini
icons
searchplugins
chrome
components
extensions
omni.ja
试图在Linux和MacOS上找到它。
那么这些数据来自哪里?
更新: 这是firefox(45.0)的最新linux版本的输出
root@ip-172-30-0-227:/tmp/fireomni# unzip -l omni.ja | grep firefox.js
warning [omni.ja]: 11393365 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [omni.ja]: reported length of central directory is
-11393365 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1
zipfile?). Compensating...
9581 2010-01-01 00:00 modules/commonjs/sdk/tabs/tab-firefox.js
2179 2010-01-01 00:00 modules/commonjs/sdk/tabs/tabs-firefox.js
11658 2010-01-01 00:00 modules/commonjs/sdk/windows/firefox.js
7785 2010-01-01 00:00 modules/commonjs/sdk/windows/tabs-firefox.js
2510 2010-01-01 00:00 jsloader/resource/gre/modules/commonjs/sdk/tabs/tabs-firefox.js
13372 2010-01-01 00:00 jsloader/resource/gre/modules/commonjs/sdk/windows/firefox.js
12660 2010-01-01 00:00 jsloader/resource/gre/modules/commonjs/sdk/tabs/tab-firefox.js
7573 2010-01-01 00:00 jsloader/resource/gre/modules/commonjs/sdk/windows/tabs-firefox.js
此处列出的firefox.js文件不是资源中显示的文件:///defaults/preferences/firefox.js
答案 0 :(得分:0)
大多数内部javascript和xml都打包在omni.ja中,这只是一个zip存档。
打开资源:///defaults/preferences/firefox.js包含以下这些行:
//@line 1643 "c:\builds\moz2_slave\m-cen-w64-ntly-000000000000000\build\src\browser\app\profile\firefox.js"
pref("dom.ipc.reportProcessHangs", true);
strings browser/omni.ja | grep "//@line 1643"
匹配
也
# unzip -l browser/omni.ja | grep firefox.js
warning [browser/omni.ja]: 30524217 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [browser/omni.ja]: reported length of central directory is
-30524217 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1
zipfile?). Compensating...
82905 2010-01-01 00:00 defaults/preferences/firefox.js
所以数据肯定在那里。