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

Issue 13877028: Renderer initiated navigations from non instant process should not fall into instant. (Closed)

Created:
7 years, 8 months ago by Charlie Reis
Modified:
7 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Shishir
Visibility:
Public.

Description

Renderer initiated navigations from non instant process should not fall into instant. Currently any renderer initiated navigations to the Instant URL that are bounced to the browser will fall into Instant process. We dont want this happening for security reasons. This CL fixes that by adding a new notion of a "privileged site" with restricted entry points. BUG=231589 COLLABORATOR=shishir@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198051

Patch Set 1 #

Patch Set 2 : Adding tests. #

Total comments: 16

Patch Set 3 : Addressing Charlie's comments. #

Total comments: 7

Patch Set 4 : Address comments & ensure InstantLoader pages start in the right SiteInstance. #

Total comments: 2

Patch Set 5 : Fixing ToolbarModelTests. #

Patch Set 6 : Simplifying ToolbarModelTest fix. #

Total comments: 4

Patch Set 7 : Minor fixes. #

Patch Set 8 : Commenting out DCHECK and adding TODO. #

Total comments: 3

Patch Set 9 : Fixing PolicyTest.ReplaceSearchTerms. #

Patch Set 10 : Fixing another recently added test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -61 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +30 lines, -36 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/search/search.h View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/search/search.cc View 1 2 3 4 5 6 7 8 9 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +115 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_loader.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -14 lines 0 comments Download
M content/browser/web_contents/render_view_host_manager.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Shishir
Hi Charlie, I have split out the changes to TemplateURL into a separate CL since ...
7 years, 7 months ago (2013-04-30 22:54:11 UTC) #1
Charlie Reis
Wow, cool-- I didn't realize you could upload patches to my original CL. I think ...
7 years, 7 months ago (2013-05-01 01:17:54 UTC) #2
Shishir
Adding jam for content API changes. PAL. https://codereview.chromium.org/13877028/diff/11001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/11001/chrome/browser/chrome_content_browser_client.cc#newcode767 chrome/browser/chrome_content_browser_client.cc:767: // effective ...
7 years, 7 months ago (2013-05-01 07:56:14 UTC) #3
Charlie Reis
LGTM with nit. https://codereview.chromium.org/13877028/diff/25003/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/13877028/diff/25003/content/public/browser/content_browser_client.h#newcode145 content/public/browser/content_browser_client.h:145: nit: Remove extra blank line.
7 years, 7 months ago (2013-05-01 16:50:06 UTC) #4
sreeram
https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc#newcode764 chrome/browser/chrome_content_browser_client.cc:764: is_instant_process = instant_service->IsInstantProcess(process_id); Do we need to check process ...
7 years, 7 months ago (2013-05-01 18:00:57 UTC) #5
Charlie Reis
https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc#newcode764 chrome/browser/chrome_content_browser_client.cc:764: is_instant_process = instant_service->IsInstantProcess(process_id); On 2013/05/01 18:00:57, sreeram wrote: > ...
7 years, 7 months ago (2013-05-01 18:05:29 UTC) #6
Shishir
https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc#newcode764 chrome/browser/chrome_content_browser_client.cc:764: is_instant_process = instant_service->IsInstantProcess(process_id); On 2013/05/01 18:00:57, sreeram wrote: > ...
7 years, 7 months ago (2013-05-01 18:13:52 UTC) #7
sreeram
https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc#newcode764 chrome/browser/chrome_content_browser_client.cc:764: is_instant_process = instant_service->IsInstantProcess(process_id); On 2013/05/01 18:13:52, Shishir wrote: > ...
7 years, 7 months ago (2013-05-01 18:35:17 UTC) #8
Shishir
PTAL. https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/25003/chrome/browser/chrome_content_browser_client.cc#newcode764 chrome/browser/chrome_content_browser_client.cc:764: is_instant_process = instant_service->IsInstantProcess(process_id); On 2013/05/01 18:35:18, sreeram wrote: ...
7 years, 7 months ago (2013-05-01 19:11:11 UTC) #9
sreeram
lgtm https://codereview.chromium.org/13877028/diff/42002/chrome/browser/search/search.h File chrome/browser/search/search.h (right): https://codereview.chromium.org/13877028/diff/42002/chrome/browser/search/search.h#newcode138 chrome/browser/search/search.h:138: // If the input is already an privileged ...
7 years, 7 months ago (2013-05-01 19:17:45 UTC) #10
jam
lgtm
7 years, 7 months ago (2013-05-01 21:42:37 UTC) #11
Shishir
Fixed Toolbarmodel test that was failing. https://codereview.chromium.org/13877028/diff/42002/chrome/browser/search/search.h File chrome/browser/search/search.h (right): https://codereview.chromium.org/13877028/diff/42002/chrome/browser/search/search.h#newcode138 chrome/browser/search/search.h:138: // If the ...
7 years, 7 months ago (2013-05-01 21:53:49 UTC) #12
sreeram
slgtm https://codereview.chromium.org/13877028/diff/43004/chrome/browser/ui/toolbar/toolbar_model_unittest.cc File chrome/browser/ui/toolbar/toolbar_model_unittest.cc (right): https://codereview.chromium.org/13877028/diff/43004/chrome/browser/ui/toolbar/toolbar_model_unittest.cc#newcode157 chrome/browser/ui/toolbar/toolbar_model_unittest.cc:157: void ResetTemplateURLForInstant(const GURL instant_url) { const GURL& https://codereview.chromium.org/13877028/diff/43004/chrome/browser/ui/toolbar/toolbar_model_unittest.cc#newcode213 ...
7 years, 7 months ago (2013-05-01 21:59:50 UTC) #13
Shishir
https://codereview.chromium.org/13877028/diff/43004/chrome/browser/ui/toolbar/toolbar_model_unittest.cc File chrome/browser/ui/toolbar/toolbar_model_unittest.cc (right): https://codereview.chromium.org/13877028/diff/43004/chrome/browser/ui/toolbar/toolbar_model_unittest.cc#newcode157 chrome/browser/ui/toolbar/toolbar_model_unittest.cc:157: void ResetTemplateURLForInstant(const GURL instant_url) { On 2013/05/01 21:59:50, sreeram ...
7 years, 7 months ago (2013-05-01 23:42:16 UTC) #14
Shishir
Commented out DCHECK as PolicyCheck.ReplaceSearchTerms currently violates it. Added TODO.
7 years, 7 months ago (2013-05-02 17:21:06 UTC) #15
Charlie Reis
https://codereview.chromium.org/13877028/diff/56001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/56001/chrome/browser/chrome_content_browser_client.cc#newcode735 chrome/browser/chrome_content_browser_client.cc:735: // TODO(shishir): Uncomment the followng DCHECK after tests are ...
7 years, 7 months ago (2013-05-02 17:25:20 UTC) #16
Charlie Reis
On 2013/05/02 17:25:20, creis wrote: > Is the ReplaceSearchTerms CL difficult to fix? It would ...
7 years, 7 months ago (2013-05-02 17:25:55 UTC) #17
Shishir
Fixed the tests, and on the trybots. https://codereview.chromium.org/13877028/diff/56001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/56001/chrome/browser/chrome_content_browser_client.cc#newcode735 chrome/browser/chrome_content_browser_client.cc:735: // TODO(shishir): ...
7 years, 7 months ago (2013-05-02 18:07:06 UTC) #18
Charlie Reis
https://codereview.chromium.org/13877028/diff/56001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/13877028/diff/56001/chrome/browser/chrome_content_browser_client.cc#newcode735 chrome/browser/chrome_content_browser_client.cc:735: // TODO(shishir): Uncomment the followng DCHECK after tests are ...
7 years, 7 months ago (2013-05-02 18:33:02 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/13877028/67001
7 years, 7 months ago (2013-05-02 21:47:36 UTC) #20
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) googleurl_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=48632
7 years, 7 months ago (2013-05-02 22:17:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/13877028/67001
7 years, 7 months ago (2013-05-02 22:24:07 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/13877028/89001
7 years, 7 months ago (2013-05-02 23:40:54 UTC) #23
commit-bot: I haz the power
Change committed as 198051
7 years, 7 months ago (2013-05-03 04:21:23 UTC) #24
samarth
7 years, 4 months ago (2013-07-30 18:12:11 UTC) #25
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698