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

Issue 643733002: Add RoutingIDIssuer to ensure the correctness of ID to be routed. (Closed)

Created:
6 years, 2 months ago by Hajime Morrita
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, nasko
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add RoutingIDIssuer to ensure the correctness of ID to be routed. This CL introduces RoutingIDIssuer which tracks issued routing ID per RenderProcessHost and let the Host class verify routing ids to get routed. TEST=routing_id_issuer_unitteest.cc R=jam@chromium.org, sky@chromium.org TBR=mattm@chromium.org BUG=381990, 415059 Committed: https://crrev.com/d3e91b36c3c29aee92159db9d5cc331cd3f97241 Cr-Commit-Position: refs/heads/master@{#299423}

Patch Set 1 #

Patch Set 2 : Fixing Android build failure #

Patch Set 3 : #

Patch Set 4 : Fixing failing t ests #

Patch Set 5 : Fixing another test failure #

Patch Set 6 : Simplified #

Patch Set 7 : Merged to ToT #

Patch Set 8 : #

Total comments: 12

Patch Set 9 : Updated ToT again #

Total comments: 8

Patch Set 10 : Addressed Nasko's points. #

Total comments: 2

Patch Set 11 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -5 lines) Patch
M chrome/renderer/safe_browsing/phishing_classifier_browsertest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/accessibility/site_per_process_accessibility_browsertest.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -2 lines 0 comments Download
A content/browser/renderer_host/routing_id_issuer.h View 1 2 3 4 5 6 7 8 9 1 chunk +44 lines, -0 lines 0 comments Download
A content/browser/renderer_host/routing_id_issuer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download
A content/browser/renderer_host/routing_id_issuer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +41 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
A content/public/test/routing_id_mangling_disabler.h View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
A content/public/test/routing_id_mangling_disabler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
M content/renderer/dom_serializer_browsertest.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/resource_fetcher_browsertest.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
Hajime Morrita
6 years, 2 months ago (2014-10-09 20:01:44 UTC) #1
Hajime Morrita
This is for investigating the mysterious crash that blocks MojoApplicationHost to fly.
6 years, 2 months ago (2014-10-09 20:03:09 UTC) #2
Hajime Morrita
@nasko: When you have time, would you mind to look why site_per_process_accessibility_browsertest.cc fails without the ...
6 years, 2 months ago (2014-10-10 00:07:10 UTC) #3
Hajime Morrita
OK, bots are almost green. PTAL? nasko: content/ mattm, noelutz: safe_browsing/ - Adding a workaround ...
6 years, 2 months ago (2014-10-10 00:52:49 UTC) #5
Hajime Morrita
OK, now this is green. Nasko: PTAL?
6 years, 2 months ago (2014-10-11 00:05:18 UTC) #6
nasko
Some nits and questions, but overall nice idea! Adding nick@, who I've been bouncing ideas ...
6 years, 2 months ago (2014-10-13 21:04:01 UTC) #8
Hajime Morrita
Thanks for the review! > Couple of notes: > * The stack traces that nick@ ...
6 years, 2 months ago (2014-10-13 22:23:47 UTC) #9
Hajime Morrita
https://codereview.chromium.org/643733002/diff/910001/content/browser/renderer_host/render_widget_helper.h File content/browser/renderer_host/render_widget_helper.h (right): https://codereview.chromium.org/643733002/diff/910001/content/browser/renderer_host/render_widget_helper.h#newcode84 content/browser/renderer_host/render_widget_helper.h:84: // Probablistically verify if he ID is issued by ...
6 years, 2 months ago (2014-10-13 22:23:54 UTC) #10
nasko
LGTM with a nit. https://codereview.chromium.org/643733002/diff/1240001/content/browser/renderer_host/routing_id_issuer.cc File content/browser/renderer_host/routing_id_issuer.cc (right): https://codereview.chromium.org/643733002/diff/1240001/content/browser/renderer_host/routing_id_issuer.cc#newcode18 content/browser/renderer_host/routing_id_issuer.cc:18: base::StaticAtomicSequenceNumber g_manglerSequence; nit: let's make ...
6 years, 2 months ago (2014-10-13 22:40:02 UTC) #11
ncarter (slow)
Overall I am okay with adding some kind of type fingerprinting to our route_ids, given ...
6 years, 2 months ago (2014-10-13 22:51:33 UTC) #12
Hajime Morrita
https://codereview.chromium.org/643733002/diff/1020001/content/browser/renderer_host/routing_id_issuer.cc File content/browser/renderer_host/routing_id_issuer.cc (right): https://codereview.chromium.org/643733002/diff/1020001/content/browser/renderer_host/routing_id_issuer.cc#newcode18 content/browser/renderer_host/routing_id_issuer.cc:18: int g_manglerSequence = 0; On 2014/10/13 22:51:33, ncarter wrote: ...
6 years, 2 months ago (2014-10-13 23:39:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643733002/1590001
6 years, 2 months ago (2014-10-13 23:44:19 UTC) #15
Hajime Morrita
Updated the CL. Nick: PTAL? Setting the commit bit to reserve cq.
6 years, 2 months ago (2014-10-13 23:44:30 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/17368)
6 years, 2 months ago (2014-10-13 23:52:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643733002/1590001
6 years, 2 months ago (2014-10-14 01:40:50 UTC) #20
commit-bot: I haz the power
Committed patchset #11 (id:1590001)
6 years, 2 months ago (2014-10-14 03:49:41 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-14 03:50:33 UTC) #22
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d3e91b36c3c29aee92159db9d5cc331cd3f97241
Cr-Commit-Position: refs/heads/master@{#299423}

Powered by Google App Engine
This is Rietveld 408576698