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

Issue 1131493004: Switch //chrome functions to use SchemeIsCryptographic() instead of SchemeIsSecure(). (Closed)

Created:
5 years, 7 months ago by lgarron
Modified:
5 years, 7 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, David Black, dhollowa+watch_chromium.org, donnd+watch_chromium.org, dougw+watch_chromium.org, extensions-reviews_chromium.org, Jered, jfweitz+watch_chromium.org, jiayl, kmadhusu+watch_chromium.org, melevin+watch_chromium.org, palmer, samarth+watch_chromium.org, skanuj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch //chrome functions to use SchemeIsCryptographic() instead of SchemeIsSecure(). palmer@ recently introduced SchemeIsCryptographic() and IsOriginSecure(), which are meant to replace SchemeIsSecure(). IsOriginSecure() roughly means "do we trust this content not to be tampered with before it reaches the user?" [1] This is a higher-level definition that corresponds to the new "privileged contexts" spec. [2] SchemeIsCryptographic() [3] is close to the old definition of SchemeIsSecure(), and literally just checks if the scheme is a cryptographic scheme (HTTPS or WSS as of right now). The difference is that SchemeIsCryptographic() will not consider filesystem URLs secure. [1] https://code.google.com/p/chromium/codesearch#chromium/src/content/public/common/origin_util.h&sq=package:chromium&type=cs&l=19&rcl=143099866 [2] https://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features and https://w3c.github.io/webappsec/specs/powerfulfeatures/ [3] https://code.google.com/p/chromium/codesearch#chromium/src/url/gurl.h&sq=package:chromium&type=cs&l=250&rcl=1430998666 BUG=362214 Committed: https://crrev.com/7b70d593c20676a7b2656684416a1be1f50a167a Cr-Commit-Position: refs/heads/master@{#329313}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Update a few calls from SchemeIs("https") to SchemeIsCryptographic() #

Patch Set 3 : Use inner URL for a filesystem calculation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -12 lines) Patch
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/search.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/signin/signin_header_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/toolbar_model_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
lgarron
Welcome to my Smörgåsbord CR! Would you fine Chrome folks mind reviewing the following? (See ...
5 years, 7 months ago (2015-05-07 22:53:45 UTC) #2
Peter Kasting
LGTM
5 years, 7 months ago (2015-05-07 22:54:45 UTC) #3
Ken Rockot(use gerrit already)
lgtm
5 years, 7 months ago (2015-05-07 22:58:50 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1131493004/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1131493004/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode1040 chrome/renderer/chrome_content_renderer_client.cc:1040: app_url.SchemeIs("https") && manifest_url.SchemeIsCryptographic() && why not app_url.SchemeIsCryptographic() ?
5 years, 7 months ago (2015-05-08 17:14:21 UTC) #5
jiayl
https://codereview.chromium.org/1131493004/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (left): https://codereview.chromium.org/1131493004/diff/1/chrome/renderer/chrome_content_renderer_client.cc#oldcode1040 chrome/renderer/chrome_content_renderer_client.cc:1040: app_url.SchemeIs("https") && On 2015/05/07 22:53:45, lgarron wrote: > jiayl@: ...
5 years, 7 months ago (2015-05-08 21:23:41 UTC) #7
samarth
lgtm
5 years, 7 months ago (2015-05-08 21:27:38 UTC) #8
lgarron
https://codereview.chromium.org/1131493004/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1131493004/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode1040 chrome/renderer/chrome_content_renderer_client.cc:1040: app_url.SchemeIs("https") && manifest_url.SchemeIsCryptographic() && On 2015/05/08 17:14:21, jochen (traveling) ...
5 years, 7 months ago (2015-05-08 21:48:40 UTC) #9
Roger Tawa OOO till Jul 10th
signin lgtm
5 years, 7 months ago (2015-05-11 17:44:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131493004/20001
5 years, 7 months ago (2015-05-11 18:57:33 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/62689) linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 7 months ago (2015-05-11 19:06:59 UTC) #15
palmer
+thakis as a replacement OWNER for jochen: can you please take a look at chrome/renderer/*? ...
5 years, 7 months ago (2015-05-11 21:56:00 UTC) #16
palmer
+thakis as a replacement OWNER for jochen: can you please take a look at chrome/renderer/*? ...
5 years, 7 months ago (2015-05-11 21:56:49 UTC) #18
jochen (gone - plz use gerrit)
lgtm
5 years, 7 months ago (2015-05-11 23:39:30 UTC) #19
Nico
On 2015/05/11 23:39:30, jochen (traveling) wrote: > lgtm lgtm from replacement jochen too
5 years, 7 months ago (2015-05-12 00:03:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131493004/40001
5 years, 7 months ago (2015-05-12 00:05:15 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131493004/60001
5 years, 7 months ago (2015-05-12 00:29:02 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 7 months ago (2015-05-12 02:05:10 UTC) #28
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 02:05:58 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7b70d593c20676a7b2656684416a1be1f50a167a
Cr-Commit-Position: refs/heads/master@{#329313}

Powered by Google App Engine
This is Rietveld 408576698