gecko-dev/dom
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
..
abort
animation Bug 1382841 - Rename some test files in dom/animation/test/mozilla to use _ to separate words; r=hiro 2018-03-12 16:08:36 +09:00
asmjscache Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
audiochannel
base Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop 2018-02-20 16:53:48 +00:00
battery
bindings Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
broadcastchannel Bug 1438163 - BroadcastChannel must release the IPC actor using a WorkerControlRunnable when the worker thread goes away, r=smaug 2018-02-15 08:50:49 +01:00
browser-element 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
cache Bug 1444971 - fix diagnostic assert condition in ReadStream; r=baku 2018-03-13 09:47:07 -04:00
canvas Bug 1444506 - part 6 - fuzz for Skia m66 update. r=jrmuizel 2018-03-12 16:37:10 -04:00
chrome-webidl Backed out 2 changesets (bug 1442931) for build bustages at ..\dom\bindings\mozwebidlcodegen\test\test_mozwebidlcodegen.py::TestWebIDLCodegenManager::test_copy_input on a CLOSED TREE 2018-03-07 08:53:06 +02:00
clients Bug 1441133 P1 Don't assert storage permission on windows that inherit the service worker. r=asuth 2018-03-01 08:13:56 -08:00
commandhandler
console Bug 1439657 Remove Time Precision Reduction from Console Timestamps r=baku 2018-02-28 15:20:16 -06:00
credentialmanagement Bug 1444605 - Fix perma-orange browser_active_document.js r=johannh 2018-03-12 11:51:05 +01:00
crypto Bug 1440627 - Use fallible setLength in StructuredCloneHolder. r=baku 2018-02-23 14:57:00 +01:00
encoding Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
events Bug 1444919 part 2. Remove nsIDOMClipboardEvent. r=mystor 2018-03-13 00:59:24 -04:00
fetch Bug 1440941 - FetchDriver should check if the operation has been already aborted when OnStartRequest is called, r=bkelly 2018-02-26 22:32:15 +01:00
file Bug 1441688 - Remove nsIIPCSerializableURI.Deserialize r=mayhemer 2018-03-05 04:14:44 +01:00
filehandle
filesystem Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
flex Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
gamepad Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor 2018-02-22 14:28:39 -08:00
geolocation Bug 1437140 - Replace some uses of NS_DispatchToMainThread/NS_DispatchToCurrentThread with more specific event targets. r=mystor 2018-02-20 09:52:32 -05:00
grid
html Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-13 12:36:54 +02:00
imptests Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
indexedDB Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
interfaces Bug 1444919 part 2. Remove nsIDOMClipboardEvent. r=mystor 2018-03-13 00:59:24 -04:00
ipc Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug 2018-03-13 10:26:13 +01:00
jsurl Bug 1441688 - Remove nsIIPCSerializableURI.Deserialize r=mayhemer 2018-03-05 04:14:44 +01:00
locales Bug 1442560 - Add a note for deprecating passing a storage option to indexedDB.open(). r=asuth 2018-03-05 20:01:00 +01:00
manifest Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
mathml Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug 2018-02-21 07:00:10 +09:00
media Backed out 2 changesets (bug 1443942) for mda assertion failures in /build/build/src/dom/media/ChannelMediaResource.cpp 2018-03-13 07:14:32 +02:00
messagechannel Bug 1435174 - Remove the renaming 'using namespace workers', r=bkelly 2018-02-05 19:55:07 +01:00
midi Backed out 6 changesets (bug 1425462) for XPCShell failure on multiple files 2018-03-02 03:33:17 +02:00
network Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
notification Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout 2018-03-01 11:51:09 +02:00
offline
payments Bug 1436903 - Avoid passing shipping options to the front end when shipping was not requested. r=baku 2018-03-07 13:16:46 +02:00
performance Bug 1444150 Performance.measure(name) should not throw if name is one of the readonly attribute of the Performance interface, r=valentin 2018-03-09 08:23:44 +01:00
permission Bug 1440407 P2 Remove some unnecessary nsPIDOMWindowInner QI to nsIGlobalObject. r=mystor 2018-02-22 14:28:39 -08:00
plugins Bug 1371888 - cache plugin information in pluginreg.dat to avoid sync startup load, r=florian,mossop 2018-02-20 16:53:48 +00:00
power Bug 1439063 - Part 1: Move several public headers from js/src to js/public. r=jandem. 2018-02-21 10:30:19 -06:00
presentation Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout 2018-03-01 11:51:09 +02:00
promise Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis 2017-11-17 11:01:27 +08:00
push Backed out 6 changesets (bug 888600) for beta simulation failures: build bustage on Linux and Windows opt (bug 1442036) and devtools failure browser_net_view-source-debugger.js (bug 1441961). a=backout 2018-03-01 11:51:09 +02:00
quota Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
res
script Bug 1193394 - Part 1: Microtasks and promises scheduling. r=bevis 2017-11-17 11:01:27 +08:00
security Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
serviceworkers Bug 1442894 - Avoid race in test_self_update_worker.html r=asuth 2018-03-08 12:45:44 +00:00
smil Bug 1432490: Make nsComputedDOMStyle::GetStyleContext / GetStyleContextNoFlush not take a presShell. r=bz 2018-02-25 02:23:59 +01:00
storage Backed out 4 changesets (bug 1437167) for build bustages on nsUpdateDriver.cpp and WindowsMessageLoop.cpp on a CLOSED TREE. 2018-03-06 00:09:46 +02:00
svg Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug 2018-03-13 10:26:13 +01:00
system Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
tests Bug 1442040. Remove unnecessary classinfo for the nsIDOMXUL* interfaces. r=peterv 2018-03-09 16:04:11 -05:00
u2f Bug 1430150 - Implement WebAuthentication permission prompts r=jcj,johannh 2018-03-11 18:47:14 +01:00
url Bug 1440627 - Use fallible setLength in StructuredCloneHolder. r=baku 2018-02-23 14:57:00 +01:00
vr Bug 1438647 - dom/vr/test/reftest/change_size.html fails on windows 10 new hardware, adjust fuzzy-if. r=gbrown 2018-02-23 11:20:21 -05:00
webauthn Bug 1444756 - Rewrite browser_webauthn_telemetry.js r=jcj 2018-03-13 08:16:52 +01:00
webbrowserpersist Bug 1433958 - Change code that sets nsIURI.userPass to use nsIURIMutator r=mayhemer 2018-02-26 20:43:46 +01:00
webidl Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug 2018-03-13 10:26:13 +01:00
websocket Bug 1443079 - nsScriptError.isFromPrivateWindow must match the correct value also in e10s mode, r=smaug 2018-03-13 06:40:38 +01:00
workers Backed out changeset cf8613751378 (bug 1403348) for Build Bustage on ServiceWorkerRegistrar.cpp:29. CLOSED TREE 2018-03-09 00:59:11 +02:00
worklet Bug 1439686 - Console API should print logs on stdout when used by chrome code and if browser.dom.window.dump.enabled is true, r=bgrins 2018-02-22 08:49:51 +01:00
xbl Bug 1024082: Remove PresShell::FrameManager(), use PresShell::FrameConstructor instead. r=dholbert 2018-03-07 10:17:52 +01:00
xhr Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
xml Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug 2018-03-13 10:26:13 +01:00
xslt Bug 1411415 - r=bz r=fitzgen 2018-03-05 19:27:02 -05:00
xul Bug 374021 - Loading an overlay using loadOverlay into an uninitialized XULDocument r=mystor 2018-03-03 20:39:13 +01:00
jar.mn
moz.build Backed out 2 changesets (bug 1442931) for build bustages at ..\dom\bindings\mozwebidlcodegen\test\test_mozwebidlcodegen.py::TestWebIDLCodegenManager::test_copy_input on a CLOSED TREE 2018-03-07 08:53:06 +02:00