WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
44228
Page refresh reloads entire iframe and not just the current iframe contents
https://bugs.webkit.org/show_bug.cgi?id=44228
Summary
Page refresh reloads entire iframe and not just the current iframe contents
Darth
Reported
2010-08-18 20:13:00 PDT
If you have a website that relies on iframes, and your navigation is happening within the iframe, refreshing a particular page should just refresh the current contents of the iframe. Right now in webkit browsers (Safari and Chrome) refreshing a page in an iframe reloads the entire page and hence reverts to the original page that was shown in the iframe, not the current one. The bug to track iframe src change history was fixed, and the history correctly shows prior pages that were in the iframe, however refreshing the page goes back to original page. iframe src history bug that was fixed -
https://bugs.webkit.org/show_bug.cgi?id=9166
This issue doesn't happen in Firefox. Test page (thanks to whoever made it)
http://www.s-seven.net/iframe_test
Google Chrome issue similar to this
http://code.google.com/p/chromium/issues/detail?id=16810
Attachments
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2010-08-20 11:24:40 PDT
Safari has always treated "refresh" as a top-level frame operation, only. The reporter here specifies we behave differently from Firefox... what does IE do?
Darth
Comment 2
2010-08-20 14:42:05 PDT
IE behaves same as FF or you can say FF behaves sames as IE.
Darth
Comment 3
2010-12-27 01:16:08 PST
Open this page in IE, FF and Chrome. Push the button to change the iframe src. Now refresh the page. IE/FF: page refreshes, but iframe src doesn't get reverted to its original src. Chrome/Safari: page refreshes and also reverts iframe src back to its original src. Will webkit be fixed to make it consistent with FF and IE? <!DOCTYPE html> <html> <head> <script> function butt() { document.getElementById('sometext').innerHTML = "Main page changed. Also iframe src changed."; document.getElementById('frame').src = '
http://www.apple.com/itunes
'; } </script> </head> <body> <button type='button' onclick='butt();'>push me</button> <div id='sometext' >initial text</div> <iframe id='frame' src='
http://www.apple.com
' width='500px' height='500px'></iframe> </body> </html>
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