-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick bd0c3f3. rdar://113230434
[visionOS] Under thermal throttling Safari webpage went blank when navigating https://bugs.webkit.org/show_bug.cgi?id=261374 <radar://113230434> Reviewed by Dean Jackson. When the system is throttled due to thermal pressure, we can easily hit process timeouts and then web pages will fail to load. * Source/WebKit/UIProcess/AuxiliaryProcessProxy.cpp: (WebKit::adjustedTimeoutForThermalState): (WebKit::AuxiliaryProcessProxy::AuxiliaryProcessProxy): Query if thermal mitigation is enabled and increase process timeout if so. * Source/WebCore/platform/ThermalMitigationNotifier.cpp: (WebCore::ThermalMitigationNotifier::isThermalMitigationEnabled): Default implementation. * Source/WebCore/platform/ThermalMitigationNotifier.h: * Source/WebCore/platform/cocoa/ThermalMitigationNotifier.mm: (WebCore::isThermalMitigationEnabled): (-[WebThermalMitigationObserver thermalMitigationEnabled]): (WebCore::ThermalMitigationNotifier::isThermalMitigationEnabled): Add static member function to query if thermal mitigation is enabled as we don't need an instance function in AuxiliaryProcessProxy * Source/WebCore/WebCore.xcodeproj/project.pbxproj: Make ThermalMitigationNotifier.h a private header. Canonical link: https://commits.webkit.org/268149@main Identifier: 265423.1038@safari-7616-branch
- Loading branch information
1 parent
51f1661
commit 5ec82cd
Showing
5 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters