Bug 197839 - REGRESSION (Safari 12): History navigation issue inside dynamically added/removed iframe
Summary: REGRESSION (Safari 12): History navigation issue inside dynamically added/rem...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Frames (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-05-13 08:18 PDT by leoasis
Modified: 2019-05-15 14:08 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leoasis 2019-05-13 08:18:38 PDT
There is an issue regarding navigation with history inside an iframe, removing and appending an iframe dynamically and the Webkit version that ships starting from Safari 12. This issue is not existing in previous versions (from what I've tested), and it's still present in latest Safari Technology Preview.

Here's a link that shows the issue and the steps to reproduce it: https://jsfiddle.net/rhon4bvk/3/show. Notice how the history gets messed up after removing and appending an iframe, and how performing certain navigations forces a refresh of page. Also notice how this doesn't happen in other browsers, like Chrome, where the behavior the second time after closing and opening the iframe is the same as the initial one.

The code for the outer page is here:
https://jsfiddle.net/rhon4bvk/3/

The code for the iframed page is here:
https://jsfiddle.net/Lnr3q809/3/
Comment 1 Radar WebKit Bug Importer 2019-05-15 14:08:55 PDT
<rdar://problem/50825679>