Chrome Version: (copy from chrome://version)
OS: (e.g. Win7, OSX 10.9.5, etc...)
What steps will reproduce the problem?
(1) On host, create pushstate.html with these contents:
<!DOCTYPE html>
<script>
window.pushState(null, "", "?foo=bar");
</script>
(2) SFTP to host and navigate to pushstate.html
What is the expected result?
History entry should be created and URL should change to end in ?foo=bar
What happens instead?
No history entry created, URL unchanged
Please use labels and text to provide additional information.
Console output:
externalfile:[redacted]/pushstate.html:3 Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL '' cannot be created in a document with origin 'null' and URL 'externalfile:[redacted]/pushstate.html'.
at externalfile:[redacted]/pushstate.html:3:9
Chrome Version: (copy from chrome://version)
OS: (e.g. Win7, OSX 10.9.5, etc...)
What steps will reproduce the problem?
(1) On host, create pushstate.html with these contents:
<!DOCTYPE html>
<script>
history.pushState(null, "", "?foo=bar");
</script>
(2) SFTP to host and navigate to pushstate.html
What is the expected result?
History entry should be created and URL should change to end in ?foo=bar
What happens instead?
No history entry created, URL unchanged
Please use labels and text to provide additional information.
Console output:
externalfile:[redacted]/pushstate.html:3 Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL '' cannot be created in a document with origin 'null' and URL 'externalfile:[redacted]/pushstate.html'.
at externalfile:[redacted]/pushstate.html:3:9
Chrome Version: 60.0.3112.80 (Official Build) (64-bit)
OS: Chrome OS
What steps will reproduce the problem?
(1) On host, create pushstate.html with these contents:
<!DOCTYPE html>
<script>
history.pushState(null, "", "?foo=bar");
</script>
(2) SFTP to host and navigate to pushstate.html
What is the expected result?
History entry should be created and URL should change to end in ?foo=bar
What happens instead?
No history entry created, URL unchanged
Please use labels and text to provide additional information.
Console output:
externalfile:[redacted]/pushstate.html:3 Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL '' cannot be created in a document with origin 'null' and URL 'externalfile:[redacted]/pushstate.html'.
at externalfile:[redacted]/pushstate.html:3:9
Components: -Platform>Apps>Default>Hterm Platform>Apps>FileManager Labels: OS-Chrome Summary: history.pushState does not work correctly in pages loaded from remote mounts (was: history.pushState does not work correctly in pages loaded from SFTP hosts)
doesn't look specific to sftp. guessing any remote filesystem you mount via Files app and load html pages will run into this.
Comment 1 by p...@chromium.org
, Aug 17 2017