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

Issue 1131993005: Switch //chrome/browser code to use IsOriginSecure() instead of SchemeIsSecure(). (Closed)

Created:
5 years, 7 months ago by lgarron
Modified:
5 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, markusheintz_, extensions-reviews_chromium.org, palmer
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch //chrome/browser code to use IsOriginSecure() instead of SchemeIsSecure(). We 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/c3efc57462238dc0a5de6e7857f6af6e4459ce6f Cr-Commit-Position: refs/heads/master@{#329344}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address felt@'s comments. #

Patch Set 3 : Rebasin' like it's mah job. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -9 lines) Patch
M chrome/browser/banners/app_banner_manager.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_context_uma_util.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/website_settings/permission_menu_model.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (17 generated)
lgarron
Hi! Would you mind looking at the following? (See the description for semantics.) bauerb@chromium.org: chrome/browser/banners/app_banner_manager.cc ...
5 years, 7 months ago (2015-05-08 23:40:00 UTC) #2
felt
* Can you wrap your description to 80char (apart from the links)? * What do ...
5 years, 7 months ago (2015-05-09 15:14:28 UTC) #3
benwells
c/b/banners and c/b/extensions lgtm
5 years, 7 months ago (2015-05-10 23:58:26 UTC) #4
Bernhard Bauer
content settings LGTM https://codereview.chromium.org/1131993005/diff/1/chrome/browser/content_settings/permission_context_uma_util.cc File chrome/browser/content_settings/permission_context_uma_util.cc (right): https://codereview.chromium.org/1131993005/diff/1/chrome/browser/content_settings/permission_context_uma_util.cc#newcode84 chrome/browser/content_settings/permission_context_uma_util.cc:84: bool secure_origin = IsOriginSecure(requesting_origin); +Miguel I ...
5 years, 7 months ago (2015-05-11 07:47:13 UTC) #6
Miguel Garcia
lgtm Agreed. This makes sense and I don't expect the histograms to change much (who ...
5 years, 7 months ago (2015-05-11 08:22:08 UTC) #7
lgarron
https://codereview.chromium.org/1131993005/diff/1/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc File chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc (right): https://codereview.chromium.org/1131993005/diff/1/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc#newcode116 chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc:116: ? net::GetHostAndOptionalPort(origin_) On 2015/05/09 15:14:27, felt wrote: > did ...
5 years, 7 months ago (2015-05-12 01:53:08 UTC) #8
felt
chrome/browser/ui/content_settings/content_setting_bubble_model.cc and chrome/browser/ui/website_settings/permission_menu_model.cc lgtm
5 years, 7 months ago (2015-05-12 01:54:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131993005/20001
5 years, 7 months ago (2015-05-12 01:58:15 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/74998) android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 7 months ago (2015-05-12 02:09:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131993005/60001
5 years, 7 months ago (2015-05-12 02:15:43 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/64974)
5 years, 7 months ago (2015-05-12 02:37:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131993005/80001
5 years, 7 months ago (2015-05-12 02:57:06 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 7 months ago (2015-05-12 03:49:47 UTC) #30
commit-bot: I haz the power
5 years, 7 months ago (2015-05-12 03:50:39 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c3efc57462238dc0a5de6e7857f6af6e4459ce6f
Cr-Commit-Position: refs/heads/master@{#329344}

Powered by Google App Engine
This is Rietveld 408576698