[webkit-changes] [WebKit/WebKit] 789e26: [ResourceMonitor] Add handling of queries while ru...
Basuke Suzuki
noreply at github.com
Wed Dec 11 12:11:59 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 789e26cf9388e22172ea29272c4656f96b32ddc8
https://github.com/WebKit/WebKit/commit/789e26cf9388e22172ea29272c4656f96b32ddc8
Author: Basuke Suzuki <basuke at apple.com>
Date: 2024-12-11 (Wed, 11 Dec 2024)
Changed paths:
M Source/WebCore/loader/ResourceMonitorChecker.cpp
M Source/WebCore/loader/ResourceMonitorChecker.h
Log Message:
-----------
[ResourceMonitor] Add handling of queries while rule list is not set up correctly.
https://bugs.webkit.org/show_bug.cgi?id=284466
rdar://137691088
Reviewed by Ben Nham.
At the very beginning of the lifecycle, content rule list may not be set up yet.
Adding queue to keep the queries and handle them when rule list is set. Also add timeout to
giving up to wait the list set up correctly for some reason.
* Source/WebCore/loader/ResourceMonitorChecker.cpp:
(WebCore::ResourceMonitorChecker::~ResourceMonitorChecker):
(WebCore::ResourceMonitorChecker::checkEligibility):
(WebCore::ResourceMonitorChecker::setContentRuleList):
(WebCore::ResourceMonitorChecker::finishPendingQueries):
(WebCore::ResourceMonitorChecker::checkEligibilityForTesting): Deleted.
(WebCore::ResourceMonitorChecker::checkEligibilityWithLock): Deleted.
* Source/WebCore/loader/ResourceMonitorChecker.h:
Canonical link: https://commits.webkit.org/287688@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list