Bug 76721

Summary: history.replaceState should update the HistoryItem to use a GET method if previously non-GET (POST)
Product: WebKit Reporter: Darin Fisher (:fishd, Google) <fishd>
Component: HistoryAssignee: jochen
Status: RESOLVED FIXED    
Severity: Normal CC: creis, japhet, jochen, mihaip, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 76784    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Darin Fisher (:fishd, Google)
Reported 2012-01-20 11:28:49 PST
history.replaceState should update the HistoryItem to use a GET method if previously non-GET (POST) This is about implementing step #4 under http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#dom-history-replacestate 4. If the current entry in the session history represents a non-GET request (e.g. it was the result of a POST submission) then update it to instead represent a GET request (or equivalent).
Attachments
Patch (8.18 KB, patch)
2012-01-20 15:16 PST, jochen
no flags
jochen
Comment 1 2012-01-20 15:16:55 PST
Mihai Parparita
Comment 2 2012-01-20 15:23:02 PST
Comment on attachment 123390 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=123390&action=review > LayoutTests/http/tests/history/resources/replacestate-current.php:9 > + history.go(0); Nit: location.reload() would be a more explicit way of doing a page reload.
jochen
Comment 3 2012-01-20 16:12:30 PST
(In reply to comment #2) > (From update of attachment 123390 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=123390&action=review > > > LayoutTests/http/tests/history/resources/replacestate-current.php:9 > > + history.go(0); > > Nit: location.reload() would be a more explicit way of doing a page reload. I test history.go(0) as this code path is special cased
WebKit Review Bot
Comment 4 2012-01-21 02:18:52 PST
Comment on attachment 123390 [details] Patch Clearing flags on attachment: 123390 Committed r105574: <http://trac.webkit.org/changeset/105574>
WebKit Review Bot
Comment 5 2012-01-21 02:18:58 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.