WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
106180
SVG in <object> and <embed> should be restored from page cache
https://bugs.webkit.org/show_bug.cgi?id=106180
Summary
SVG in <object> and <embed> should be restored from page cache
Michael N.
Reported
2013-01-05 09:25:21 PST
Erik Dahlström's testpage shows the SVG logo referenced three times in one page, using all three embedding techniques respectively: object, embed, iframe and then works some JavaScript on them Load the page in Safari
http://dahlström.net/svg/html/get-embedded-svg-document-script.html
all three SVG logos (original fill: orange) get a green fill via script then load any other page then hit the back button the first two svg logos (object, embed) will be orange (their original state before script), the one with iframe will have a green fill Firefox 17, Chrome 23, IE9/10 seem to fire another onload event on hitting the backbutton, resulting in identical display on first load and on returning via backbutton. Opera 12 behaves like Safari in this scenario.
Attachments
[Web Archive] http://dahlström.net/svg/html/get-embedded-svg-document-script.html
(10.44 KB, application/x-webarchive)
2014-03-12 09:46 PDT
,
Daniel Bates
no flags
Details
[Screenshot] Initial load of http://dahlström.net/svg/html/get-embedded-svg-document-script.html
(146.37 KB, image/png)
2014-03-12 09:50 PDT
,
Daniel Bates
no flags
Details
[Screenshot] After navigating to another site and hitting back button
(148.45 KB, image/png)
2014-03-12 09:53 PDT
,
Daniel Bates
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2013-01-07 10:22:10 PST
This might be expected behavior.
Alexey Proskuryakov
Comment 2
2013-01-07 10:23:51 PST
Posted the previous comment prematurely. This sounds like a consequence of caching pages with plug-ins, and treating <object> and <embed> as plug-in content.
Brady Eidson
Comment 3
2013-01-07 10:29:20 PST
Yup - we blindly treat <embed> and <object> as plug-ins even if they aren't actually backed by a plugin instance. We should be able to detect this and properly cache such elements.
Daniel Bates
Comment 4
2014-03-12 09:29:19 PDT
***
Bug 130018
has been marked as a duplicate of this bug. ***
Daniel Bates
Comment 5
2014-03-12 09:46:19 PDT
Created
attachment 226517
[details]
[Web Archive]
http://dahlström.net/svg/html/get-embedded-svg-document-script.html
For historical preservation, attached a web archive of <
http://dahlström.net/svg/html/get-embedded-svg-document-script.html
> as it appeared on 03/12/2014 using Safari Version 7.0.2 (9537.74.9).
Daniel Bates
Comment 6
2014-03-12 09:50:17 PDT
Created
attachment 226519
[details]
[Screenshot] Initial load of
http://dahlström.net/svg/html/get-embedded-svg-document-script.html
Screenshot of initial load of <
http://dahlström.net/svg/html/get-embedded-svg-document-script.html
>.
Daniel Bates
Comment 7
2014-03-12 09:53:10 PDT
Created
attachment 226520
[details]
[Screenshot] After navigating to another site and hitting back button Screenshot of <
http://dahlström.net/svg/html/get-embedded-svg-document-script.html
> after navigating to another site and hitting the back button to return to the dahlström.net page. Note, sometimes I needed to navigate to another site (e.g. apple.com), click the back button, click the forward button and then click the back button to reproduce this issue.
Radar WebKit Bug Importer
Comment 8
2016-06-29 13:54:06 PDT
<
rdar://problem/27088113
>
Ahmad Saleem
Comment 9
2023-09-26 17:35:25 PDT
It is still reproducible in Safari 17. 1) Go to >
http://dahlström.net/svg/html/get-embedded-svg-document-script.html
2) All Green filled 3) Open 'gmail.com' or 'google.com' or any website on same tab 4) then using back button or swipe back gesture to go back to (1) page First two are now not 'green' filled. Adding 'BrowserCompat' as needed. Since Chrome Canary 119 and Firefox Nightly 120 are working fine.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug