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

Issue 8870005: Utility process: move GTK initialization to the plugin loading code path. (Closed)

Created:
9 years ago by Jorge Lucangeli Obes
Modified:
9 years ago
Reviewers:
jam, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, dpranke-watch+content_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Utility process: move GTK initialization to the plugin loading code path. Since GTK initialization loads shared libraries and accesses the file system, having this code present in every code path that uses the utility process would prevent us from sandboxing the uses of the utility process that don't access the filesystem themselves. Moreover, since GTK initialization is only used for plugin loading, which cannot be sandboxed, there is no harm in moving it to the plugin loading path. We do check that the GTK thread system has not already been initialized (only needed for glib < 2.24): http://developer.gnome.org/glib/2.28/glib-Threads.html#g-thread-init BUG=93109 TEST=Similar to issue 8774048, having libtotem plugins installed, go to about:plugins and check that they are present. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113904

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M content/utility/utility_thread_impl.cc View 2 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Jorge Lucangeli Obes
The inclusion of GTK initialization in all uses of the utility process conflicted with sandboxing ...
9 years ago (2011-12-08 00:05:05 UTC) #1
piman
lgtm
9 years ago (2011-12-08 00:35:12 UTC) #2
Jorge Lucangeli Obes
On 2011/12/08 00:35:12, piman wrote: > lgtm jam@: just checking whether this fell through the ...
9 years ago (2011-12-08 23:41:39 UTC) #3
jam
On 2011/12/08 23:41:39, jorgelo wrote: > On 2011/12/08 00:35:12, piman wrote: > > lgtm > ...
9 years ago (2011-12-09 01:55:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/8870005/1
9 years ago (2011-12-09 18:27:29 UTC) #5
commit-bot: I haz the power
Try job failure for 8870005-1 (retry) on mac_rel for step "ui_tests". It's a second try, ...
9 years ago (2011-12-09 20:46:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/8870005/1
9 years ago (2011-12-09 23:28:55 UTC) #7
commit-bot: I haz the power
9 years ago (2011-12-10 00:56:09 UTC) #8
Change committed as 113904

Powered by Google App Engine
This is Rietveld 408576698