The preview thing when you hover over a tab doesn't work for svg
Categories
(Toolkit :: General, defect, P3)
Tracking
()
People
(Reporter: 30ntate, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0
Steps to reproduce:
I opened an svg in a tab and clicked on another tab and hovered over the tab with the svg open.
Actual results:
It just showed an empty grey box. I also tried pinning it and using a local one on my computer with file:///
Expected results:
It should have shown a preview of the svg
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Hello, thank you for the bug report!
Managed to reproduce on:
- Firefox Nightly 132.0a1;
- Firefox 131.0;
Tested on:
- macOS 14;
- Windows 10;
- Ubuntu 22;
Setting as NEW so the developing team can have a look.
Comment 3•1 year ago
|
||
Moving to Core SVG as it is apparently specific to it. It works with other image types (we tested PNG).
Do you have any suggestions on how to solve this problem, the browser is just using a canvas to get the preview.
Updated•1 year ago
|
Comment 4•1 year ago
|
||
(In reply to Marco Bonardo [:mak] from comment #3)
Do you have any suggestions on how to solve this problem, the browser is just using a canvas to get the preview.
Implemented here if you want to take a look: https://searchfox.org/mozilla-central/rev/1b90936792b2c71ef931cb1b8d6baff9d825592e/toolkit/components/thumbnails/PageThumbs.sys.mjs#490-547
Comment 5•1 year ago
|
||
Take Screenshot works and I imagine that also uses canvas, so someone just needs to figure out what's different between the two.
| Assignee | ||
Comment 6•1 year ago
|
||
TypeError: can't access property "clientHeight", body is null
| Assignee | ||
Comment 7•1 year ago
|
||
I'd appreciate if someone more familiar than me with this code wrote a
test or pointed me to a test to crib from.
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Comment 8•1 year ago
|
||
The severity field is not set for this bug.
:nalexander, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 10•1 year ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #7)
I'd appreciate if someone more familiar than me with this code wrote a
test or pointed me to a test to crib from.
I posted some examples on Phab, was that helpful or would you need further help?
We could also file a follow-up bug for the tests if you would like to complete this patch.
| Assignee | ||
Comment 11•1 year ago
|
||
No, this likely just fell through the cracks. Added a test. Ni?ing you since old patches tend to go to the bottom of the phab queue.
Updated•1 year ago
|
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
| bugherder | ||
Updated•1 year ago
|
Issue is reproducible on a 2024-09-26 Firefox Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 141.0a1 and Firefox Beta 140.0b2 on Windows 10, Ubuntu 22, macOS 15.
Description
•