Bug 1252998 - StorageActivityService - part 2 - Use of StorageActivityService in LocalStorage, r=asuth
authorAndrea Marchesini <amarchesini@mozilla.com>
Wed, 18 Apr 2018 18:19:10 +0200
changeset 467873 3220024f0ed3188dc15f638b63870459b01f3a71
parent 467872 558fef850d425f13465fe7b8ec0fd249d1527981
child 467874 903099bf9c40214362e91f6a375d900dc1a23e79
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersasuth
bugs1252998
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1252998 - StorageActivityService - part 2 - Use of StorageActivityService in LocalStorage, r=asuth
ipc/glue/BackgroundParentImpl.cpp
--- a/ipc/glue/BackgroundParentImpl.cpp
+++ b/ipc/glue/BackgroundParentImpl.cpp
@@ -285,16 +285,19 @@ mozilla::ipc::IPCResult
 BackgroundParentImpl::RecvBroadcastLocalStorageChange(
                                             const nsString& aDocumentURI,
                                             const nsString& aKey,
                                             const nsString& aOldValue,
                                             const nsString& aNewValue,
                                             const PrincipalInfo& aPrincipalInfo,
                                             const bool& aIsPrivate)
 {
+  // Let's inform the StorageActivityService about this change.
+  dom::StorageActivityService::SendActivity(aPrincipalInfo);
+
   nsTArray<PBackgroundParent*> liveActorArray;
   if (NS_WARN_IF(!BackgroundParent::GetLiveActorArray(this, liveActorArray))) {
     return IPC_FAIL_NO_REASON(this);
   }
 
   for (auto* liveActor : liveActorArray) {
     if (liveActor != this) {
       Unused << liveActor->SendDispatchLocalStorageChange(