[Webkit-unassigned] [Bug 5392] WebKit SVG lacks relevant context menu

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Aug 11 21:46:22 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=5392





------- Comment #4 from macdome at opendarwin.org  2006-08-11 21:46 PDT -------
The way this code is currently implemented, we can'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
"absoluteImageURL" method on the SVGSVGElement Obj-C class.  I'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 <img> tags (not yet possible: bug 5971) then this type of operation will
work for automatically. When SVGs are inside <embed> or <object> tags, I'm not
sure we'd want these menu items at all.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list