From dc3411ed8fdc17ad495aa5dfbf0ddd03254d0366 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Thu, 23 Dec 2021 16:27:24 +0000 Subject: [PATCH] Bug 1539884 - Part 32: Mark nsHtml5SVGLoadDispatcher::Run as CAN_RUN_SCRIPT_BOUNDARY r=masayuki Differential Revision: https://phabricator.services.mozilla.com/D134415 --- parser/html/nsHtml5SVGLoadDispatcher.cpp | 4 ++-- parser/html/nsHtml5SVGLoadDispatcher.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/html/nsHtml5SVGLoadDispatcher.cpp b/parser/html/nsHtml5SVGLoadDispatcher.cpp index 10abf8ee42d3..cbd711a98f03 100644 --- a/parser/html/nsHtml5SVGLoadDispatcher.cpp +++ b/parser/html/nsHtml5SVGLoadDispatcher.cpp @@ -18,8 +18,8 @@ nsHtml5SVGLoadDispatcher::nsHtml5SVGLoadDispatcher(nsIContent* aElement) mDocument->BlockOnload(); } -NS_IMETHODIMP -nsHtml5SVGLoadDispatcher::Run() { +// TODO: Convert this to MOZ_CAN_RUN_SCRIPT (bug 1415230, bug 1535398) +MOZ_CAN_RUN_SCRIPT_BOUNDARY NS_IMETHODIMP nsHtml5SVGLoadDispatcher::Run() { WidgetEvent event(true, eSVGLoad); event.mFlags.mBubbles = false; // Do we care about forcing presshell creation if it hasn't happened yet? diff --git a/parser/html/nsHtml5SVGLoadDispatcher.h b/parser/html/nsHtml5SVGLoadDispatcher.h index 8f483287c9c3..9079e5f430aa 100644 --- a/parser/html/nsHtml5SVGLoadDispatcher.h +++ b/parser/html/nsHtml5SVGLoadDispatcher.h @@ -10,8 +10,8 @@ class nsHtml5SVGLoadDispatcher : public mozilla::Runnable { private: - nsCOMPtr mElement; - RefPtr mDocument; + const nsCOMPtr mElement; + const RefPtr mDocument; public: explicit nsHtml5SVGLoadDispatcher(nsIContent* aElement);