Bug 1896150 - Add RenderBlockingStatusType to the PerformanceResourceTiming Interface, r=emilio,necko-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D210053
This commit is contained in:
Cathie Chen
2024-05-15 12:57:05 +00:00
parent af935609c3
commit bc1d7fc121
14 changed files with 72 additions and 17 deletions

View File

@@ -246,7 +246,8 @@ HttpBaseChannel::HttpBaseChannel()
StaticPrefs::browser_opaqueResponseBlocking()),
mChannelBlockedByOpaqueResponse(false),
mDummyChannelForImageCache(false),
mHasContentDecompressed(false) {
mHasContentDecompressed(false),
mRenderBlocking(false) {
StoreApplyConversion(true);
StoreAllowSTS(true);
StoreTracingEnabled(true);
@@ -6531,5 +6532,17 @@ HttpBaseChannel::GetHasContentDecompressed(bool* value) {
return NS_OK;
}
NS_IMETHODIMP
HttpBaseChannel::SetRenderBlocking(bool aRenderBlocking) {
mRenderBlocking = aRenderBlocking;
return NS_OK;
}
NS_IMETHODIMP
HttpBaseChannel::GetRenderBlocking(bool* aRenderBlocking) {
*aRenderBlocking = mRenderBlocking;
return NS_OK;
}
} // namespace net
} // namespace mozilla