Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Issue 26216003: Fix History.{push,replace}State handling of null 'url' argument (Closed)

Created:
7 years, 2 months ago by Jens Widell
Modified:
7 years, 2 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -4 lines) Patch
A LayoutTests/http/tests/navigation/replacestate-base-no-url-argument.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/navigation/replacestate-base-no-url-argument-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
A + LayoutTests/http/tests/navigation/resources/replacestate-base-no-url-argument.html View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/History.cpp View 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jens Widell
7 years, 2 months ago (2013-10-08 10:34:03 UTC) #1
arv (Not doing code reviews)
LGTM
7 years, 2 months ago (2013-10-08 14:20:20 UTC) #2
Jens Widell
Thanks!
7 years, 2 months ago (2013-10-08 14:36:22 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/26216003/1
7 years, 2 months ago (2013-10-08 14:36:48 UTC) #4
commit-bot: I haz the power
7 years, 2 months ago (2013-10-08 15:37:33 UTC) #5
Message was sent while issue was closed.
Change committed as 159120

Powered by Google App Engine
This is Rietveld 408576698