[webkit-changes] [WebKit/WebKit] 8b224c: Adopt setVolumeCapacityOverride in WKWebsiteDataSt...

Sihui noreply at github.com
Tue Apr 11 09:05:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8b224cb2e5d0bb3ae1de63da131b6edd4739c593
      https://github.com/WebKit/WebKit/commit/8b224cb2e5d0bb3ae1de63da131b6edd4739c593
  Author: Sihui Liu <sihui_liu at apple.com>
  Date:   2023-04-11 (Tue, 11 Apr 2023)

  Changed paths:
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebsiteDatastore.mm

  Log Message:
  -----------
  Adopt setVolumeCapacityOverride in WKWebsiteDataStoreConfiguration.OriginQuotaRatio
https://bugs.webkit.org/show_bug.cgi?id=255122
rdar://107730062

Reviewed by Youenn Fablet.

WKWebsiteDataStoreConfiguration.OriginQuotaRatio currently sets a really small OriginQuotaRatio to ensure the computed
quota will be small enough (e.g. close to 0) and quota error will be thrown. This is a bit handwavy. To make the result
more definitive when running the test on machines with different capacity, we could adopt the recently added SPI
setVolumeCapacityOverride to set capacity used for quota computation.

* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebsiteDatastore.mm:
(TestWebKitAPI::TEST):

Canonical link: https://commits.webkit.org/262827@main




More information about the webkit-changes mailing list