Firebug says “No Javascript on this page”, even though JavaScript does exist on the page

后端 未结 17 2141
清歌不尽
清歌不尽 2020-11-30 00:25

Why does Firebug say there is No Javascript on this page when there are clearly loads of JavaScript on the page. I even reloaded the page several time to make s

17条回答
  •  抹茶落季
    2020-11-30 00:57

    Since Firefox 49.0 and Firebug 2.0.18 the Script panel is broken. This is due to some internal Firefox API changes. And because Firebug is officially discontinued, this unfortunately won't get fixed anymore.

    There was also a bug in Firebug 2.0.11 (and below) in combination with Firefox 39.0 causing this problem. This bug is filed as issue 7918.
    It happens when the Script panel is enabled and you close Firebug and reopen it.

    You can see two related error messages logged to the Browser Console (can be opened via Ctrl+Shift+J or Firebug menu > Developer > Browser Console):

    error occurred while processing 'attach: TypeError: docShell is null Stack: getChildDocShells@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/webbrowser.js:53:7 ...

    and

    onPacket threw an exception: Error: Server did not specify an actor, dropping packet: {"error":"unknownError","message":"error occurred while processing 'attach: TypeError: docShell is null\nStack: getChildDocShells@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/server/actors/webbrowser.js:53:7 ...

    Solution:

    The only solution until this bug is fixed is to restart Firefox completely.

提交回复
热议问题