Closed
Bug 1409992
Opened 7 years ago
Closed 7 years ago
<img> in <foreignObject> doesn't render when in <img>
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox56 | --- | wontfix |
firefox57 | --- | wontfix |
firefox58 | --- | fixed |
People
(Reporter: tristan.fraipont, Assigned: heycam)
References
Details
(Keywords: regression)
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171016185129
Steps to reproduce:
Take an svg document with this simple structure:
<svg width...>
<foreignObject width...>
<img src="data:image/...>
Actual results:
When this svg document is displayed in an <img> (HTMLImage) the foreignObject's img won't display.
It does work well when this document is loaded directly or through an iframe etc.
Expected results:
The img should load, whatever the svg's container.
Ps: (not sure if SVG is the right component since the bug seems to be in HTMLImage)
Comment 1•7 years ago
|
||
This is a regression. A build from 2013-01-01 works for instance.
Keywords: regressionwindow-wanted
Yes indeed it is a regression.
Here are my mozregression results:
First step:
Last good revision: 8e98dab5054dd093a37ba20c62cf0523e484cfbd (2017-05-19)
First bad revision: 8d60d0f825110cfb646ac31dc16dc011708bcf34 (2017-05-20)
Second step:
FO: Last good revision: 52b207e50972b74546b89775b6dd7c182ff6ff6a
First bad revision: c800b6dfca673f8cb0f3cf41e4f495755d04bbb3
Last step:
Last good revision: 1667def6751501149dc69e7d9608cffdf3c19e7d
First bad revision: 55ccbc9a9bfcd1327f617230031f178a7a2aa8d3
Assignee | ||
Comment 3•7 years ago
|
||
In that inbound merge https://hg.mozilla.org/mozilla-central/pushloghtml?changeset=c800b6dfca67 it's probably bug 1318624.
Assignee | ||
Updated•7 years ago
|
Blocks: 1318624
Keywords: regressionwindow-wanted → regression
Assignee | ||
Comment 4•7 years ago
|
||
My guess is that the places in the bug 1318624 patch where we call IsCurrentActiveDocument() we should also allow IsBeingUsedAsImage().
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → cam
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
status-firefox56:
--- → affected
status-firefox57:
--- → affected
status-firefox58:
--- → affected
Version: 54 Branch → 55 Branch
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8920074 [details]
Bug 1409992 - Allow SVG as images to load data: URL images.
https://reviewboard.mozilla.org/r/191076/#review196644
Attachment #8920074 -
Flags: review?(echen) → review+
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/725b9a93a191
Allow SVG as images to load data: URL images. r=edgar
Comment 9•7 years ago
|
||
Backed out for frequently failing layout/reftests/svg/foreignObject-img.html:
https://hg.mozilla.org/integration/autoland/rev/3b598784dfd30d89c447cabe5ab4160597bf0bc3
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=725b9a93a191a6f82be2ea7d18a22850b8986476&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=usercancel&filter-resultStatus=runnable&filter-resultStatus=retry
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=138425166&repo=autoland
> REFTEST TEST-UNEXPECTED-FAIL | file:///builds/worker/workspace/build/tests/reftest/tests/layout/reftests/svg/foreignObject-img.html == file:///builds/worker/workspace/build/tests/reftest/tests/layout/reftests/svg/foreignObject-img-ref.html | image comparison, max difference: 255, number of differing pixels: 10000
Flags: needinfo?(cam)
Assignee | ||
Comment 10•7 years ago
|
||
Flags: needinfo?(cam)
Comment hidden (mozreview-request) |
Comment 12•7 years ago
|
||
Pushed by cmccormack@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ce667ebd9b12
Allow SVG as images to load data: URL images. r=edgar
Comment 13•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Updated•7 years ago
|
status-firefox-esr52:
--- → unaffected
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•