Open
Bug 348755
Opened 18 years ago
Updated 2 years ago
No Context Menu For SVG
Categories
(Firefox :: Menus, enhancement)
Firefox
Menus
Tracking
()
NEW
People
(Reporter: doug, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 3 obsolete files)
3.87 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
There should be a bool for onSVG in the context menu interface. This is not a request for special SVG context menu items (like zoom and pan) though that would be nice. This is just a request that extension authors can find when the user has clicked on SVG content (either inline or as a reference). This will be very useful for SVG specific menu items like zooming, panning, and rotating.
Reproducible: Always
Steps to Reproduce:
1. Build an extension
2. try to use the context menu to find out if the user clicked on SVG content.
3. fail.
Actual Results:
no indication of presence of SVG
Expected Results:
having available a boolean onSVG value in the context menu interface that reports the presence of SVG
In http://lxr.mozilla.org/seamonkey/source/browser/base/content/browser.js , there should be code something like this pseudocode:
function nsContextMenu( xulMenu ) {
...
this.onSVG = false;
}
nsContextMenu.prototype = {
...
setTarget : function ( node, rangeParent, rangeOffset ) {
...
// See if the user clicked on SVG
const NS_SVG = "http://www.w3.org/2000/svg";
if ((this.target.parentNode.namespaceURI == NS_SVG)
|| (this.target.namespaceURI == NS_SVG))
this.onSVG = true;
}
}
Reporter | ||
Comment 1•18 years ago
|
||
Patch that adds onSVG bool to context menu (like onImage or onMathML)...
belongs in ~\Mozilla Firefox\chrome\browser.jar\content\browser
Necessary for effective SVG-specific extensions.
Updated•18 years ago
|
Assignee: general → nobody
Status: UNCONFIRMED → NEW
Component: SVG → General
Ever confirmed: true
Product: Core → Firefox
QA Contact: ian → general
Updated•18 years ago
|
Component: General → Menus
QA Contact: general → menus
Comment 2•18 years ago
|
||
Attachment #235847 -
Attachment is obsolete: true
Attachment #235850 -
Flags: superreview?
Attachment #235850 -
Flags: review?
Updated•18 years ago
|
Assignee: nobody → doug
Updated•18 years ago
|
Severity: major → enhancement
Comment 3•18 years ago
|
||
Argh, sorry Doug. Completely forgot about this. Here's what I had which should preempt some of the reasons that may be given for r-. Requesting review for you too to speed this along.
Attachment #235850 -
Attachment is obsolete: true
Attachment #235887 -
Flags: superreview?(mconners)
Attachment #235887 -
Flags: review?(mconners)
Attachment #235850 -
Flags: superreview?
Attachment #235850 -
Flags: review?
Updated•18 years ago
|
Attachment #235887 -
Flags: superreview?(mconnor)
Attachment #235887 -
Flags: superreview?(mconners)
Attachment #235887 -
Flags: review?(mconnor)
Attachment #235887 -
Flags: review?(mconners)
Comment 4•18 years ago
|
||
Doug: I recommend you update the patch and change request review from another reviewer:
http://www.mozilla.org/projects/firefox/review.html
Comment 5•18 years ago
|
||
Comment on attachment 235887 [details] [diff] [review]
patch with ifdefs, additional onSVGDoc and additional reset
based on jwatt's comments, patch needs updating before review. I'm getting back into the review slog, so feel free to request from me again.
Attachment #235887 -
Flags: superreview?(mconnor)
Attachment #235887 -
Flags: review?(mconnor)
Attachment #235887 -
Attachment is obsolete: true
Updated•12 years ago
|
Assignee: doug → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•