gecko-dev/toolkit
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
..
components Merge mozilla-inbound to mozilla-cenral. a=merge 2018-03-13 19:01:32 +02:00
content Bug 1444591 - Reenable some tests in the Windows coverage build that started passing because of a Clang update. r=jmaher 2018-03-10 20:35:25 +00:00
crashreporter Bug 1444169 Fix capitalization for a few Windows files r=aklotz 2018-03-08 14:49:59 -06:00
forgetaboutsite Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
library Bug 1442753 - Use in-tree copy of cubeb-sys even when cubeb-remoting is disabled. r=kamidphish 2018-03-05 03:38:33 +00:00
locales Bug 1426362 - Display status of policy engine in about:support. r=bytesized 2018-03-02 15:28:14 -03:00
modules Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-03-13 01:16:04 +02:00
mozapps Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop 2018-02-20 16:53:48 +00:00
pluginproblem Bug 1409148 - Add dynamic sizing on the plugin overlay. r=dthayer,johannh 2017-11-10 14:05:04 -02:00
profile Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
system Bug 1437604 - remove NS_INTERFACE_MAP_END_THREADSAFE; r=mystor 2018-02-12 14:36:46 -05:00
themes Bug 1222414 - Convert hardcoded colors in add-on manager to CSS variables. r=jaws, ntim 2018-03-08 09:00:51 -05:00
xre Merge mozilla-inbound to mozilla-cenral. a=merge 2018-03-13 19:01:32 +02:00
.eslintrc.js bug 1442407 - increase eslint complexity level from 44 to 45 due to backout that reverted code that has a complexity level of 45. r=bustage CLOSED TREE 2018-03-01 15:35:43 -08:00
moz.build Bug 1278282 - update of the moz.build files to remove gtk2 references r=lsalzman 2018-01-10 10:04:59 +01:00
moz.configure Bug 1433357 - Part 1: Add proxy bypass protection flag r=glandium 2018-02-02 14:45:00 +02:00
nss.configure
toolkit.mozbuild Backed out 5 changesets (bug 1418425) requested per comment #83. on a CLOSED TREE a=backout 2018-01-15 15:30:30 +02:00