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

Issue 612533002: Add /cross-site/ request handler to testserver.py (Closed)

Created:
6 years, 2 months ago by nasko
Modified:
6 years, 2 months ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews, cbentzel+watch_chromium.org, site-isolation-dev_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add /cross-site/ request handler to testserver.py Adding this handler will make authoring tests which exercise cross-site navigations much easier. This is harder in the current codebase, because testserver runs on a random port each time it is ran which requires boilerplate code in each test that needs it. Instead of computing the real URL in C++ code, just navigate using "/cross-site/hostname/path/and/more" and the server will redirect to the new host. This requires browser tests to map all hosts to localhost, which is done by adding 'host_resolver()->AddRule("*", "127.0.0.1");' to the beginning of the test. BUG=418236 Committed: https://crrev.com/14c66460be23532452ae32f3546e5578ab48c590 Cr-Commit-Position: refs/heads/master@{#297182}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M net/tools/testserver/testserver.py View 2 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
nasko
Hi Paweł, Can you review this CL for me? Thanks in advance, Nasko
6 years, 2 months ago (2014-09-26 20:44:54 UTC) #2
nasko
Adding site-isolation-dev@
6 years, 2 months ago (2014-09-26 20:46:48 UTC) #3
Paweł Hajdan Jr.
Will this be used in src/net or in some layer above like src/chrome? For the ...
6 years, 2 months ago (2014-09-26 22:10:14 UTC) #4
nasko
On 2014/09/26 22:10:14, Paweł Hajdan Jr. wrote: > Will this be used in src/net or ...
6 years, 2 months ago (2014-09-26 22:29:56 UTC) #5
Paweł Hajdan Jr.
On 2014/09/26 22:29:56, nasko wrote: > This will be used in src/content. I will add ...
6 years, 2 months ago (2014-09-26 23:14:44 UTC) #6
nasko
On 2014/09/26 23:14:44, Paweł Hajdan Jr. wrote: > On 2014/09/26 22:29:56, nasko wrote: > > ...
6 years, 2 months ago (2014-09-26 23:41:27 UTC) #7
Paweł Hajdan Jr.
LGTM just to avoid blocking you Please be aware of https://code.google.com/p/chromium/issues/detail?id=96594 I mentioned before. You're ...
6 years, 2 months ago (2014-09-29 09:01:47 UTC) #8
nasko
On 2014/09/29 09:01:47, Paweł Hajdan Jr. wrote: > LGTM just to avoid blocking you > ...
6 years, 2 months ago (2014-09-29 15:13:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/612533002/1
6 years, 2 months ago (2014-09-29 15:14:32 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as 204b30b8848a01b779fb60c389898e26fcc4a5ad
6 years, 2 months ago (2014-09-29 15:53:27 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 15:54:14 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/14c66460be23532452ae32f3546e5578ab48c590
Cr-Commit-Position: refs/heads/master@{#297182}

Powered by Google App Engine
This is Rietveld 408576698