Bug 145405 - History.js (it use native window.history) crash application
Summary: History.js (it use native window.history) crash application
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: History (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Critical
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-27 00:32 PDT by Alexander
Modified: 2015-05-28 22:24 PDT (History)
1 user (show)

See Also:


Attachments
screenshot of chrome://verison (109.21 KB, image/png)
2015-05-27 00:32 PDT, Alexander
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2015-05-27 00:32:28 PDT
Created attachment 253784 [details]
screenshot of chrome://verison

I have a problem with history (browser doesn't firing event 'onpopstate' on use code history.go(-1)):

Steps for reproduce:
1) go to www.site.ru (this is fake site and he doesn't work, just for example)
2) go to www.site.ru/employee
3) open information about employee by click for a link www.site.ru/employee/id open modal window, code:
   History.pushState({}, 'Title', 'URL')
4) When modal window was hidden (bootstrap event hidden.bs.modal) use code:
   History.back();

And page stoped work and url stop on this www.site.ru/employee/id, but must go to www.site.ru/employee

Usually, all work is very good, but sometimes Google Chrome browser hangs (1 time from 1, 1 from 10, 1 from 30 and other).

I can reproduce that sometimes and app is hangs.

Some information about History.js variables:

History.busy() = true
events popstate/statechange don't work
History.getState().id == history.state
Comment 1 Alexey Proskuryakov 2015-05-28 22:24:28 PDT
Can you reproduce this with Safari on Mac, or some other WebKit browser? Chrome is a different project, we don't track its bugs here.