gecko-dev/dom/plugins/base
Gijs Kruitbosch ca508d989b Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop
This changes the pluginreg.dat format to include the blocklist state.

There is now only the saved blocklist state in a plugin tag instance, rather than
looking it up from in there using the blocklist service, so it was renamed from
mCachedBlocklistState to mBlocklistState. We pass the 'right' state to the plugin
instance when the plugintag is constructed. If we don't have state, we mark it as
unblocked.

mCachedBlocklistStateChanged was never read so it's being removed.

Bug 1439519 adds a 'blocklist-loaded' notification that is fired once the blocklist is loaded.
The plugin host implementation will listen to this in the parent process and update the
blocklist state of all the plugins, and broadcast changes to the child process, just like when
we update the blocklist from the server. We now also avoid re-sending plugin content to the
content processes if the plugin state hasn't changed as a result of the blocklist having been
loaded.

Finally, because new plugins should still get an up-to-date blocklist state, and
telemetry should get up-to-date data about which plugins are and aren't enabled
once we have that data, we ensure that once we've loaded the blocklist async,
we schedule an idle task to parse it and consider it loaded.

All this means that plugin blocklist information could be mistaken between the points where
a new plugin is installed and we first run Firefox with the new plugin, and the point where
we load the blocklist. Given the trade-offs, that size of window (tiny) seems OK, also given
that there's already a much larger window in blocklist updates (which only happen once every 24h).

MozReview-Commit-ID: 1gsojRkUzTw

--HG--
extra : rebase_source : 4709916b4674ada54f8a495fd2d16fcef8c58d20
2018-02-20 16:53:48 +00:00
..
moz.build Bug 1410096 - Make unified build work. r=smaug 2017-12-15 21:17:32 +01:00
npapi.h Bug 1401107 - Use ContiguousEnumSerializer for ParamTraits in npapi; r=jimm 2017-12-04 10:12:50 -05:00
npfunctions.h Bug 1431072 - Move a duplicate declarations (NS_NPAPIPLUGIN_CALLBACK) into a common file r=jimm 2018-01-17 14:32:56 +01:00
npruntime.h
nptypes.h
nsIHTTPHeaderListener.idl
nsIPluginDocument.idl
nsIPluginHost.idl
nsIPluginInputStream.idl
nsIPluginInstanceOwner.idl Bug 1279218 - Additional applet tag logic removal; r=bz 2017-07-28 16:44:39 -07:00
nsIPluginTag.idl
nsJSNPRuntime.cpp Bug 1439063 - Part 1: Move several public headers from js/src to js/public. r=jandem. 2018-02-21 10:30:19 -06:00
nsJSNPRuntime.h Bug 1390074 - Remove unused nsJSObjWrapper::HasOwnProperty method. r=njn 2017-08-15 16:14:21 +02:00
nsNPAPIPlugin.cpp Bug 1278282 - Remove the 'MOZ_WIDGET_GTK == 2' defines r=karlt,lsalzman 2018-01-10 08:52:04 +01:00
nsNPAPIPlugin.h Bug 1431072 - Move a duplicate declarations (NS_NPAPIPLUGIN_CALLBACK) into a common file r=jimm 2018-01-17 14:32:56 +01:00
nsNPAPIPluginInstance.cpp Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn 2017-10-15 23:15:40 -07:00
nsNPAPIPluginInstance.h Bug 1390428 (part 6) - Remove nsXPIDLCString class members. r=erahm. 2017-08-17 14:17:27 +10:00
nsNPAPIPluginStreamListener.cpp Bug 1404198: Part 2i - Switch to NS_NewTimer* in dom. r=njn 2017-10-15 23:15:40 -07:00
nsNPAPIPluginStreamListener.h Bug 1352567 - Remove NPAPI seekable and file streams from the dom/plugins/base code, r=jimm 2017-10-02 14:54:22 -07:00
nsPluginDirServiceProvider.cpp
nsPluginDirServiceProvider.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsPluginHost.cpp Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop 2018-02-20 16:53:48 +00:00
nsPluginHost.h Bug 1412726: Clean up XPCOM singleton constructor refcount handling. r=froydnj 2017-10-29 16:02:40 -07:00
nsPluginInstanceOwner.cpp Bug 1441009: Don't null-check OwnerDoc. r=smaug 2018-02-26 00:31:42 +01:00
nsPluginInstanceOwner.h Bug 1404198: Follow-up: Fix more OS-X build bustage on a CLOSED TREE r=bustage 2017-10-16 14:56:50 -07:00
nsPluginLogging.h
nsPluginManifestLineReader.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsPluginModule.cpp
nsPluginNativeWindow.cpp
nsPluginNativeWindow.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsPluginNativeWindowWin.cpp
nspluginroot.idl
nsPluginsCID.h
nsPluginsDir.h
nsPluginsDirDarwin.cpp Bug 1402519 - Remove MOZ_CRASHREPORTER directives from dom; r=peterv 2017-10-10 12:43:09 +02:00
nsPluginsDirUnix.cpp Bug 1278282 - Remove the 'MOZ_WIDGET_GTK == 2' defines r=karlt,lsalzman 2018-01-10 08:52:04 +01:00
nsPluginsDirUtils.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
nsPluginsDirWin.cpp Bug 1330529 - Part 2: Remove unused SetDllDirectory workaround for Shockwave Player plugin. r=jimm 2018-02-02 22:34:19 -08:00
nsPluginStreamListenerPeer.cpp Bug 1407056: Part 1 - Provide more consistent principal/origin URL to content policies. r=bz,ckerschb 2017-10-12 15:43:55 -07:00
nsPluginStreamListenerPeer.h Bug 1352567 - Remove NPAPI seekable and file streams from the dom/plugins/base code, r=jimm 2017-10-02 14:54:22 -07:00
nsPluginTags.cpp Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop 2018-02-20 16:53:48 +00:00
nsPluginTags.h Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop 2018-02-20 16:53:48 +00:00