[Webkit-unassigned] [Bug 37702] New: Web Inspector: no style information available after interaction with Elements panel

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 16 07:05:17 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=37702

           Summary: Web Inspector: no style information available after
                    interaction with Elements panel
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pmuellr at yahoo.com
                CC: timothy at hatcher.name, rik at webkit.org,
                    keishi at webkit.org, pmuellr at yahoo.com,
                    joepeck at webkit.org, pfeldman at chromium.org,
                    bweinstein at apple.com


While inspecting a particular page, after playing with some of the elements in
the Elements panel, I managed to kill the ability to view style information for
some elements.

Specifics:

web page: 
   http://alex.dojotoolkit.org/10/system_browser.html

interaction:
- bring up the above page in a WebKit nightly (mac) (also happens in Chrome/Mac
5.0.375.6 dev)
- go to the Elements panel
- select the <body> element; notice you can see style information on the right
- select the <div> element just underneath it; notice you can see style
information on the right
- select the <body> again
- toggle the "height: 100%;" OFF in the body/inline stylesheet section on the
right
- select the <div> that you previously selected; notice you cannot see style
information on the right anymore

Inspecting the inspector, you can see the error message:

   StylesSidebarPane.js:466 TypeError: Result of expression
'payload.properties' [undefined] is not an object.

In that file/line, is the function _containsInherited(), which is iterating
through a presumed array addressed as "payload.properties".

Setting an exception breakpoint, you can see that at that type, payload is a
single item array with the following object in it:

   {"name":"height","value":"100%","priority":""}

A simple fix will be to just check that payload.properties exists before
entering the loop; but it would be good to also find out why properties were
not added to this object in the first place.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list