[tbb-commits] [tor-browser] 08/15: Bug 1771685 - Init feature policy. r=farre, a=tjr

gitolite role git at cupani.torproject.org
Thu Aug 18 22:31:50 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-91.13.0esr-11.5-1
in repository tor-browser.

commit 890dfca1c1f2ec7b6f6aa34a2278f3899b590bf3
Author: Peter Van der Beken <peterv at propagandism.org>
AuthorDate: Thu Jul 28 17:56:44 2022 +0000

    Bug 1771685 - Init feature policy. r=farre, a=tjr
    
    Differential Revision: https://phabricator.services.mozilla.com/D151516
---
 dom/base/Document.h                  | 4 ++--
 dom/xslt/xslt/txMozillaXMLOutput.cpp | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dom/base/Document.h b/dom/base/Document.h
index 7165496397f3f..d9b8079cb9c83 100644
--- a/dom/base/Document.h
+++ b/dom/base/Document.h
@@ -1517,14 +1517,14 @@ class Document : public nsINode,
 
   void DoNotifyPossibleTitleChange();
 
+  nsresult InitFeaturePolicy(nsIChannel* aChannel);
+
  protected:
   friend class nsUnblockOnloadEvent;
 
   nsresult InitCSP(nsIChannel* aChannel);
   nsresult InitCOEP(nsIChannel* aChannel);
 
-  nsresult InitFeaturePolicy(nsIChannel* aChannel);
-
   nsresult InitReferrerInfo(nsIChannel* aChannel);
 
   void PostUnblockOnloadEvent();
diff --git a/dom/xslt/xslt/txMozillaXMLOutput.cpp b/dom/xslt/xslt/txMozillaXMLOutput.cpp
index e7cd694116c83..4c8d7ccd6a6f0 100644
--- a/dom/xslt/xslt/txMozillaXMLOutput.cpp
+++ b/dom/xslt/xslt/txMozillaXMLOutput.cpp
@@ -784,6 +784,9 @@ nsresult txMozillaXMLOutput::createResultDocument(const nsAString& aName,
   if (mNotifier) {
     rv = mNotifier->SetOutputDocument(mDocument);
     NS_ENSURE_SUCCESS(rv, rv);
+
+    rv = mDocument->InitFeaturePolicy(mDocument->GetChannel());
+    NS_ENSURE_SUCCESS(rv, rv);
   }
 
   // Do this after calling OnDocumentCreated to ensure that the

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list