Issue 443814 in chromium: HTML object and embed tags don't load inside SVG foreignObject

55 views
Skip to first unread message

chro...@googlecode.com

unread,
Dec 18, 2014, 7:53:16 PM12/18/14
to chromi...@chromium.org
Status: Unconfirmed
Owner: ----
Labels: Cr-Content Pri-2 Via-Wizard Type-Bug OS-Windows

New issue 443814 by rennie.d...@gmail.com: HTML object and embed tags don't
load inside SVG foreignObject
https://code.google.com/p/chromium/issues/detail?id=443814

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/39.0.2171.95 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Serve the web pages in the attached archive using the given Apache
configuration.
2. Load http://dom1.chrome-iframe-foreignobject.test

What is the expected behavior?

What went wrong?
The page in the attached archive attempts to load SVGs inside both
sandboxed and normal iframes. The SVGs contain foreignObject blocks
containing XHTML, which tries to load another SVG using img, object, embed,
and iframe tags. All documents are loaded from the same source under
default security policies. This is not a recursive document scenario; the
nested SVG is a different document.

In all cases, the nested document should load, resulting in a circle with a
wart on its lower-right corner. However, recent versions of Chrome do not
render the nested document when it is loaded via object or embed tags. It
/does/ load the nested document through img and iframe tags.

Current versions of Firefox load the document correctly in all cases.
Internet Explorer doesn't render the contents of svg:foreignObject
(including the most recent preview release), so it never renders the nested
images. Old versions of Chrome (such as 27.0.1453.93) do load all of the
cases correctly, so this is a regression in Chrome.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No

Did this work before? Yes It worked in 27.0.1453.93. I don't know when it
stopped working.

Does this work in other browsers? Yes

Chrome version: 39.0.2171.95 Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:

I also verified this issue on the latest Chrome Canary build on Windows.

Attachments:
chrome-iframe-foreignobject.tar 20.0 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

chro...@googlecode.com

unread,
Dec 26, 2014, 2:58:58 AM12/26/14
to chromi...@chromium.org
Updates:
Labels: TE-NeedFurtherTriage

Comment #1 on issue 443814 by nyerrami...@chromium.org: HTML object and
embed tags don't load inside SVG foreignObject
https://code.google.com/p/chromium/issues/detail?id=443814

(No comment was entered for this change.)

chro...@googlecode.com

unread,
Dec 29, 2014, 5:07:24 AM12/29/14
to chromi...@chromium.org
Updates:
Labels: Cr-Blink-SVG

Comment #2 on issue 443814 by a...@chromium.org: HTML object and embed tags

chro...@googlecode.com

unread,
Jan 2, 2015, 5:09:46 AM1/2/15
to chromi...@chromium.org
Updates:
Labels: Needs-Feedback

Comment #3 on issue 443814 by hmupp...@chromium.org: HTML object and embed
tags don't load inside SVG foreignObject
https://code.google.com/p/chromium/issues/detail?id=443814

rennie@, thanks for the issue. Would you mind attach screenshots of
expected result and the actual(problem) to help us triage better.

chro...@googlecode.com

unread,
Jan 2, 2015, 5:57:08 PM1/2/15
to chromi...@chromium.org

Comment #5 on issue 443814 by rennie.d...@gmail.com: HTML object and embed
tags don't load inside SVG foreignObject
https://code.google.com/p/chromium/issues/detail?id=443814

The bug seems to have been introduced in build 244510; build 244448 shows
the expected behaviour, but 244510 doesn't.

Attachments:
chromium-34.0.1782.0 (244448).png 73.8 KB
chromium-34.0.1783.0 (244510).png 73.6 KB

chro...@googlecode.com

unread,
Jan 2, 2015, 7:08:25 PM1/2/15
to chromi...@chromium.org

Comment #4 on issue 443814 by rennie.d...@gmail.com: HTML object and embed
tags don't load inside SVG foreignObject
https://code.google.com/p/chromium/issues/detail?id=443814

Sure; here are screenshots from Chromium 39.0.2171.65 and Firefox 34.0 on
my Kubuntu system. In Firefox, the nested images load in all eight cases
(although they aren't positioned or scaled properly in the cases where the
nested image is loaded as an iframe; I'm not sure if that's my fault or
theirs). In Chrome, the nested images aren't loaded at all when using
object or embed tags inside a sandboxed iframe.

Attachments:
chromium-39.0.2171.65.png 108 KB
firefox-34.0.png 88.6 KB

chro...@googlecode.com

unread,
Jan 5, 2015, 1:09:24 AM1/5/15
to chromi...@chromium.org
Updates:
Labels: -Needs-Feedback

Comment #6 on issue 443814 by hmupp...@chromium.org: HTML object and embed
tags don't load inside SVG foreignObject
https://code.google.com/p/chromium/issues/detail?id=443814

(No comment was entered for this change.)

chro...@googlecode.com

unread,
Jan 21, 2015, 7:12:40 AM1/21/15
to chromi...@chromium.org
Updates:
Labels: -TE-NeedFurtherTriage TE-NeedsFurtherTriage

Comment #7 on issue 443814 by manoranj...@chromium.org: HTML object and

chro...@googlecode.com

unread,
Oct 27, 2015, 9:50:53 AM10/27/15
to chromi...@chromium.org
Updates:
Cc: mk...@chromium.org
Labels: -Cr-Blink Cr-Blink-Loader

Comment #9 on issue 443814 by f...@opera.com: HTML object and embed tags
I'm reminded of issue 368705...

@rennie: Sure it was 34.0.1783.0 and not 34.0.1784.0? Could have been
https://codereview.chromium.org/76303002

Mike, could you have a look?

chro...@googlecode.com

unread,
Dec 29, 2015, 10:28:56 AM12/29/15
to chromi...@chromium.org
Updates:
Status: Assigned
Owner: schen...@chromium.org
Labels: -TE-NeedsFurtherTriage

Comment #10 on issue 443814 by schen...@chromium.org: HTML object and embed
tags don't load inside SVG foreignObject
https://code.google.com/p/chromium/issues/detail?id=443814

The referenced change moves the plugin content loadable check from
HTMLPluginElement::loadPlugin to HTMLPluginElement::requestPlugin. Further
investigation is required, but it is certainly plausible that it changed
the behavior of SVG in some way of SVG calls requestPlugin but not
loadPlugin. I'll own it.
Reply all
Reply to author
Forward
0 new messages