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

Issue 2945173006: VR: Enforce LTR directionality on rendered URL text. (Closed)

Created:
3 years, 6 months ago by cjgrant
Modified:
3 years, 6 months ago
Reviewers:
estark
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

VR: Enforce LTR directionality on rendered URL text. Do as the Views-based omnibox does, and enforce LTR on URL text. This ensures that malicious URLs can't visually spoof a hostname. Also, add a unit test to ensure that the LTR directionality holds up against such a URL. TBR=estark@chromium.org BUG=735960 Review-Url: https://codereview.chromium.org/2945173006 Cr-Commit-Position: refs/heads/master@{#482054} Committed: https://chromium.googlesource.com/chromium/src/+/c1f64db1a25c84c6583e9ac7dc2e035a6b8ddfec

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Add a test to ensure that a malicious RTL URL cannot spoof a hostname. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -12 lines) Patch
M chrome/browser/android/vr_shell/textures/url_bar_texture.h View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.cc View 1 2 4 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc View 1 2 4 chunks +51 lines, -6 lines 2 comments Download

Messages

Total messages: 13 (6 generated)
cjgrant
Emily, this CL yields proper rendering (I believe) of the attack.com URL spoof. Basically a ...
3 years, 6 months ago (2017-06-22 17:55:07 UTC) #2
estark
lgtm. I don't suppose it's possible to test this?
3 years, 6 months ago (2017-06-23 01:34:28 UTC) #3
cjgrant
On 2017/06/23 01:34:28, estark wrote: > lgtm. I don't suppose it's possible to test this? ...
3 years, 6 months ago (2017-06-23 16:02:29 UTC) #4
cjgrant
https://codereview.chromium.org/2945173006/diff/40001/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc File chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc (right): https://codereview.chromium.org/2945173006/diff/40001/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc#newcode53 chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc:53: static void TestUrlStyling(const base::string16& formatted_url, This is unrelated to ...
3 years, 6 months ago (2017-06-23 16:02:53 UTC) #5
cjgrant
On 2017/06/23 16:02:53, cjgrant wrote: > https://codereview.chromium.org/2945173006/diff/40001/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc > File chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc > (right): > > https://codereview.chromium.org/2945173006/diff/40001/chrome/browser/android/vr_shell/textures/url_bar_texture_unittest.cc#newcode53 ...
3 years, 6 months ago (2017-06-23 18:28:26 UTC) #6
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/2945173006/40001
3 years, 6 months ago (2017-06-23 21:08:22 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 22:45:20 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c1f64db1a25c84c6583e9ac7dc2e...

Powered by Google App Engine
This is Rietveld 408576698