This action occurred while the window was in the background

If we’re talking about web, it means exaclty that “This action occurred while the window was in the background”.

For instance, in Firefox, you’d have the Document.visibilityState flag, bg=1 meaning the window is in a background state.

Document: visibilityState property - Web APIs | MDN.

In some cases, you might get a message like:

The browser went into the background while the action was active. Timings might not be 100% accurate due to reduced timer resolution