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

Uncaught SecurityError in Chrome 45 #268

Closed
LPGhatguy opened this issue Sep 2, 2015 · 5 comments
Closed

Uncaught SecurityError in Chrome 45 #268

LPGhatguy opened this issue Sep 2, 2015 · 5 comments
Labels

Comments

@LPGhatguy
Copy link

My system was just updated to Chrome 45 this morning, and now reading presentations directly from my local disk results in the following error:

Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///Users/luciengreathouse/Documents/projects/presentations/flexbox.html#1' cannot be created in a document with origin 'null'.

I can serve them from a small local server (python -m SimpleHTTPServer 8000) and it'll function just fine, but this was surprising because I'm supposed to present today!

I'm using the latest version of Remark (as in the example in the readme) on OS X.

@jkubrynski
Copy link

Same on Linux

@gnab gnab added the bug label Sep 6, 2015
@jmaslibre
Copy link

@Dominik-K reported this on #222 :
Quote:

Commenting out the lines 3561-3564 in the out/remark.js
if (typeof window.history.replaceState === 'function') {
window.history.replaceState(undefined, undefined, hash);
}
else {
and 3566 solved the problem. This lines are introduced with #143.

The corresponding discussion about this chrome change is in:
https://code.google.com/p/chromium/issues/detail?id=301210

@cwash
Copy link

cwash commented Sep 9, 2015

Same behavior just cropped up recently for me as well.

Chrome Version 45.0.2454.85 (64-bit)

@gnab
Copy link
Owner

gnab commented Sep 9, 2015

This has now been fixed and released in version 0.12.

@gnab gnab closed this as completed Sep 9, 2015
@jmaslibre
Copy link

Thanks!

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

No branches or pull requests

5 participants