Closed Bug 847895 Opened 12 years ago Closed 5 years ago

Middle click on some SVG files results in new tab 'data:image/png;base64,...'

Categories

(Firefox :: General, defect)

7 Branch
defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: mozilla.dypn0, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0 Build ID: 20130227155321 Steps to reproduce: # Goto https://upload.wikimedia.org/wikipedia/commons/archive/4/45/20130304114853!Bandera_Front_Alliberament_Cham.svg # Middle click on the SVG file (optionally hold down and try to autoscroll) Actual results: A new tab was opened data:image/png;base64,iVBORw0KG... Expected results: Either nothing (if general.autoScroll;false) or autoscroll (if general.autoScroll;true)
Tested on Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:19.0) Gecko/20100101 Firefox/19.0 and Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0
OS: Linux → All
Hardware: x86 → All
Confirmed with 2013-03-04-03-09-33-mozilla-central-firefox-22.0a1.ru.linux-x86_64. Autoscroll works, too.
Reproducible with 2005-08-01-05-trunk-firefox-1.0+.en-US.linux-i686, so it probably was there from the beginning.
Component: Untriaged → SVG
Product: Firefox → Core
Version: 19 Branch → 1.8 Branch
How the UI works is not CORE->SVG
Component: SVG → General
Product: Core → Firefox
Version: 1.8 Branch → unspecified
Regression window(m-c) Good: Mozilla/5.0 (X11; Linux i686; rv:7.0a1) Gecko/20110630 Firefox/7.0a1 ID:20110630030749 http://hg.mozilla.org/mozilla-central/rev/beceddeee3f4 Mozilla/5.0 (X11; Linux i686; rv:7.0a1) Gecko/20110701 Firefox/7.0a1 ID:20110701030757 Bad: http://hg.mozilla.org/mozilla-central/rev/549e3276ed25 Mozilla/5.0 (X11; Linux i686; rv:7.0a1) Gecko/20110702 Firefox/7.0a1 ID:20110702030813 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=beceddeee3f4&tochange=549e3276ed25 Triggered by: bf475efe290d Marco Bonardo — Bug 667195 - Ctrl + Click on SVG/MathML links does not open pages in a new tab. r=gavin
Version: unspecified → 7 Branch
So, I think this behavior is by design.
However,This is valid bug in case of autoscroll enabled.
Blocks: 667195
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
It seems this only happens when the SVG has embedded PNG files. https://upload.wikimedia.org/wikipedia/commons/archive/4/45/20060827124647!Bandera_Front_Alliberament_Cham.svg is plain SVG and the behavior is not reproducible.
Attached image Simplified Test SVG
I created a simple TestCase.SVG: Empty SVG with small PNG file (pink) embedded. Only a middle mouse click on the PNG results in the new tab.
That <image> has an xlink:href. We treat those as links. I don't know what is really expected here.
I think Clicking the element should open the link. However, In case clicking the element during auto scrolling, the link should be ignored.
(In reply to Alice0775 White from comment #11) > Clicking the element should open the link. Not sure either what is best, but it seems Google Chrome does not open the link. And also left click does not open the link in FF.
Solly I mean Ctrl+click and/or Middle click.
Oops s/Solly/Sorry/
This issue still exists in Firefox ESR 17.06 In addition, CTRL+Click on any image embedded into an SVG, opens it in a new tab. We're trying to figure out a way to work around this for now - but this is not expected behaviour. xlink:href is how an image is embedded into an SVG; it does not have the same meaning as an a:href and should not open in a new tab with either middle click or CTRL+click

Is this still an issue?

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: