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

Issue 209163002: Support DirectWrite with sandbox on (Closed)

Created:
6 years, 9 months ago by scottmg
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, Will Harris
Visibility:
Public.

Description

Support DirectWrite with sandbox on This seems to be enough to get DirectWrite working with the sandbox on. There's two parts: 1. Warmup for three things: the dwrite.dll, creating a font, and accessing glyph metrics. 2. A renderer sandbox policy allowing readonly fonts directory access. Manually tested working on Win 8.1, Win 7 Pro SP1 with QFE 2670838, and Win Home Basic RTM (no SPs or QFEs). Blink side here: https://codereview.chromium.org/210243004 but can land independently after this change. R=brettw@chromium.org, cpu@chromium.org, jam@chromium.org, jschuh@chromium.org, darin@chromium.org BUG=333029 TEST=Run with --enable-direct-write and http://wikipedia.org/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259434

Patch Set 1 #

Total comments: 4

Patch Set 2 : policy location, use dwrite directly for warmup #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 12

Patch Set 5 : . #

Patch Set 6 : browser-side determination of dw usage #

Patch Set 7 : comment #

Patch Set 8 : remove filter #

Total comments: 1

Patch Set 9 : comment #

Total comments: 2

Patch Set 10 : use SHGetFolderPath instead of SHGetKnownFolderPath for xp #

Total comments: 1

Patch Set 11 : add todo #

Total comments: 5

Patch Set 12 : match blink, review tweaks #

