Bug 238531 - Avoid initializing default WKWebsiteDataStore in -[WKWebViewConfiguration copyWithZone]
Summary: Avoid initializing default WKWebsiteDataStore in -[WKWebViewConfiguration cop...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sihui Liu
URL:
Keywords: InRadar
Depends on: 238638
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-29 16:38 PDT by Sihui Liu
Modified: 2022-04-01 20:30 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.21 KB, patch)
2022-03-29 21:48 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch for landing (4.08 KB, patch)
2022-03-30 10:51 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch for landing (4.08 KB, patch)
2022-03-30 10:52 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch (4.18 KB, patch)
2022-04-01 14:22 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff
Patch for landing (4.03 KB, patch)
2022-04-01 19:11 PDT, Sihui Liu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sihui Liu 2022-03-29 16:38:10 PDT
...
Comment 1 Sihui Liu 2022-03-29 21:46:34 PDT
rdar://90628101
Comment 2 Sihui Liu 2022-03-29 21:48:13 PDT
Created attachment 456090 [details]
Patch
Comment 3 Sihui Liu 2022-03-30 10:51:10 PDT
Created attachment 456147 [details]
Patch for landing
Comment 4 Sihui Liu 2022-03-30 10:52:06 PDT
Created attachment 456148 [details]
Patch for landing
Comment 5 EWS 2022-03-30 13:52:50 PDT
Committed r292119 (249032@main): <https://commits.webkit.org/249032@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456148 [details].
Comment 6 Truitt Savell 2022-03-31 14:29:35 PDT
The new API test TestWebKitAPI.WKWebsiteDataStore.DoNotCreateDefaultDataStore

added in https://github.com/WebKit/WebKit/commit/20c067e6fb466f9d4781e952f153092c9fc7e350

is a constant failure.

History:
https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.WKWebsiteDataStore.DoNotCreateDefaultDataStore

log:
TestWebKitAPI.WKWebsiteDataStore.DoNotCreateDefaultDataStore
        
        /Volumes/Data/worker/monterey-release/build/Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebsiteDatastore.mm:420
        Value of: [WKWebsiteDataStore _defaultDataStoreExists]
          Actual: true
        Expected: false
Comment 7 WebKit Commit Bot 2022-03-31 15:06:07 PDT
Re-opened since this is blocked by bug 238638
Comment 8 Sihui Liu 2022-04-01 14:22:18 PDT
Created attachment 456402 [details]
Patch
Comment 9 Robert Jenner 2022-04-01 15:58:57 PDT
I was able to reproduce locally, but I had to get creative since this was a newly introduced test, and since it was recently reverted there is of course no reproduction at ToT because the test was removed. Here are my steps: 

1. I downloaded Monterey Debug Build r292161 to test with. I chose that specific build because it was closer to the end in the range of revisions that this test failed on in the history. 

2. I was checked out to ToT, but just in the event that the test would not run, I reverted my checkout locally to r292161. I got the hashcode for that revision and did git checkout 6ddf72853c64be73426bce0a14fafa00690b3499

3. I ran the test as follows and was able to reproduce the failure: 

run-api-tests --debug TestWebKitAPI.WKWebsiteDataStore.DoNotCreateDefaultDataStore
Comment 10 Sihui Liu 2022-04-01 19:04:08 PDT Comment hidden (obsolete)
Comment 11 Sihui Liu 2022-04-01 19:07:05 PDT
(In reply to Robert Jenner from comment #9)
> I was able to reproduce locally, but I had to get creative since this was a
> newly introduced test, and since it was recently reverted there is of course
> no reproduction at ToT because the test was removed. Here are my steps: 
> 
> 1. I downloaded Monterey Debug Build r292161 to test with. I chose that
> specific build because it was closer to the end in the range of revisions
> that this test failed on in the history. 
> 
> 2. I was checked out to ToT, but just in the event that the test would not
> run, I reverted my checkout locally to r292161. I got the hashcode for that
> revision and did git checkout 6ddf72853c64be73426bce0a14fafa00690b3499
> 
> 3. I ran the test as follows and was able to reproduce the failure: 
> 
> run-api-tests --debug
> TestWebKitAPI.WKWebsiteDataStore.DoNotCreateDefaultDataStore

Thanks for the help, Robert!
Comment 12 Sihui Liu 2022-04-01 19:11:25 PDT
Created attachment 456427 [details]
Patch for landing
Comment 13 EWS 2022-04-01 20:30:31 PDT
Committed r292255 (249153@main): <https://commits.webkit.org/249153@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456427 [details].