09/01/26 22:48:17 8zrAj5xs
# plugin.expose_full_pathの検索 (firefox-3.0.5-source.tar.bz2)
mozilla$ grep -r expose_full_path *
modules/libpref/src/init/all.js:pref("plugin.expose_full_path", false); // if true navigator.plugins reveals full path
modules/plugin/base/src/nsPluginHostImpl.cpp: NS_SUCCEEDED(prefService->GetBoolPref("plugin.expose_full_path",&bShowPath)) &&
# nsPluginHostImpl.cppの該当箇所
> if (prefService &&
> NS_SUCCEEDED(prefService->GetBoolPref("plugin.expose_full_path",&bShowPath)) &&
> bShowPath)
> {
> // only show the full path if people have set the pref,
> // the default should not reveal path information (bug 88183)
>#if defined(XP_MACOSX)
> CopyUTF8toUTF16(mPluginTag.mFullPath, aFilename);
>#else
> CopyUTF8toUTF16(mPluginTag.mFileName, aFilename);
>#endif
> return NS_OK;
> }
# これで高速化するわけがない。
Bug 88183 - navigator.plugins leaks path names
URLリンク(bugzilla.mozilla.org)
# Bugせっかく直してあるのに。
# firefoxは起動時にpluginをチェックしてpluginreg.datを更新する(fullpathで書き込む)。
# つまり、共有ライブラリ(.so/.dll)のロードが速くなることもない。