DescriptionFix History.{push,replace}State handling of null 'url' argument
According to the specification[1], if the 'url' argument is null, the
new URL should be the URL of the current entry. A relative URL should
be resolved using the document's base URL.
Adjust History::urlForState() to not treat a null (isNull()) string the
same as an empty (isEmpty()) string, which it otherwise does since
isEmpty() returns true for null strings as well.
BUG=279278
[1] http://www.whatwg.org/specs/web-apps/current-work/#dom-history-pushstate
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159120
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|