XPC cache removal

Fx3.7a で JS Module の変更が思うように反映されない件の解決策を教わった。

16:53 (satyr) how do you reload jsm in nightly? restarting Firefox has no effect
17:03 (Unfocused) if you're on windows, delete XPC.mfl in your profile directory (or at least, the one under Local)
17:04 (Unfocused) its named differently on each OS unfortunately :\

nglayout.debug.disable_xul_cache 相当の設定は用意されてないらしい(?)ので再起動用のコードに仕込むことにする。

javascript: try {
  with(Components.utils.import('resource://gre/modules/Services.jsm', null).
       Services.dirsvc.get('ProfLD', Components.interfaces.nsILocalFile))
    append('XPC.mfl'), remove(false);
} finally { Application.restart() }