diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp index adf789e897e4..be13966105a4 100644 --- a/dom/base/Document.cpp +++ b/dom/base/Document.cpp @@ -15391,14 +15391,14 @@ namespace { // privacy.userInteraction.document.interval pref. // We also want to store the user-interaction before shutting down, and, for // this reason, this class implements nsIAsyncShutdownBlocker interface. -class UserIntractionTimer final : public Runnable, - public nsITimerCallback, - public nsIAsyncShutdownBlocker { +class UserInteractionTimer final : public Runnable, + public nsITimerCallback, + public nsIAsyncShutdownBlocker { public: NS_DECL_ISUPPORTS_INHERITED - explicit UserIntractionTimer(Document* aDocument) - : Runnable("UserIntractionTimer"), + explicit UserInteractionTimer(Document* aDocument) + : Runnable("UserInteractionTimer"), mPrincipal(aDocument->NodePrincipal()), mDocument(do_GetWeakReference(aDocument)) { static int32_t userInteractionTimerId = 0; @@ -15418,7 +15418,7 @@ class UserIntractionTimer final : public Runnable, return NS_OK; } - RefPtr self = this; + RefPtr self = this; auto raii = MakeScopeExit([self] { self->CancelTimerAndStoreUserInteraction(); }); @@ -15430,7 +15430,7 @@ class UserIntractionTimer final : public Runnable, NS_ENSURE_TRUE(!!phase, NS_OK); rv = phase->AddBlocker(this, NS_LITERAL_STRING_FROM_CSTRING(__FILE__), - __LINE__, u"UserIntractionTimer shutdown"_ns); + __LINE__, u"UserInteractionTimer shutdown"_ns); NS_ENSURE_SUCCESS(rv, NS_OK); raii.release(); @@ -15467,7 +15467,7 @@ class UserIntractionTimer final : public Runnable, GetState(nsIPropertyBag**) override { return NS_OK; } private: - ~UserIntractionTimer() = default; + ~UserInteractionTimer() = default; void StoreUserInteraction() { // Remove the shutting down blocker @@ -15512,7 +15512,7 @@ class UserIntractionTimer final : public Runnable, nsString mBlockerName; }; -NS_IMPL_ISUPPORTS_INHERITED(UserIntractionTimer, Runnable, nsITimerCallback, +NS_IMPL_ISUPPORTS_INHERITED(UserInteractionTimer, Runnable, nsITimerCallback, nsIAsyncShutdownBlocker) } // namespace @@ -15533,7 +15533,7 @@ void Document::MaybeStoreUserInteractionAsPermission() { return; } - nsCOMPtr task = new UserIntractionTimer(this); + nsCOMPtr task = new UserInteractionTimer(this); nsresult rv = NS_DispatchToCurrentThreadQueue(task.forget(), 2500, EventQueuePriority::Idle); if (NS_WARN_IF(NS_FAILED(rv))) {