зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1656801 - Fix typo in UserInteractionTimer name. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D85696
This commit is contained in:
Родитель
e35f7cf171
Коммит
bca8782a80
|
@ -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<UserIntractionTimer> self = this;
|
||||
RefPtr<UserInteractionTimer> 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<nsIRunnable> task = new UserIntractionTimer(this);
|
||||
nsCOMPtr<nsIRunnable> task = new UserInteractionTimer(this);
|
||||
nsresult rv = NS_DispatchToCurrentThreadQueue(task.forget(), 2500,
|
||||
EventQueuePriority::Idle);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче