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

Issue 21378002: Support POST in browser navaigation. (Closed)

Created:
7 years, 4 months ago by Johnny(Jianning) Ding
Modified:
7 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, kkimlasb_chromium.org
Visibility:
Public.

Description

Support POST in browser navaigation. The NavigationController already supports POST when navigating a URL, But PageNavigator does not. This change adds some fieds in OpenURLParams and NavigateParams to pass parameters needed by POST to NavigationController::LoadURLParams. BUG=89945 TEST=BrowserNavigatorTest.SendRequestUsingPOST Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215518

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Total comments: 10

Patch Set 4 : preventing a renderer initiated navigation from using POST #

Total comments: 7

Patch Set 5 : address jam's comments #

Patch Set 6 : move PageNavigator Destructor body back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -6 lines) Patch
M chrome/browser/ui/browser_navigator.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator.cc View 1 2 3 4 7 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.cc View 1 2 3 4 5 chunks +66 lines, -2 lines 0 comments Download
M content/public/browser/page_navigator.h View 1 2 3 4 5 3 chunks +12 lines, -1 line 0 comments Download
M content/public/browser/page_navigator.cc View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 25 (0 generated)
Johnny(Jianning) Ding
thakis@, please review chrome/browser/* avi@, please review content/public/*
7 years, 4 months ago (2013-07-31 19:26:27 UTC) #1
Avi (use Gerrit)
John likes content API changes. https://codereview.chromium.org/21378002/diff/1/content/public/browser/page_navigator.h File content/public/browser/page_navigator.h (right): https://codereview.chromium.org/21378002/diff/1/content/public/browser/page_navigator.h#newcode80 content/public/browser/page_navigator.h:80: // opening a URL ...
7 years, 4 months ago (2013-07-31 19:35:18 UTC) #2
Johnny(Jianning) Ding
https://codereview.chromium.org/21378002/diff/1/content/public/browser/page_navigator.h File content/public/browser/page_navigator.h (right): https://codereview.chromium.org/21378002/diff/1/content/public/browser/page_navigator.h#newcode80 content/public/browser/page_navigator.h:80: // opening a URL uses POST if sending POSt ...
7 years, 4 months ago (2013-07-31 20:42:47 UTC) #3
Avi (use Gerrit)
On 2013/07/31 20:42:47, Johnny(Jianning) Ding wrote: > https://codereview.chromium.org/21378002/diff/1/content/public/browser/page_navigator.h > File content/public/browser/page_navigator.h (right): > > https://codereview.chromium.org/21378002/diff/1/content/public/browser/page_navigator.h#newcode80 ...
7 years, 4 months ago (2013-07-31 21:14:42 UTC) #4
Nico
https://codereview.chromium.org/21378002/diff/1/chrome/browser/ui/browser_navigator.h File chrome/browser/ui/browser_navigator.h (right): https://codereview.chromium.org/21378002/diff/1/chrome/browser/ui/browser_navigator.h#newcode216 chrome/browser/ui/browser_navigator.h:216: bool uses_post; Don't we have the concept of "this ...
7 years, 4 months ago (2013-07-31 21:25:43 UTC) #5
Johnny(Jianning) Ding
https://codereview.chromium.org/21378002/diff/1/chrome/browser/ui/browser_navigator.h File chrome/browser/ui/browser_navigator.h (right): https://codereview.chromium.org/21378002/diff/1/chrome/browser/ui/browser_navigator.h#newcode216 chrome/browser/ui/browser_navigator.h:216: bool uses_post; On 2013/07/31 21:25:43, Nico wrote: > Don't ...
7 years, 4 months ago (2013-07-31 21:49:34 UTC) #6
Nico
+ben since he wrote browser_navigator.h. Adding POST and postdata in this class feels weird to ...
7 years, 4 months ago (2013-08-01 19:19:18 UTC) #7
joth
https://codereview.chromium.org/21378002/diff/13001/content/public/browser/page_navigator.h File content/public/browser/page_navigator.h (right): https://codereview.chromium.org/21378002/diff/13001/content/public/browser/page_navigator.h#newcode81 content/public/browser/page_navigator.h:81: std::string post_data; take a look at LoadURLParams in content/public/browser/navigation_controller.h ...
7 years, 4 months ago (2013-08-01 21:16:49 UTC) #8
jam
Charlie: can you take a look? You're more familiar with this stuff than me
7 years, 4 months ago (2013-08-02 00:43:09 UTC) #9
Charlie Reis
In general, supporting POST in the browser process is a very tricky thing to do. ...
7 years, 4 months ago (2013-08-02 16:36:41 UTC) #10
Johnny(Jianning) Ding
https://codereview.chromium.org/21378002/diff/13001/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/21378002/diff/13001/chrome/browser/ui/browser_navigator.cc#newcode264 chrome/browser/ui/browser_navigator.cc:264: // Only allows the user-initiated navigation to use POST? ...
7 years, 4 months ago (2013-08-02 23:22:54 UTC) #11
Charlie Reis
LGTM with nits. Thanks for adding the tests. https://codereview.chromium.org/21378002/diff/24001/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/21378002/diff/24001/chrome/browser/ui/browser_navigator.cc#newcode263 chrome/browser/ui/browser_navigator.cc:263: // ...
7 years, 4 months ago (2013-08-02 23:53:42 UTC) #12
Johnny(Jianning) Ding
https://codereview.chromium.org/21378002/diff/24001/chrome/browser/ui/browser_navigator.cc File chrome/browser/ui/browser_navigator.cc (right): https://codereview.chromium.org/21378002/diff/24001/chrome/browser/ui/browser_navigator.cc#newcode263 chrome/browser/ui/browser_navigator.cc:263: // Only allows the browser-initiated navigation to use POST. ...
7 years, 4 months ago (2013-08-03 01:11:17 UTC) #13
joth
lgtm re. my comments https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h File chrome/browser/ui/browser_navigator.h (right): https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h#newcode75 chrome/browser/ui/browser_navigator.h:75: scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; note you could ...
7 years, 4 months ago (2013-08-03 01:21:11 UTC) #14
Johnny(Jianning) Ding
https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h File chrome/browser/ui/browser_navigator.h (right): https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h#newcode75 chrome/browser/ui/browser_navigator.h:75: scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; On 2013/08/03 01:21:11, joth wrote: > note ...
7 years, 4 months ago (2013-08-03 01:44:52 UTC) #15
joth
https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h File chrome/browser/ui/browser_navigator.h (right): https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h#newcode75 chrome/browser/ui/browser_navigator.h:75: scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; On 2013/08/03 01:44:53, Johnny(Jianning) Ding wrote: > ...
7 years, 4 months ago (2013-08-03 01:55:47 UTC) #16
Johnny(Jianning) Ding
On 2013/08/03 01:44:52, Johnny(Jianning) Ding wrote: > https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h > File chrome/browser/ui/browser_navigator.h (right): > > https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h#newcode75 ...
7 years, 4 months ago (2013-08-03 02:01:10 UTC) #17
joth
On 2 August 2013 19:01, <jnd@chromium.org> wrote: > On 2013/08/03 01:44:52, Johnny(Jianning) Ding wrote: > ...
7 years, 4 months ago (2013-08-03 02:02:46 UTC) #18
jam
chrome lgtm w nits https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h File chrome/browser/ui/browser_navigator.h (right): https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h#newcode27 chrome/browser/ui/browser_navigator.h:27: } // namespace content ditto. ...
7 years, 4 months ago (2013-08-03 05:23:22 UTC) #19
Johnny(Jianning) Ding
https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h File chrome/browser/ui/browser_navigator.h (right): https://codereview.chromium.org/21378002/diff/34001/chrome/browser/ui/browser_navigator.h#newcode27 chrome/browser/ui/browser_navigator.h:27: } // namespace content On 2013/08/03 05:23:22, jam wrote: ...
7 years, 4 months ago (2013-08-03 18:05:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jnd@chromium.org/21378002/73001
7 years, 4 months ago (2013-08-03 18:06:43 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-03 18:39:04 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jnd@chromium.org/21378002/73001
7 years, 4 months ago (2013-08-03 18:39:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jnd@chromium.org/21378002/98001
7 years, 4 months ago (2013-08-03 18:51:39 UTC) #24
commit-bot: I haz the power
7 years, 4 months ago (2013-08-03 23:17:31 UTC) #25
Message was sent while issue was closed.
Change committed as 215518

Powered by Google App Engine
This is Rietveld 408576698