Ticket #2529399 (closed defect)

Reporter


Standa Opichal
Opened: 10/6/10
Last modified: 01/14/11
Status: closed
Type: defect
Resolution: fixed

Owner


Ryan Grove
Target Release: 3.3.0
Priority: P3 (normal)
Summary: Y.HistoryHash logs unquoted state changes twice
Description:

If one clicks on a link which contains otherwise escaped characters then YUI3 puts the original state to the location.hash. That triggers the onhashchange and that is set to the URL again as
HistoryHash compares the state to the quoted one.

As a result of this the back button needs double hits to actually go back...

Type: defect Observed in Version: 3.2.0
Component: History Severity: S3 (normal)
Assigned To: Ryan Grove Target Release: 3.3.0
Location: Priority: P3 (normal)
Tags: Relates To:
Browsers: All
URL:
Test Information:

e.g.:

<a href="yui3page#key=value/other/value"> causes the history to change:

1) if key=oldvalue != key=value%XXother%XXvalue then HistoryHash.setHash('#key=value%XXother%XXvalue')
2) triggers another change as the original URL was not quoted (the actual location.hash is 'key=value/other/value') so...
3) if key=value/other/value != key=value%XXother%XXvalue then HistoryHash.setHash('#key=value%XXother%XXvalue')

Change History

Standa Opichal

Posted: 10/6/10
  • component changed from None to History
  • owner changed from George to Ryan Grove
  • status changed from new to assigned

Ryan Grove

YUI Developer

Posted: 10/6/10
  • browser changed from N/A to All
  • milestone changed to 3.3.0
  • priority changed to P3 (normal)
  • status changed from assigned to accepted

Ryan Grove

YUI Developer

Posted: 10/6/10
  • status changed from accepted to checkedin

George

YUI Developer

Posted: 01/14/11
  • resolution changed to fixed
  • status changed from checkedin to closed