gecko-dev/xpcom
Gijs Kruitbosch 608f3e7539 Bug 1545123 - simplify how we get directory information for plugins, r=handyman,mconley
In this change we:
- stop treating the nsPluginDirServiceProvider as a directory provider, as its
  GetFile implementation was a no-op anyway - registering it didn't make any
  difference.
- stop treating it as a class entirely, because the PLID getters were already
  static, so instantiating it also didn't do anything.
- move IO from the plugin directory list provider and the Windows-only PLID
  getters into nsPluginHost. This enables us to move it off of the main thread
  later - the directory getting has to happen on the main thread, but we can
  postpone further checks on the nsIFile instances.
- in the process, stop doing exists() calls on files because we can fail more
  lazily. This allows us to remove more allowlist entries from
  browser_startup_mainthreadio, though the `isDirectory` calls will actually
  still cause IO - they don't seem to create IO markers in the profiler.
  We will move this IO away from the main thread in subsequent commits.

Depends on D48328

Differential Revision: https://phabricator.services.mozilla.com/D48329

--HG--
extra : moz-landing-system : lando
2019-11-02 22:33:42 +00:00
..
base Bug 1586236 - Use memory resource notifications to detect low memory scenarios on Windows; r=dmajor 2019-11-01 23:08:59 +00:00
build Bug 1583466 - [Linux] Load policies per user from system, r=mkaply,mossop 2019-10-29 08:58:29 +00:00
components Bug 1591823 - Part 2: Switch nsIComponentRegistrar.enumerateContractIDs away from using nsISimpleEnumerator; r=froydnj 2019-10-28 13:26:50 +00:00
doc
ds Bug 1448807 - Remove showWindowResizer from browser Custom Element r=NeilDeakin 2019-10-30 13:46:55 +00:00
glue Bug 1580128 - Simplify required env variables for fuzzing interface. r=froydnj 2019-09-10 14:33:58 +00:00
idl-parser Bug 1587206 - [lint.flake8] Enable F632 across the tree, r=sylvestre 2019-10-10 18:50:33 +00:00
io Bug 1545123 - simplify how we get directory information for plugins, r=handyman,mconley 2019-11-02 22:33:42 +00:00
libxpt/xptcall
reflect Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal 2019-10-07 21:15:19 +00:00
rust Bug 1589738 - nsACString::as_str_unchecked should actually check in debug builds. r=nika 2019-10-18 19:09:55 +00:00
string Bug 1591481 part 1. Make NormalizeUSVString fallible. r=mccr8 2019-10-29 00:24:10 +00:00
system Bug 1553546, moving telemetry environment isWoW data and installYear data off-main-thread and implementing them on an idle task instead of on the main thread during startup r=mconley,chutten 2019-09-20 20:52:32 +00:00
tests Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-10-06 18:29:55 +00:00
threads Bug 1592496 - nsProxyRelease.h clean-up - r=froydnj 2019-10-30 20:33:47 +00:00
windbgdlg
xpidl
moz.build
xpcom-config.h.in Bug 1570982 - remove CPP_THROW_NEW; r=glandium 2019-08-14 01:32:41 +00:00
xpcom-private.h.in