[Webkit-unassigned] [Bug 209753] New: `pushState` and `back` trigger page reloading when called in iframe

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 30 10:48:31 PDT 2020


            Bug ID: 209753
           Summary: `pushState` and `back` trigger page reloading when
                    called in iframe
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: History
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: stels-cs at yandex.ru

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

1. Go https://test.dev1.hsstore.ru/safari/
2. Click pushState
3. Click back
4. Got reload

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200330/6e812c13/attachment-0001.htm>

More information about the webkit-unassigned mailing list