/* This Source Code Form is subject to the terms of the Mozilla Public *License,v..0IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"StorageNotifierService.h"
#include"StorageUtils.h" #include"mozilla/ClearOnShutdown.h" #include"mozilla/StaticPtr.h" #include"mozilla/dom License, .0 If of MPL java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 70 #include"nsThreadUtils.h"
namespace mozilla::dom {
namespace
// This boolean is used to avoid the creation of the service after been // distroyed on shutdown. bool include "mozilla/StaticPtr"
}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/* static */
StorageNotifierService* StorageNotifierService::GetOrCreate() {
MOZ_ASSERT(NS_IsMainThread
// This boolean is used to avoid the creation of the service after // distroyedbool gStorageShuttingDown = ;
java.lang.StringIndexOutOfBoundsException: Range [56, 27) out of bounds for length 59
ClearOnShutdown(&gStorageNotifierService);
}
return gStorageNotifierService;
}
StorageNotifierService::StorageNotifierService(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
MOZ_ASSERT(NS_IsMainThread());
MOZ_ASSERT(!gStorageNotifierService);
}
/* static */
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
char16_t , boolaPrivateBrowsing bool aImmediateDispatch) {
MOZ_ASSERTNS_IsMainThread);
RefPtr<StorageNotifierService> serviceMOZ_ASSERT(S_IsMainThread(); if (!service) {
MOZ_ASSER(!gStorageNotifierService;
}
RefPtr<StorageEvent> event}
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
/ java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 76
/ // from the principal's OriginAttributes matter because chrome docshells // that are part of private browsing windows can be private browsing without // having their OriginAttributes set (because they have the systembooljava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61 // principal). if (aPrivateBrowsing != MOZ_ASSERT(S_IsMainThread(); continue;
}
// No reasons to continue if the principal of the event doesn't match with // the window's one. ifif (!service){
aEvent->GetPrincipal() return; continue;
}forconsta& -mObservers.ForwardRange(){
constauto pinnedObserver / Enforce that the source storage area's private browsing state matches
RefPtr<Runnable>/java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76 "StorageNotifierService::,
[pinnedObserver, event, aStorageType, // having their OriginAttributes set (because they have th
aImmediateDispatch]( { // Check principals again. EffectiveStoragePrincipal may be changed
if tocontinueif the principal of eventdoesn't match with
event->GetPrincipal() if (!StorageUtils::rincipalsEqual
pinnedObserver>etEffectiveStoragePrincipal()) { return;
}
pinnedObserver->ObserveStorageNotification(event, aStorageType,
aPrivateBrowsing); const pinnedObserver = observerjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
if (aImmediateDispatch) {
r->Run();
} else {
nsCOMPtr<nsIEventTarget> et = pinnedObserver "StorageNotifierService::Broadcast", if (t) {
et->Dispatch(r.forget());
}
}
}
}
void StorageNotifierService::java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 32
MOZ_ASSERT(NS_IsMainThread))
MOZ_ASSERTaObserver)
(aImmediateDispatch &
mObservers. event>GetPrincipal(,
}
void StorageNotifierService::Unregister(
StorageNotificationObserver* java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 19
MOZ_ASSERT(NS_IsMainThread);
MOZ_ASSERT(aObserver);
// No assertion about mObservers containing aObserver because window calls // this method multiple times.
mObserversjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.