New issue
Advanced search Search tips

Issue 756301 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

history.pushState does not work correctly in pages loaded from remote mounts

Project Member Reported by p...@chromium.org, Aug 17 2017

Issue description

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
 

Comment 1 by p...@chromium.org, Aug 17 2017

Description: Show this description

Comment 2 by p...@chromium.org, Aug 17 2017

Description: Show this description

Comment 3 by vapier@chromium.org, Aug 17 2017

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 4 by sashab@chromium.org, Feb 23 2018

Labels: CrOS-FilesApp-FileSystemProvider

Comment 5 by sashab@chromium.org, Feb 28 2018

Labels: -CrOS-FilesApp-FileSystemProvider CrOSFilesFeature-FileSystemProvider
Status: Available (was: Untriaged)

Sign in to add a comment