<?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>5392</bug_id>
          
          <creation_ts>2005-10-15 20:48:29 -0700</creation_ts>
          <short_desc>WebKit SVG lacks relevant context menu</short_desc>
          <delta_ts>2006-12-29 01:06:34 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>420+</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></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>5971</dependson>
    
    <dependson>10882</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Udey">dan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
    
    <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22117</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Udey">dan</who>
    <bug_when>2005-10-15 20:48:29 -0700</bug_when>
    <thetext>Right-clicking on an SVG object in Safari fails to provide a context menu relevant to the content (e.g. like 
&apos;Open in New Tab&apos;, &apos;Save to Downloads&apos;, etc. in an image&apos;s context menu).

Useful context menu items (in addition to those in the image context menu) might be zoom functions 
(zoom in/out/normal), and &apos;View SVG Source&apos;. Opera 8.5 and the Adobe SVG Plug-in have good context 
menus which may be worth reviewing as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29566</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-01-23 03:05:26 -0800</bug_when>
    <thetext>The contextual menus seem to be there these days.  Can you confirm?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29594</commentid>
    <comment_count>2</comment_count>
    <who name="Daniel Udey">dan</who>
    <bug_when>2006-01-23 09:39:33 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; The contextual menus seem to be there these days.  Can you confirm?

The bug was specific to SVG canvases - right-clicking on an SVG canvas gets you the same context menu as you get in an HTML document - no option for &apos;Copy Image Location&apos;, etc. is provided (i.e. no SVG-specific options are available).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29598</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-01-23 11:03:39 -0800</bug_when>
    <thetext>So I&apos;m assuming you&apos;d like this reopened.  Are there other contextual menus you would like to see besides &quot;Copy Image Location&quot;?  Would you like to see existing ones removed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52290</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-08-11 21:46:22 -0700</bug_when>
    <thetext>The way this code is currently implemented, we can&apos;t make this work until SVG has Obj-C DOM bindings.

The code which generates this menu can be found in:
- (NSArray *)contextMenuItemsForElement:(NSDictionary *)element defaultMenuItems:(NSArray *)defaultMenuItems
inside WebDefaultContextMenuItemsForElement in WebKit.

Once we have SVG Obj-C DOM bindings, we could consider adding an &quot;absoluteImageURL&quot; method on the SVGSVGElement Obj-C class.  I&apos;m not sure that would be correct however.

SVG, unlike an image, is interactive.  Thus clicking in the SVG means the SVG has a chance to respond to the mouse event.  When SVGs are referenced from inside &lt;img&gt; tags (not yet possible: bug 5971) then this type of operation will work for automatically. When SVGs are inside &lt;embed&gt; or &lt;object&gt; tags, I&apos;m not sure we&apos;d want these menu items at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56224</commentid>
    <comment_count>5</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-09-22 05:29:57 -0700</bug_when>
    <thetext>Adding dependency links to the bug 5971 about svgs in &lt;img&gt; tags and bug 10882 about the SVG Obj-C bindings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39076</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-12-29 01:06:34 -0800</bug_when>
    <thetext>SVGImage support is in.  And this &quot;just works&quot; at least when SVGs are referenced from &lt;img&gt; tags.  I&apos;m going to close this.  Feel free to re-open if you feel there is something we still haven&apos;t covered.

You can grab a nightly from http://nightly.webkit.org/  You&apos;ll have to make your own html file which references an svg from an &lt;img&gt; tag, since I don&apos;t have an easy example to point you to on the web.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>