Bug 72261

Summary: Web Inspector: [Crash] Crash when inspecting namespaced SVG styled via element names
Product: WebKit Reporter: Alexander Pavlov (apavlov) <apavlov>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch pfeldman: review+

Description Alexander Pavlov (apavlov) 2011-11-14 05:37:03 PST
What steps will reproduce the problem?
1. Open SVG file
2. Close Inspecting/Developer console if it is opened
3. Right mouse click on the red square
4. Select the 'Inspect element' item from the context menu

What is the expected result?
Displaying the source code in the console and highlighting the corresponding areas in the browser

What happens instead?
There is 'Aw, Snap!' message in the active tab. But console still displays the content.

Please provide any additional information below. Attach a screenshot if
possible.

This is my test case:
<?xml version='1.0' encoding='utf-8'?>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" version="1.1">
   <svg:defs>
      <svg:style type="text/css">
         rect {fill: red}
      </svg:style>
   </svg:defs>
   <svg:rect width="100" height="100"/>
</svg:svg>

When that namespace is removed, it works properly. Otherwise it fails on any element name which is namespaced, but defined without the namespace in the style element.

Works fine also when F12 is pressed instead of the mouse click event.

Originally found in 17.0.932.0 dev channel but reproduced also in the current stable 15.0.874.120 version.

Upstreaming http://code.google.com/p/chromium/issues/detail?id=103942
Comment 1 Alexander Pavlov (apavlov) 2011-11-14 06:59:26 PST
Created attachment 114939 [details]
Patch
Comment 2 Alexander Pavlov (apavlov) 2011-11-15 01:32:33 PST
Committed r100251: <http://trac.webkit.org/changeset/100251>