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

Issue 2573113002: Do not check for ASCII in WebSecurityOrigin->Origin conversion (Closed)

Created:
4 years ago by Charlie Harrison
Modified:
4 years ago
Reviewers:
kinuko, Mike West
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not check for ASCII in WebSecurityOrigin->Origin conversion Protocols, hosts, and suborigins are guaranteed to be canonicalized to ASCII. Using WebString::ascii DCHECKs this fact, whereas WebString::utf8 branches on it. Using ascii() prevents a scan-through of each part of the origin. BUG=672877 Committed: https://crrev.com/8327037293547a118f463e2e359274b51de1d6d3 Cr-Commit-Position: refs/heads/master@{#438858}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M third_party/WebKit/public/platform/WebSecurityOrigin.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
Charlie Harrison
mkwst: PTAL? (trivial) I traced the suborigin code and it seems ok to DCHECK that ...
4 years ago (2016-12-14 15:12:14 UTC) #4
Charlie Harrison
cc kinuko because on platform-architecture-dev@ we chatted about unnecessary containsOnlyASCII() checks. Anytime we are operating ...
4 years ago (2016-12-14 15:16:26 UTC) #5
Mike West
LGTM.
4 years ago (2016-12-15 14:54:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2573113002/1
4 years ago (2016-12-15 15:58:04 UTC) #10
kinuko
lgtm/2!
4 years ago (2016-12-15 15:58:37 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-15 17:22:52 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-15 17:25:16 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/8327037293547a118f463e2e359274b51de1d6d3
Cr-Commit-Position: refs/heads/master@{#438858}

Powered by Google App Engine
This is Rietveld 408576698