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)
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: mozilla.dypn0, Unassigned)
References
Details
(Keywords: regression)
Attachments
(1 file)
917 bytes,
image/svg+xml
|
Details |
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)
Reporter | ||
Comment 1•12 years ago
|
||
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
Comment 2•12 years ago
|
||
Confirmed with 2013-03-04-03-09-33-mozilla-central-firefox-22.0a1.ru.linux-x86_64. Autoscroll works, too.
Comment 3•12 years ago
|
||
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
Updated•12 years ago
|
Version: 19 Branch → 1.8 Branch
Comment 4•12 years ago
|
||
How the UI works is not CORE->SVG
Component: SVG → General
Product: Core → Firefox
Version: 1.8 Branch → unspecified
Comment 5•12 years ago
|
||
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
Comment 6•12 years ago
|
||
So, I think this behavior is by design.
Comment 7•12 years ago
|
||
However,This is valid bug in case of autoscroll enabled.
Reporter | ||
Comment 8•12 years ago
|
||
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.
Reporter | ||
Comment 9•12 years ago
|
||
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.
Comment 10•12 years ago
|
||
That <image> has an xlink:href. We treat those as links. I don't know what is really expected here.
Comment 11•12 years ago
|
||
I think
Clicking the element should open the link.
However, In case clicking the element during auto scrolling, the link should be ignored.
Reporter | ||
Comment 12•12 years ago
|
||
(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.
Comment 13•12 years ago
|
||
Solly I mean Ctrl+click and/or Middle click.
Comment 14•12 years ago
|
||
Oops
s/Solly/Sorry/
Comment 15•11 years ago
|
||
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
Reporter | ||
Comment 16•5 years ago
|
||
Is this still an issue?
Reporter | ||
Updated•5 years ago
|
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.
Description
•