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

Issue 1911573002: Teach SiteInstance::GetSiteForURL() about blob and filesystem URLs. (Closed)

Created:
4 years, 8 months ago by ncarter (slow)
Modified:
4 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, ajwong+watch_chromium.org, site-isolation-reviews_chromium.org, Mike West, dmurph, brettw
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Teach SiteInstance::GetSiteForURL() about blob and filesystem URLs. Use url::Origin to do the heavy lifting. This fixes FrameTreeBrowsertest.NavigateGrandchildToBlob under --site-per-process, and fixes process transfers for blob URLs in general. url::Origin extraction exposed a bug where tests encountered chrome-search:// URLs with ports. This is fixed by clearing the port. BUG=602818, 564316, 490074, 605720 Committed: https://crrev.com/1dd47922979b128ce7ee8debf138b83c65661024 Cr-Commit-Position: refs/heads/master@{#390672}

Patch Set 1 #

Patch Set 2 : More tests #

Patch Set 3 : Mark two layout tests fixed #

Total comments: 2

Patch Set 4 : Attempt simple fix for NTP failures #

Total comments: 6

Patch Set 5 : scheme with port. #

Patch Set 6 : Revert to patch set #4 #

Total comments: 6

Patch Set 7 : Add search unittest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -28 lines) Patch
M chrome/browser/search/search.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/search/search_unittest.cc View 1 2 3 4 5 6 3 chunks +36 lines, -1 line 0 comments Download
M content/browser/site_instance_impl.cc View 1 chunk +10 lines, -23 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 chunks +47 lines, -2 lines 0 comments Download
M testing/buildbot/filters/site-per-process.content_browsertests.filter View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 31 (14 generated)
ncarter (slow)
Charlie: PTAL https://codereview.chromium.org/1911573002/diff/40001/content/browser/site_instance_impl_unittest.cc File content/browser/site_instance_impl_unittest.cc (right): https://codereview.chromium.org/1911573002/diff/40001/content/browser/site_instance_impl_unittest.cc#newcode321 content/browser/site_instance_impl_unittest.cc:321: EXPECT_EQ("[::1]", site_url.host()); These are added just for ...
4 years, 8 months ago (2016-04-20 23:06:00 UTC) #4
ncarter (slow)
Charlie: This is ready for your review now
4 years, 8 months ago (2016-04-22 17:15:12 UTC) #7
Charlie Reis
[+samarth] Great. One thought about the chrome-search case below, since I'm leaning towards SCHEME_WITH_PORT. https://codereview.chromium.org/1911573002/diff/60001/chrome/browser/search/search.cc ...
4 years, 8 months ago (2016-04-22 18:11:09 UTC) #9
ncarter (slow)
https://codereview.chromium.org/1911573002/diff/60001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/1911573002/diff/60001/chrome/browser/search/search.cc#newcode496 chrome/browser/search/search.cc:496: replacements.ClearPort(); On 2016/04/22 18:11:09, Charlie Reis wrote: > I'll ...
4 years, 8 months ago (2016-04-22 20:00:34 UTC) #10
Charlie Reis
LGTM https://codereview.chromium.org/1911573002/diff/60001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/1911573002/diff/60001/chrome/browser/search/search.cc#newcode496 chrome/browser/search/search.cc:496: replacements.ClearPort(); On 2016/04/22 20:00:34, ncarter wrote: > On ...
4 years, 8 months ago (2016-04-22 20:20:46 UTC) #11
ncarter (slow)
On 2016/04/22 20:20:46, Charlie Reis wrote: > LGTM > > https://codereview.chromium.org/1911573002/diff/60001/chrome/browser/search/search.cc > File chrome/browser/search/search.cc (right): ...
4 years, 8 months ago (2016-04-22 20:30:10 UTC) #12
samarth
On 2016/04/22 20:30:10, ncarter wrote: > On 2016/04/22 20:20:46, Charlie Reis wrote: > > LGTM ...
4 years, 8 months ago (2016-04-25 19:41:04 UTC) #13
ncarter (slow)
I've switched to SCHEME_WITH_PORT +brettw for chrome_content_client.cc
4 years, 7 months ago (2016-04-27 22:07:27 UTC) #16
brettw
On 2016/04/27 22:07:27, ncarter wrote: > I've switched to SCHEME_WITH_PORT > > +brettw for chrome_content_client.cc ...
4 years, 7 months ago (2016-04-27 22:26:22 UTC) #17
ncarter (slow)
On 2016/04/27 22:26:22, brettw wrote: > On 2016/04/27 22:07:27, ncarter wrote: > > I've switched ...
4 years, 7 months ago (2016-04-27 23:01:59 UTC) #18
ncarter (slow)
I've switched back to clearing the port, since SCHEME_WITH_PORT causes other problems: https://bugs.chromium.org/p/chromium/issues/detail?id=605720#c8 Removing brettw ...
4 years, 7 months ago (2016-04-28 20:13:57 UTC) #21
samarth
A few comments but this lgtm for search. https://codereview.chromium.org/1911573002/diff/100001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/1911573002/diff/100001/chrome/browser/search/search.cc#newcode493 chrome/browser/search/search.cc:493: // ...
4 years, 7 months ago (2016-04-28 20:25:04 UTC) #22
ncarter (slow)
Done. PTAL at the unittest. https://codereview.chromium.org/1911573002/diff/100001/chrome/browser/search/search.cc File chrome/browser/search/search.cc (right): https://codereview.chromium.org/1911573002/diff/100001/chrome/browser/search/search.cc#newcode493 chrome/browser/search/search.cc:493: // Replace the scheme ...
4 years, 7 months ago (2016-04-28 22:21:49 UTC) #23
samarth
lgtm
4 years, 7 months ago (2016-04-29 00:29:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911573002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911573002/120001
4 years, 7 months ago (2016-04-29 16:39:34 UTC) #27
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-04-29 16:44:58 UTC) #29
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:26:28 UTC) #30
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1dd47922979b128ce7ee8debf138b83c65661024
Cr-Commit-Position: refs/heads/master@{#390672}

Powered by Google App Engine
This is Rietveld 408576698