WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
209753
`pushState` and `back` trigger page reloading when called in iframe
https://bugs.webkit.org/show_bug.cgi?id=209753
Summary
`pushState` and `back` trigger page reloading when called in iframe
Ivan Nedzvetskiy
Reported
2020-03-30 10:48:31 PDT
Reproducible script that can be ran on
https://test.dev1.hsstore.ru/safari/
What happened: When an `iframe` calls `window.history.pushState` and then `window.history.back`, the parent window's reloading. It happens only if we create iframe on the parent window and remove it before creating app iframe with history manipulation. Expected behavior: Fire event `popstate` without reload. Steps to reproduce: 1. Create iframe, add to DOM on parent page 2. Remove iframe from DOM on parent page 3. Create another iframe, load some app in it on parent page 4. In an app iframe, call `window.history.pushState(...)` 5. In an app iframe, call `window.history.back(...)` 6. Got reload instead of expected popstate event Demo: 1. Go
https://test.dev1.hsstore.ru/safari/
2. Click pushState 3. Click back 4. Got reload
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-03-30 13:18:09 PDT
<
rdar://problem/61069867
>
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