Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute 'pushState' on 'History' #227

Closed
drnextgis opened this issue Nov 14, 2015 · 1 comment
Closed

Failed to execute 'pushState' on 'History' #227

drnextgis opened this issue Nov 14, 2015 · 1 comment

Comments

@drnextgis
Copy link

I've downloaded shower.zip from starting page but when I open index.html in Chromium and try to switch to second slide - presentation automatically goes to list mode and I get error in console:

Uncaught SecurityError: Failed to execute 'pushState' on 'History': A history state object with URL 'file:///home/dr/tmp./index.html?full#Cover' cannot be created in a document with origin 'null'.

The same presentation works fine in Firefox.

@pepelsbey
Copy link
Member

It’s a known issue caused by the new Chrome (since 45 or so) security limitations: it’s not allowed anymore to manipulate history for file:/// protocols. It could be easily solved by using local server: python -m SimpleHTTPServer 8000, for example. There’s also a patch removing History API usage from Shower’s core (replacing it with localStorage states), but it’s not merged yet, but it will be soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants