Bug 1692350 - Implement a telemetry probe to collect page load data for documents that use lazyload r=emilio,chutten

Differential Revision: https://phabricator.services.mozilla.com/D104912
This commit is contained in:
Sean Feng
2021-02-17 17:17:52 +00:00
parent c4ac4ac515
commit be7a7a24d9
10 changed files with 122 additions and 9 deletions

View File

@@ -260,6 +260,11 @@ bool WindowContext::CanSet(FieldIndex<IDX_IsLocalIP>, const bool& aValue,
return CheckOnlyOwningProcessCanSet(aSource);
}
bool WindowContext::CanSet(FieldIndex<IDX_HadLazyLoadImage>, const bool& aValue,
ContentParent* aSource) {
return IsTop() && CheckOnlyOwningProcessCanSet(aSource);
}
void WindowContext::DidSet(FieldIndex<IDX_SHEntryHasUserInteraction>,
bool aOldValue) {
MOZ_ASSERT(