Bug in firebug 1.12.7

73 views
Skip to first unread message

als

unread,
Mar 16, 2014, 4:14:14 AM3/16/14
to fir...@googlegroups.com
When there are elements with a 'style' attribute then the Computed panel in HTML breaks. FBTrace
reports

      "text": "Console Service ERROR [JavaScript Error: \"NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [inIDOMUtils.getSpecificity]\" {file: \"resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/styleinspector/css-logic.js\" line: 1407}] [JavaScript Error: \"NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [inIDOMUtils.getSpecificity]\" {file: \"resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/styleinspector/css-logic.js\" line: 1407}]",
      "type": "DBG_ERRORS",
      "time": 1394956461893,
      "stack": [
        {
          "fileName": "resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/devtools/styleinspector/css-logic.js",
          "lineNumber": 1407,
          "funcName": ""
        }
      ]

I expect the problem is domRule being undefined.

Sebastian Zartner

unread,
Mar 16, 2014, 11:10:08 AM3/16/14
to fir...@googlegroups.com
I don't see that error using FF 27.0/30.0a1 + FB 1.12.7 on Win8.1. Do you have a test case with steps to reproduce the problem? Also, do you have any other extensions installed besides Firebug?

Sebastian

als

unread,
Mar 17, 2014, 8:05:36 AM3/17/14
to fir...@googlegroups.com


On Monday, March 17, 2014 2:10:08 AM UTC+11, Sebastian Zartner wrote:
I don't see that error using FF 27.0/30.0a1 + FB 1.12.7 on Win8.1. Do you have a test case with steps to reproduce the problem? Also, do you have any other extensions installed besides Firebug?

Sebastian

I am developing an extension that modifies nodes to fix up faded text. The modified nodes look like

<span class="GB-CK03DDQ" style="color: black ! important;" _blkn_saved="rgba(136,136,136,1)">2 posts</span>

At the moment I am looking at the URL
        https://groups.google.com/forum/#!forum/firebug
with DBG_CSS and DBG_ERRORS tracing turned on. After the extension has altered the nodes, if I click on any node that is a child of this one:
    <div class="GB-CK03DKYB" style="color: black ! important;" _blkn_saved="rgba(34,34,34,1)">
then the Computed panel is not updated. The trace console shows error messages from getSpecifity(). If I click on that div or higher then the panel is updated and I get lots of trace messages of the form
    getInstanceForStyleSheet: compare href 2 null /html/head/style[2]

When I undo the attribute modifications it all works again with no error messages.

When I click on a node I get an immediate error:
EXCEPTION in Events.dispatch FirebugChrome.onObjectSelected:
                                  (NS_ERROR_INVALID_POINTER) [inIDOMUtils.getSpecificity]
    chrome://firebug/content/lib/events.js   67
    chrome://firebug/content/html/htmlPanel.js 163
    chrome://firebug/content/html/htmlPanel.js  1245

A timer then goes off a little later producing this
Console Service ERROR [JavaScript Error:  ...

                resource://gre/modules/devtools/styleinspector/css-logic.js\" line: 1407}]",
followed by some errors at
        chrome://firebug/content/lib/http.js   105

Sebastian Zartner

unread,
Mar 19, 2014, 4:15:20 AM3/19/14
to fir...@googlegroups.com

Any chance I could try out your extension to reproduce the problem?

Sebastian

Sebastian Zartner

unread,
Mar 20, 2014, 6:50:08 PM3/20/14
to fir...@googlegroups.com
Thanks for sending me your extension. I could reproduce the problem, break it down to a simple test case and fix it in Firebug. See issue 7269.
Because that's actually a bug in the built-in devtools APIs, I created bug 986201 at Mozilla.

Sebastian
Reply all
Reply to author
Forward
0 new messages