謎's キッチン

謎のひとりごと。Amazon欲しい物リストはこちら: https://www.amazon.co.jp/hz/wishlist/ls/CCPOV7C6JTD2

拡張+Firebugの相性が悪い件

Fx 3.1b2 + Firebug-1.3.0b5な環境での話なので一般的では無いが…。
extensions.firebug-service.filterSystemURLsをfalseに。
スクリプトのリストにchrome://内のを表示するパッチ。

=== modified file 'content/firebug/debugger.js'
--- content/firebug/debugger.js	2008-12-07 00:54:55 +0000
+++ content/firebug/debugger.js	2008-12-07 00:55:07 +0000
@@ -2123,8 +2123,8 @@
     showThisSourceFile: function(sourceFile)
     {
         //-----------------------------------123456789
-        if (sourceFile.href.substr(0, 9) == "chrome://")
-            return false;
+//        if (sourceFile.href.substr(0, 9) == "chrome://")
+//            return false;
 
            if (sourceFile.isEval() && !this.showEvals)
                return false;

もう一つはクラッシュを阻止するパッチ。機能壊しているけど深く追ってない。

=== modified file 'components/firebug-service.js'
--- components/firebug-service.js	2008-12-07 00:54:55 +0000
+++ components/firebug-service.js	2008-12-07 02:16:15 +0000
@@ -1272,7 +1272,7 @@
             if (!script.functionName) // top or eval-level
             {
                 // We need to detect eval() and grab its source.
-                var hasCaller = fbs.createdScriptHasCaller();
+                var hasCaller = null;//fbs.createdScriptHasCaller(); // dirty hack
                 if (FBTrace.DBG_FBS_SRCUNITS) FBTrace.sysout("createdScriptHasCaller "+hasCaller);
 
                 if (hasCaller)

あとたまにプロファイルが出来なくなることがあるなぁ。まぁ再起動で凌いでいるが。