simple_feature.cc's g_whitelisted_extension_id get/set has race |
|
Issue descriptioncrbug.com/750382 shows that different threads accessing the global can easily cause a race, because we are using a bare pointer. However, I'm hesitant to just add a lock because it is accessed from SimpleFeature::GetManifestAvailability(), hence it might cause slowness. The value of this is loaded from kWhitelistedExtensionID switch.
,
Aug 9 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/81ff01ee027beef0b387aa9dae51b9a4c11540a8 commit 81ff01ee027beef0b387aa9dae51b9a4c11540a8 Author: Istiaque Ahmed <lazyboy@chromium.org> Date: Wed Aug 09 16:00:59 2017 [Reland] [TaskScheduler] Migrate some extension installer code to TaskScheduler. The original race was due to an orthogal issue that was fixed in https://chromium-review.googlesource.com/c/599240 Use ExtensionFileTaskRunner to make sure there are no possibilities around accessing installing extensions' resources. Unfortunately, this also means we no longer run in USER_BLOCKING priority for these tasks. ExtensionFileTaskRunner runs in USER_VISIBLE priority. Bug: 750382 Bug: 751882 Change-Id: Ia85904d81949e6194827477199243ab5b56ccb6f Reviewed-on: https://chromium-review.googlesource.com/607534 Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Istiaque Ahmed <lazyboy@chromium.org> Cr-Commit-Position: refs/heads/master@{#493004} [modify] https://crrev.com/81ff01ee027beef0b387aa9dae51b9a4c11540a8/chrome/browser/extensions/unpacked_installer.cc [modify] https://crrev.com/81ff01ee027beef0b387aa9dae51b9a4c11540a8/chrome/browser/extensions/user_script_listener_unittest.cc [modify] https://crrev.com/81ff01ee027beef0b387aa9dae51b9a4c11540a8/chrome/browser/extensions/webstore_installer.cc [modify] https://crrev.com/81ff01ee027beef0b387aa9dae51b9a4c11540a8/chrome/browser/extensions/zipfile_installer.cc [modify] https://crrev.com/81ff01ee027beef0b387aa9dae51b9a4c11540a8/chrome/browser/extensions/zipfile_installer.h |
|
►
Sign in to add a comment |
|
Comment 1 by bugdroid1@chromium.org
, Aug 5 2017