Intrinsic sizing of SVG embedded via <object>/<embed> doesn't disappear on navigation
Categories
(Core :: SVG, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox109 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: farre)
References
Details
(Whiteboard: [layout:backlog],[orb:m2], [wptsync upstream])
Attachments
(1 file)
If I do the following:
- Create a page that loads an SVG via <object>.
- Navigate the window the SVG is in (via frames[0].location.href) to an HTML page
the size the <object> determined from the SVG does not change when the navigation to the HTML happens (unlike the other direction: going from HTML to SVG resizes the <object>). This is not spec-compliant, and can be an information leak (from the SVG to the following HTML, which might not be same-origin).
Updated•6 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•3 years ago
|
||
How surprising. Could we do something like just reframe the whole <object>/<embed> ?
Comment 2•3 years ago
|
||
There should be no need to reframe, just clearing these two on navigation should work: https://searchfox.org/mozilla-central/rev/ace2c59e6c56b2dcba25af1aa8903a5e7f9a5857/dom/base/nsObjectLoadingContent.h#580-588
If the object element knows when it's been navigated then it's trivial to do, otherwise we need to clear it up from the child presumably.
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
|
||
| Assignee | ||
Comment 4•3 years ago
|
||
Updated•3 years ago
|
Comment 7•3 years ago
|
||
| bugherder | ||
Description
•