Skip to content

Commit

Permalink
Remove PerformanceResourceTimingSensitivePropertiesEnabled preference
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=260963
rdar://114763113

Reviewed by Alex Christensen.

Simplify the code by removing a preference that no longer has a purpose.

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/page/PerformanceResourceTiming.idl:

Canonical link: https://commits.webkit.org/267510@main
  • Loading branch information
annevk committed Aug 31, 2023
1 parent af90c2a commit 65b4029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
14 changes: 0 additions & 14 deletions Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5029,20 +5029,6 @@ PerformanceNavigationTimingAPIEnabled:
WebCore:
default: true

PerformanceResourceTimingSensitivePropertiesEnabled:
type: bool
status: stable
category: dom
humanReadableName: "PerformanceResourceTiming.transferSize, encodedBodySize, and decodedBodySize"
humanReadableDescription: "Enable all properties of PerformanceResourceTiming API"
defaultValue:
WebKitLegacy:
default: true
WebKit:
default: true
WebCore:
default: true

PermissionsAPIEnabled:
type: bool
status: stable
Expand Down
6 changes: 3 additions & 3 deletions Source/WebCore/page/PerformanceResourceTiming.idl
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ typedef double DOMHighResTimeStamp;
readonly attribute DOMHighResTimeStamp requestStart;
readonly attribute DOMHighResTimeStamp responseStart;
readonly attribute DOMHighResTimeStamp responseEnd;
[EnabledBySetting=PerformanceResourceTimingSensitivePropertiesEnabled] readonly attribute unsigned long long transferSize;
[EnabledBySetting=PerformanceResourceTimingSensitivePropertiesEnabled] readonly attribute unsigned long long encodedBodySize;
[EnabledBySetting=PerformanceResourceTimingSensitivePropertiesEnabled] readonly attribute unsigned long long decodedBodySize;
readonly attribute unsigned long long transferSize;
readonly attribute unsigned long long encodedBodySize;
readonly attribute unsigned long long decodedBodySize;

// https://www.w3.org/TR/server-timing/#extension-to-the-performanceresourcetiming-interface
[EnabledByDeprecatedGlobalSetting=ServerTimingEnabled] readonly attribute FrozenArray<PerformanceServerTiming> serverTiming;
Expand Down

0 comments on commit 65b4029

Please sign in to comment.