Patch Set 13 : roll out blink bits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -6 lines) Patch
M base/base_paths_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/base_paths_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 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 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/sandbox_win.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/sandbox_win.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +23 lines, -1 line 0 comments Download
M content/renderer/renderer_main_platform_delegate_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +59 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
scottmg
https://codereview.chromium.org/209163002/diff/1/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/209163002/diff/1/content/common/sandbox_win.cc#newcode312 content/common/sandbox_win.cc:312: // XXX: This is in the wrong place, it ...
6 years, 9 months ago (2014-03-21 23:04:05 UTC) #1
bungeman-chromium
not lgtm If you feel like responding to everyone who has issues like https://code.google.com/p/chromium/issues/detail?id=82957 then ...
6 years, 9 months ago (2014-03-21 23:13:28 UTC) #2
scottmg
On 2014/03/21 23:13:28, bungeman2 wrote: > not lgtm > > If you feel like responding ...
6 years, 9 months ago (2014-03-21 23:17:12 UTC) #3
bungeman-chromium
On 2014/03/21 23:17:12, scottmg wrote: > On 2014/03/21 23:13:28, bungeman2 wrote: > > not lgtm ...
6 years, 9 months ago (2014-03-21 23:37:34 UTC) #4
Will Harris
some sandbox policy location ideas https://codereview.chromium.org/209163002/diff/1/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/209163002/diff/1/content/common/sandbox_win.cc#newcode312 content/common/sandbox_win.cc:312: // XXX: This is ...
6 years, 9 months ago (2014-03-21 23:55:47 UTC) #5
jschuh
On 2014/03/21 23:37:34, bungeman2 wrote: > On 2014/03/21 23:17:12, scottmg wrote: > > On 2014/03/21 ...
6 years, 9 months ago (2014-03-22 00:21:43 UTC) #6
bungeman-chromium
On 2014/03/22 00:21:43, Justin Schuh wrote: > On 2014/03/21 23:37:34, bungeman2 wrote: > > On ...
6 years, 9 months ago (2014-03-22 02:58:41 UTC) #7
jschuh
On 2014/03/22 02:58:41, bungeman2 wrote: > On 2014/03/22 00:21:43, Justin Schuh wrote: > > On ...
6 years, 9 months ago (2014-03-22 05:56:40 UTC) #8
bungeman-skia
On 2014/03/22 05:56:40, Justin Schuh wrote: > On 2014/03/22 02:58:41, bungeman2 wrote: > > On ...
6 years, 9 months ago (2014-03-22 18:59:43 UTC) #9
jschuh
On 2014/03/22 18:59:43, bungeman1 wrote: > I can see that you are unswayed by arguments ...
6 years, 9 months ago (2014-03-22 19:27:56 UTC) #10
bungeman-chromium
On 2014/03/22 19:27:56, Justin Schuh wrote: > On 2014/03/22 18:59:43, bungeman1 wrote: > > I ...
6 years, 9 months ago (2014-03-24 15:08:49 UTC) #11
scottmg
I checked ps3 on Win 8.1, Win 7 Pro SP1 with QFE 2670838, and Win ...
6 years, 9 months ago (2014-03-24 23:45:49 UTC) #12
jschuh
You need to switch things based on whether we're using DW or not, and shut ...
6 years, 9 months ago (2014-03-25 04:03:47 UTC) #13
scottmg
https://codereview.chromium.org/209163002/diff/50001/content/renderer/renderer_main_platform_delegate_win.cc File content/renderer/renderer_main_platform_delegate_win.cc (right): https://codereview.chromium.org/209163002/diff/50001/content/renderer/renderer_main_platform_delegate_win.cc#newcode53 content/renderer/renderer_main_platform_delegate_win.cc:53: // before sandbox lock down to allow Skia access ...
6 years, 9 months ago (2014-03-25 05:43:18 UTC) #14
jschuh
https://codereview.chromium.org/209163002/diff/50001/content/renderer/renderer_main_platform_delegate_win.cc File content/renderer/renderer_main_platform_delegate_win.cc (right): https://codereview.chromium.org/209163002/diff/50001/content/renderer/renderer_main_platform_delegate_win.cc#newcode55 content/renderer/renderer_main_platform_delegate_win.cc:55: typedef decltype(DWriteCreateFactory) * DWriteCreateFactoryProc; On 2014/03/25 05:43:18, scottmg wrote: ...
6 years, 9 months ago (2014-03-25 12:42:02 UTC) #15
scottmg
On 2014/03/25 12:42:02, Justin Schuh wrote: > https://codereview.chromium.org/209163002/diff/50001/content/renderer/renderer_main_platform_delegate_win.cc > File content/renderer/renderer_main_platform_delegate_win.cc (right): > > https://codereview.chromium.org/209163002/diff/50001/content/renderer/renderer_main_platform_delegate_win.cc#newcode55 ...
6 years, 9 months ago (2014-03-25 17:56:28 UTC) #16
scottmg
Removed FontCacheDispatcher filter when using DW.
6 years, 9 months ago (2014-03-25 18:19:22 UTC) #17
jschuh
Lgtm on the overall patch and for the security and IPC changes. https://codereview.chromium.org/209163002/diff/190001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc ...
6 years, 9 months ago (2014-03-25 18:32:58 UTC) #18
scottmg
OWNERS: +brettw for base/ +jam for content/
6 years, 9 months ago (2014-03-25 19:07:08 UTC) #19
brettw
https://codereview.chromium.org/209163002/diff/140003/base/base_paths_win.cc File base/base_paths_win.cc (right): https://codereview.chromium.org/209163002/diff/140003/base/base_paths_win.cc#newcode195 base/base_paths_win.cc:195: if (win::GetVersion() < win::VERSION_VISTA) be consistent w.r.t. base::win or ...
6 years, 9 months ago (2014-03-25 19:28:17 UTC) #20
scottmg
Thanks https://codereview.chromium.org/209163002/diff/140003/base/base_paths_win.cc File base/base_paths_win.cc (right): https://codereview.chromium.org/209163002/diff/140003/base/base_paths_win.cc#newcode195 base/base_paths_win.cc:195: if (win::GetVersion() < win::VERSION_VISTA) On 2014/03/25 19:28:18, brettw ...
6 years, 9 months ago (2014-03-25 19:45:57 UTC) #21
brettw
base lgtm
6 years, 9 months ago (2014-03-25 19:48:32 UTC) #22
eae
On 2014/03/25 12:42:02, Justin Schuh wrote: > https://codereview.chromium.org/209163002/diff/50001/content/renderer/renderer_main_platform_delegate_win.cc > File content/renderer/renderer_main_platform_delegate_win.cc (right): > > https://codereview.chromium.org/209163002/diff/50001/content/renderer/renderer_main_platform_delegate_win.cc#newcode55 ...
6 years, 9 months ago (2014-03-25 20:24:17 UTC) #23
cpu_(ooo_6.6-7.5)
lgtm https://codereview.chromium.org/209163002/diff/220002/content/browser/renderer_host/render_message_filter.cc File content/browser/renderer_host/render_message_filter.cc (right): https://codereview.chromium.org/209163002/diff/220002/content/browser/renderer_host/render_message_filter.cc#newcode1205 content/browser/renderer_host/render_message_filter.cc:1205: if (!ShouldUseDirectWrite()) add todo here to unify this ...
6 years, 9 months ago (2014-03-25 20:47:30 UTC) #24
jam
lgtm https://codereview.chromium.org/209163002/diff/320008/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/209163002/diff/320008/content/browser/renderer_host/render_process_host_impl.cc#newcode768 content/browser/renderer_host/render_process_host_impl.cc:768: if (!content::ShouldUseDirectWrite()) nit: no "content::" https://codereview.chromium.org/209163002/diff/320008/content/common/sandbox_win.cc File content/common/sandbox_win.cc ...
6 years, 9 months ago (2014-03-25 22:57:26 UTC) #25
scottmg
https://codereview.chromium.org/209163002/diff/320008/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/209163002/diff/320008/content/browser/renderer_host/render_process_host_impl.cc#newcode768 content/browser/renderer_host/render_process_host_impl.cc:768: if (!content::ShouldUseDirectWrite()) On 2014/03/25 22:57:26, jam wrote: > nit: ...
6 years, 9 months ago (2014-03-25 23:38:17 UTC) #26
scottmg
Thanks for everyone's (extensive!) feedback on this CL. I'm going to land this as-is so ...
6 years, 9 months ago (2014-03-26 01:23:35 UTC) #27
scottmg
6 years, 9 months ago (2014-03-26 01:41:19 UTC) #28
Message was sent while issue was closed.
Committed patchset #13 manually as r259434 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698