Open
Bug 1191437
Opened 9 years ago
Updated 2 years ago
The mute icon flashes the first time that you click on it on a window
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
REOPENED
People
(Reporter: ehsan.akhgari, Unassigned)
References
Details
Markus tells me that we need to use an image stripe to work around this.
Reporter | ||
Updated•9 years ago
|
Component: Tabbed Browser → Theme
Comment 1•9 years ago
|
||
"sprite"
At least that's how we usually work around this problem. Though sometimes we use some other trick to preload the other image states, for example setting it as an offscreen background image somewhere.
Comment 2•9 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #1)
> "sprite"
>
> At least that's how we usually work around this problem. Though sometimes we
> use some other trick to preload the other image states, for example setting
> it as an offscreen background image somewhere.
I can make it a sprite, although that does remove the benefit of referencing individual elements in the SVG file.
I thought we would have to load the whole SVG file once it was referenced. Guess we only load the referenced sections?
Comment 3•9 years ago
|
||
Oh cool, I didn't know that was how it's working. I don't know what we do for SVG sections, but it seems like the flash is unnecessary then, and it would be worth filing a bug about it.
Reporter | ||
Comment 4•9 years ago
|
||
The muted icon is tab-audio.svg#tab-audio-muted as opposed to the normal icon (tab-audio.svg#tab-audio) so I guess separate sections are loaded separately...
Comment 5•9 years ago
|
||
I wonder if it's just because of the <use>? Changing the markup might fix it… I will try it and see. If not I can still make it a sprite.
Reporter | ||
Comment 6•9 years ago
|
||
Thanks!
Reporter | ||
Comment 7•9 years ago
|
||
The new icons that shorlander provided did not fix this problem, so I had to modify them myself to make a sprite out of them, and with the sprite, this will be fixed in bug 1192568.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Comment 8•9 years ago
|
||
We really shouldn't have to work around this like that. IDs are much easier to maintain than image regions.
Status: RESOLVED → REOPENED
Component: Theme → SVG
Flags: needinfo?(jwatt)
Product: Firefox → Core
Resolution: DUPLICATE → ---
Comment 9•9 years ago
|
||
Also adding Robert Longson and dholbert who seem to have worked on SVG more recently...?
Comment 12•9 years ago
|
||
(In reply to Markus Stange [:mstange] from comment #11)
> Seth, do you know what's causing this?
Yeah, I suspect I do. The symptoms above didn't make sense to me, given that we're talking about an SVG here, until I realized that this is yet another problem caused by #-moz-samplesize and #-moz-resolution, which force us to use a separate image cache entry for an image whenever the fragment identifier changes, causing us to actually have to load a second (or third, or fourth...) copy of the image.
Tell me if you've heard this one before: this will be fixed as part of downscale-during-decode. Fortunately we are getting really close now. -moz-samplesize can already be removed, and -moz-resolution should become removable during this cycle.
Clearing jwatt's needinfo since I think we have this diagnosed.
Comment 13•9 years ago
|
||
I encounter the same bug with many SVG icons (when I hover them the 1st time in session):
0) Sound indicator (this bug)
1) "New add-on" button in urlbar (actually I think that some other urlbar buttons are affected)
2) Active "back", "forward", "reload", "bookmark" icons in context menu
CCing this bug to check if (1), (2) will be fixed as well.
Updated•8 years ago
|
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•