summaryrefslogtreecommitdiffstats
path: root/docshell/base/nsDocShellLoadInfo.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-14 12:50:01 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-14 12:50:01 +0100
commitfea96b4527a2db6cd97c9053d647478b347d3853 (patch)
treeeeb73acd7f8295dbab17ec993392bce3161be9db /docshell/base/nsDocShellLoadInfo.cpp
parent2e69b03ddd11de777e6d52a995ff0d1675eb58d2 (diff)
downloadUXP-fea96b4527a2db6cd97c9053d647478b347d3853.tar
UXP-fea96b4527a2db6cd97c9053d647478b347d3853.tar.gz
UXP-fea96b4527a2db6cd97c9053d647478b347d3853.tar.lz
UXP-fea96b4527a2db6cd97c9053d647478b347d3853.tar.xz
UXP-fea96b4527a2db6cd97c9053d647478b347d3853.zip
Do not report resource-timing subdocument loads triggered by that subdocument.
Diffstat (limited to 'docshell/base/nsDocShellLoadInfo.cpp')
-rw-r--r--docshell/base/nsDocShellLoadInfo.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/docshell/base/nsDocShellLoadInfo.cpp b/docshell/base/nsDocShellLoadInfo.cpp
index b00e8e360..b1a990267 100644
--- a/docshell/base/nsDocShellLoadInfo.cpp
+++ b/docshell/base/nsDocShellLoadInfo.cpp
@@ -20,6 +20,7 @@ nsDocShellLoadInfo::nsDocShellLoadInfo()
, mReferrerPolicy(mozilla::net::RP_Default)
, mLoadType(nsIDocShellLoadInfo::loadNormal)
, mIsSrcdocLoad(false)
+ , mIsFromProcessingFrameAttributes(false)
{
}
@@ -310,3 +311,19 @@ nsDocShellLoadInfo::SetBaseURI(nsIURI* aBaseURI)
mBaseURI = aBaseURI;
return NS_OK;
}
+
+NS_IMETHODIMP
+nsDocShellLoadInfo::GetIsFromProcessingFrameAttributes(bool* aIsFromProcessingFrameAttributes)
+{
+ NS_ENSURE_ARG_POINTER(aIsFromProcessingFrameAttributes);
+
+ *aIsFromProcessingFrameAttributes = mIsFromProcessingFrameAttributes;
+ return NS_OK;
+}
+
+NS_IMETHODIMP
+nsDocShellLoadInfo::SetIsFromProcessingFrameAttributes(bool aIsFromProcessingFrameAttributes)
+{
+ mIsFromProcessingFrameAttributes = aIsFromProcessingFrameAttributes;
+ return NS_OK;
+}