New issue
Advanced search Search tips

Issue 802057 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Compat



Sign in to add a comment

popstate event not triggered when target state is null only on iOS version of Chrome

Reported by m...@vasekpurchart.cz, Jan 15 2018

Issue description

Steps to reproduce the problem:
1. Open new page (to have clear history, more importantly empty current history state - history.state)
2. Use the History API to create new entries - e.g. by history.pushState()
3. Register popstate listener with an action
4. Navigate back - by using browser UI, or by history.back();

What is the expected behavior?
Popstate listener should be triggered and registered function called with event.state === null.

The attached test case is written in this spirit, should fire alert with "Empty" state if working correctly.

What went wrong?
Popstate event is not triggered when the target state is null. This works as expected in all browsers we tested (Chrome/Desktop+Android, Firefox, IE, Safari), but does not work specifically on iOS Chrome (while Safari on the same system behaves correctly).

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 63.0.3239.73 (Oficiální sestavení) stable (64bitový)  Channel: stable
OS Version: 63.0.3239.73
Flash Version: 

I searched for similar bugs, but found only https://bugs.chromium.org/p/chromium/issues/detail?id=308674 which seems similar, but slightly different (and should be fixed a few years on top of that). This comment https://bugs.chromium.org/p/chromium/issues/detail?id=308674#c12 seems like the issue on hand though.
 
chrome-history-bug.html
291 bytes View Download

Comment 1 by sczs@chromium.org, Jan 17 2018

Cc: eugene...@chromium.org
eugenebut@ could you PTAL at this
Components: Mobile>WebView>Glue
Labels: -Type-Bug -Pri-2 Pri-3 Type-Compat
Owner: danyao@chromium.org
Status: Assigned (was: Unconfirmed)
Components: -Mobile>WebView>Glue UI>Browser>Navigation

Sign in to add a comment