Bug 1551990 Comment 21 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

### Beta/Release Uplift Approval Request
* **User impact if declined**: On Mac, if the computer is put in sleep mode while Firefox is open and macOS Power Nap is enabled, when the computer is woken up from sleep, Firefox may hang for several minutes using high CPU. The problem can also happen when Firefox is hidden and macOS puts Firefox into App Nap mode. See also bug 1540736 where this problem was originally reported.
* **Is this code covered by automated tests?**: No
* **Has the fix been verified in Nightly?**: Yes
* **Needs manual test from QE?**: Yes
* **If yes, steps to reproduce**: 1. Open Firefox and load a web page
2. Hide Firefox (command-H)
3. Open Activity Monitor and switch to the "Energy" pane in Activity Monitor and make sure the "App Nap" column is visible.
4. Wait 10 minutes.
5. Ensure that Firefox has a "No" in the App Nap column.
* **List of other uplifts needed**: None
* **Risk to taking this patch**: Low
* **Why is the change risky/not risky? (and alternatives if risky)**: The change is small and easy to understand. The new code disables App Nap for the parent process by setting the standardUserDefaults "NSAppSleepDisable" preference to false during startup.
* **String changes made/needed**: None
### Beta/Release Uplift Approval Request
* **User impact if declined**: On Mac, if the computer is put in sleep mode while Firefox is open and macOS Power Nap is enabled, when the computer is woken up from sleep, Firefox may hang for several minutes using high CPU. The problem can also happen when Firefox is hidden and macOS puts Firefox into App Nap mode. See also bug 1540736 where this problem was originally reported.
* **Is this code covered by automated tests?**: No
* **Has the fix been verified in Nightly?**: Yes
* **Needs manual test from QE?**: Yes
* **If yes, steps to reproduce**:
1. Open Firefox and load a web page
2. Hide Firefox (command-H)
3. Open Activity Monitor and switch to the "Energy" pane in Activity Monitor and make sure the "App Nap" column is visible.
4. Wait 10 minutes.
5. Ensure that Firefox has a "No" in the App Nap column.
* **List of other uplifts needed**: None
* **Risk to taking this patch**: Low
* **Why is the change risky/not risky? (and alternatives if risky)**: The change is small and easy to understand. The new code disables App Nap for the parent process by setting the standardUserDefaults "NSAppSleepDisable" preference to false during startup.
* **String changes made/needed**: None

Back to Bug 1551990 Comment 21