<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15348</bug_id>
          
          <creation_ts>2007-10-02 15:38:20 -0700</creation_ts>
          <short_desc>DOM Inspector hits exception when inspecting SVG</short_desc>
          <delta_ts>2007-10-26 00:05:31 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.croczilla.com/svg/samples/butterfly/butterfly.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>15422</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57676</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-02 15:38:20 -0700</bug_when>
    <thetext>DOM Inspector hits exception when inspecting SVG

(event handler):Null value

1.  Inspect the path element (click on the orange or black part of the butterfly.
2.  click on the &quot;svg&quot; &quot;tab&quot; at the bottom of the source display (5-sided figure, square with attached triangle)
3.  click on the &quot;path&quot; &quot;tab&quot; at the bottom of the source dispaly:
4.  you&apos;ll see this exception:

(event handler):Null value

I assume this is actually a bug in the JS bindings for SVGElement and not a bug in the inspector, but it could be either...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57677</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-02 15:46:34 -0700</bug_when>
    <thetext>I cant seem to get Drosera to stop at the event handler null value.  However, when I run Drosera I seem to get these additional logs in my console:

Unsafe JavaScript attempt to access frame with URL http://www.croczilla.com/svg/samples/butterfly/butterfly.svg from frame with URL file:///Stuff/Users/eric/Projects/build/Debug/WebCore.framework/Resources/inspector/inspector.html. Domains must match.

It seems strange to me that those only started after I launched Drosera, but perhaps I just missed them before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58077</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-08 00:24:34 -0700</bug_when>
    <thetext>Turns out that the line having trouble was:

if (!priorityUsed &amp;&amp; style.getPropertyPriority(name).length)

style.getPropertyPriority(name) was returning null, because name was null.

Instead of fixing the JS, I implemented getComputedStyle for SVG, which stopped &quot;name&quot; from being null (at least for now).  This isn&apos;t a full fix, but it solved my issue.  If someone would like to make this hunk of inspector JS more robust, be my guess.  I wasn&apos;t exactly sure what the &quot;correct&quot; behavior was when &quot;name&quot; was null.

The security exceptions are covered by:
http://bugs.webkit.org/show_bug.cgi?id=15419</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58122</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-08 13:49:50 -0700</bug_when>
    <thetext>Now that bug 15422 is solved, it is not absolutely necessary to change this JS.  But I leave that up to ya&apos;ll inspector folks to decide.  If so, just close the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59515</commentid>
    <comment_count>4</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2007-10-26 00:05:31 -0700</bug_when>
    <thetext>I think this can be closed since it no longer happens.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>