Closed
Bug 339725
Opened 19 years ago
Closed 8 years ago
xlink:href don't show html link features in context menu
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: moz, Assigned: Gijs)
References
(Depends on 1 open bug, )
Details
(Keywords: testcase)
Attachments
(4 files, 4 obsolete files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060326 Firefox/1.5.0.3 (Debian-1.5.dfsg+1.5.0.3-2)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060326 Firefox/1.5.0.3 (Debian-1.5.dfsg+1.5.0.3-2)
xlink:href links don't support features from html links like:
Open in New Tab
Copy Link Location
Nor can a middle click open a new Tab when configured.
Reproducible: Always
Component: General → SVG
Product: Firefox → Core
Version: unspecified → Trunk
Updated•19 years ago
|
Assignee: nobody → general
QA Contact: general → ian
Comment 1•19 years ago
|
||
I tried reproducing the problem with the attached testcase. But I was able to do both "Open in New Tab" and "Copy Link Location".
Build Identifier:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Poezli, Am I understanding the problem correctly here?
- Laxmi
You are right. Middle click works in trunk. However, the context menu doesn't show this option, so i change the description.
Summary: xlink:href don't support html link features → xlink:href don't show html link features in context menu
Comment 3•19 years ago
|
||
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060531 Minefield/3.0a1 - Build ID: 0000000000
WFM.
Poelzi, can you reproduce this with an official Mozilla build of Firefox?
Keywords: testcase
It seems that this bug only appearce in svg files. I set the url to a svg i'm generating where every node has a link to its info page. I can't open a new tab through the submenu nor middle click.
Comment 5•19 years ago
|
||
(In reply to comment #4)
> It seems that this bug only appearce in svg files. I set the url to a svg i'm
> generating where every node has a link to its info page. I can't open a new tab
> through the submenu nor middle click.
>
I don't think it's only svg files. Go to http://www.mozilla.org/university/hof.xml. Middle click on any of the links (ie Epiphany). For me, at least, no new tab appears.
Build identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/2006101023 Firefox/2.0
Comment 6•19 years ago
|
||
(In reply to comment #5)
> (In reply to comment #4)
> > It seems that this bug only appearce in svg files. I set the url to a svg i'm
> > generating where every node has a link to its info page. I can't open a new tab
> > through the submenu nor middle click.
> >
>
> I don't think it's only svg files. Go to
> http://www.mozilla.org/university/hof.xml. Middle click on any of the links (ie
> Epiphany). For me, at least, no new tab appears.
>
> Build identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1)
> Gecko/2006101023 Firefox/2.0
>
I guess I should mention context menu items are all normal. Middle click fails to do anything, though.
Updated•18 years ago
|
Flags: blocking1.9?
Comment 7•18 years ago
|
||
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a9pre) Gecko/2007110515 Minefield/3.0a9pre
Testcase pass (links opened) but on other examples (http://www.mozilla.org/university/hof.xml) links won't open on middleclick, it switches to autoscroll mode and on second middleclick on same link within that mode it opens new tab. Copy link location works (not tested it on svg)
Comment 8•17 years ago
|
||
wfm seems to be okay in os x using latest nightlies
please check
#7 Alexey, please file a different bug
Comment 9•17 years ago
|
||
Updated•17 years ago
|
Attachment #223894 -
Attachment description: Testcase → non-SVG testcase (generic XML with XLink)
Comment 10•17 years ago
|
||
Attachment #292298 -
Attachment is obsolete: true
Comment 11•17 years ago
|
||
Comment 12•17 years ago
|
||
#9,10,11
jwatt, why are you morphing this bug?
I filed bug 407566 for the svg case.
the original test for this one was wfm
cheers
Comment 13•17 years ago
|
||
The bug is filed in the SVG component with an SVG linked in the URL field.
Comment 14•17 years ago
|
||
#13
jwatt the uri https://freifunk-leipzig.quamquam.org/uptime/svg/ doesn't let me in... forbidden
the original attachment clearly says non-svg, so my assumption was that this isn't an svg bug.
I'm happy to leave to your judgement, but something (the original attachment) about this bug was fixed as wfm
Updated•17 years ago
|
OS: Linux → All
Hardware: PC → All
Updated•17 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•17 years ago
|
Flags: wanted1.9+
Updated•16 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Comment 16•16 years ago
|
||
Updated•14 years ago
|
Depends on: mathml-href
Comment 17•13 years ago
|
||
This 6 year old bug affects me too. I created an XVG with some <path> encapsulated inside <a xlink:href="...">, but middle click or right click don't behave properly.
How can I help fixing this?
Comment 18•13 years ago
|
||
s/XVG/SVG/
Comment 19•13 years ago
|
||
Were you thinking of downloading the source, fixing it and contributing a patch? Or something else?
Comment 20•13 years ago
|
||
(In reply to Robert Longson from comment #19)
> Were you thinking of downloading the source, fixing it and contributing a
> patch? Or something else?
I was thinking of submitting test cases if needed, test possible fixes on the nightlies and whatever you might think for someone who doesn't have a week to delve into the internals of mozilla codebase.
I'm curious about the patch I can see from Kurosawa Takeshi, was it rejected or is it just waiting for review? Robert, I presume you are with Mozilla so maybe you know?
Comment 21•13 years ago
|
||
(In reply to Dimitrios Apostolou from comment #20)
> I was thinking of submitting test cases if needed, test possible fixes on the > nightlies and whatever you might think for someone who doesn't have a week to > delve into the internals of mozilla codebase.
It shouldn't take a week to resurrect the existing patch, assuming that was on the right lines.
>
> I'm curious about the patch I can see from Kurosawa Takeshi, was it rejected
> or is it just waiting for review? Robert, I presume you are with Mozilla so
> maybe you know?
I'm not with Mozilla. Looks from the history like review was never requested so it never went anywhere maybe it has issues?
Comment 22•13 years ago
|
||
I consider you to be pretty "with Mozilla", Robert :)
Updated•11 years ago
|
No longer depends on: mathml-href
See Also: → 958957
Comment 24•9 years ago
|
||
Was this bug still not confirmed?
Comment 25•8 years ago
|
||
Assignee: nobody → longsonr
Attachment #403469 -
Attachment is obsolete: true
Updated•8 years ago
|
Attachment #8865153 -
Flags: review?(kmaglione+bmo)
Comment 26•8 years ago
|
||
Attachment #8865153 -
Attachment is obsolete: true
Attachment #8865153 -
Flags: review?(kmaglione+bmo)
Attachment #8865191 -
Flags: review?(kmaglione+bmo)
Comment 27•8 years ago
|
||
Comment on attachment 8865191 [details] [diff] [review]
other functions need to be consistent according to their documentation
Sorry, I'm not the best person to review this, and my backlog is quite long at the moment, so it would be a while before I could get to it. Gijs is probably a better bet.
Attachment #8865191 -
Flags: review?(kmaglione+bmo) → review?(gijskruitbosch+bugs)
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 29•8 years ago
|
||
Comment on attachment 8865191 [details] [diff] [review]
other functions need to be consistent according to their documentation
Review of attachment 8865191 [details] [diff] [review]:
-----------------------------------------------------------------
This isn't good enough, because nsContextMenu.js needs to be told how to get the URL. The .href property for SVG elements is an object with a baseVal and animVal, and we should presumably use the animVal. Plus, this needs tests.
Writing those tests and fixing that code was pretty easy, so I've just gone ahead and done it. I'll ping Jared for another review of that to be sure I'm not missing something.
Attachment #8865191 -
Flags: review?(gijskruitbosch+bugs) → review-
| Assignee | ||
Updated•8 years ago
|
Attachment #8865191 -
Attachment is obsolete: true
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 31•8 years ago
|
||
In fact, I think the content.js and browser.js changes are wrong too, because these are SVG links and treating them like HTML links produces the wrong result. The fallback code lower down is already designed to deal with SVG and MathML cases. Updated to remove those.
| Assignee | ||
Updated•8 years ago
|
Attachment #8867865 -
Flags: review?(longsonr)
Comment 32•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8867865 [details]
Bug 339725 - SVG <a> with xlink:href don't show HTML link features in context menu,
https://reviewboard.mozilla.org/r/139406/#review142750
r+ assuming the review comments are addressed.
::: browser/base/content/test/general/subtst_contextmenu.html:73
(Diff revision 2)
> <input id="test-select-input-text-type-password" type="password" value="password">
> <embed id="test-plugin" style="width: 200px; height: 200px;" type="application/x-test"></embed>
> <img id="test-longdesc" src="ctxmenu-image.png" longdesc="http://www.mozilla.org"></embed>
> <iframe id="test-srcdoc" width="98" height="98" srcdoc="Hello World" style="border: 1px solid black"></iframe>
> +<svg id="svg-with-link"><a xlink:href="http://example.com/" xlink:type="simple"><circle cx="50%" cy="50%" r="50%" fill="blue"/></a></svg>
> +<svg id="svg-with-link2"><a xlink:href="http://example.com/" xlink:type="simple"><circle cx="50%" cy="50%" r="50%" fill="blue"/></a></svg>
was one of these supposed to be href and the other xlink:href?
I've never actually seen any content other than this set xlink:type so perhaps that's best omitted.
Attachment #8867865 -
Flags: review?(longsonr) → review+
| Assignee | ||
Comment 33•8 years ago
|
||
(In reply to Robert Longson from comment #32)
> > +<svg id="svg-with-link"><a xlink:href="http://example.com/" xlink:type="simple"><circle cx="50%" cy="50%" r="50%" fill="blue"/></a></svg>
> > +<svg id="svg-with-link2"><a xlink:href="http://example.com/" xlink:type="simple"><circle cx="50%" cy="50%" r="50%" fill="blue"/></a></svg>
>
> was one of these supposed to be href and the other xlink:href?
>
> I've never actually seen any content other than this set xlink:type so
> perhaps that's best omitted.
No, one of these was supposed to not have the xlink:type="simple". Will fix for check-in assuming that continues to pass locally.
Comment 34•8 years ago
|
||
In that case you really should have 4 tests, the other two would use href rather than xlink:href
Comment 35•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8867865 [details]
Bug 339725 - SVG <a> with xlink:href don't show HTML link features in context menu,
https://reviewboard.mozilla.org/r/139406/#review142760
We support SVG with href without having to use xlink. Do we need to make any changes to support plain 'href' attribute in the context menu too?
Attachment #8867865 -
Flags: review?(jaws) → review+
Comment 36•8 years ago
|
||
(In reply to Robert Longson from comment #34)
> In that case you really should have 4 tests, the other two would use href
> rather than xlink:href
actually 3 tests would do. I can't see anyone writing href and xlink:type together.
| Comment hidden (mozreview-request) |
Comment 38•8 years ago
|
||
Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/dd7f4e79194b
SVG <a> with xlink:href don't show HTML link features in context menu, r=jaws,longsonr+218550
Updated•8 years ago
|
Assignee: longsonr → gijskruitbosch+bugs
Comment 39•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•