Skip to content

Commit

Permalink
[sailfishos][embedlite] Map Suspend/Resume to Freeze/Thaw respectivel…
Browse files Browse the repository at this point in the history
…y. Contributes to JB#51747

This reverses the mapping, since it was previously set the wrong way
around.

The original mapping was introduced in commit
8a5b8fb when nsPIDOMWindow was changed
to nsPIDOMWindowInner and the interface switched from using
SuspendTimeouts() and ResumeTimeouts() to Freeze() and Thaw().
  • Loading branch information
llewelld committed Oct 26, 2020
1 parent 9f24749 commit 262c3a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embedding/embedlite/embedshared/EmbedLiteViewBaseChild.cpp
Expand Up @@ -668,7 +668,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseChild::RecvSuspendTimeouts()
nsresult rv;
nsCOMPtr<nsPIDOMWindowInner> pwindow(do_QueryInterface(mDOMWindow, &rv));
if (pwindow && !pwindow->IsFrozen()) {
pwindow->Thaw();
pwindow->Freeze();
}

return IPC_OK();
Expand All @@ -681,7 +681,7 @@ mozilla::ipc::IPCResult EmbedLiteViewBaseChild::RecvResumeTimeouts()
nsresult rv;
nsCOMPtr<nsPIDOMWindowInner> pwindow(do_QueryInterface(mDOMWindow, &rv));
if (pwindow && pwindow->IsFrozen()) {
pwindow->Freeze();
pwindow->Thaw();
}

return IPC_OK();
Expand Down

0 comments on commit 262c3a2

Please sign in to comment.