cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-7510) history.replaceState doesn't work with long URLs
Date Fri, 05 Dec 2014 02:04:12 GMT

     [ https://issues.apache.org/jira/browse/CB-7510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesse MacFadyen resolved CB-7510.
---------------------------------
    Resolution: Unresolved

This is a limitation of the browser control.
The js as posted throws a SecurityError for any url longer than 180 char.

> history.replaceState doesn't work with long URLs
> ------------------------------------------------
>
>                 Key: CB-7510
>                 URL: https://issues.apache.org/jira/browse/CB-7510
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 2.9.1
>         Environment: Windows Phone 8.0 (NOKIA Lumia 920)
>            Reporter: Alexander Bykov
>            Assignee: Jesse MacFadyen
>
> While executing the js code below an app stops working if the 'url' argument length is
greater that 200:
>             var url = Array(200).join("a");
>             alert("start " + url.length);
>             alert(window.history.replaceState(null, null, url));
>             alert("end");
> If run the same code in phone's browser it works properly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message