RESOLVED FIXED 238531
Avoid initializing default WKWebsiteDataStore in -[WKWebViewConfiguration copyWithZone]
https://bugs.webkit.org/show_bug.cgi?id=238531
Summary Avoid initializing default WKWebsiteDataStore in -[WKWebViewConfiguration cop...
Sihui Liu
Reported 2022-03-29 16:38:10 PDT
...
Attachments
Patch (3.21 KB, patch)
2022-03-29 21:48 PDT, Sihui Liu
no flags
Patch for landing (4.08 KB, patch)
2022-03-30 10:51 PDT, Sihui Liu
no flags
Patch for landing (4.08 KB, patch)
2022-03-30 10:52 PDT, Sihui Liu
no flags
Patch (4.18 KB, patch)
2022-04-01 14:22 PDT, Sihui Liu
no flags
Patch for landing (4.03 KB, patch)
2022-04-01 19:11 PDT, Sihui Liu
no flags
Sihui Liu
Comment 1 2022-03-29 21:46:34 PDT
Sihui Liu
Comment 2 2022-03-29 21:48:13 PDT
Sihui Liu
Comment 3 2022-03-30 10:51:10 PDT
Created attachment 456147 [details] Patch for landing
Sihui Liu
Comment 4 2022-03-30 10:52:06 PDT
Created attachment 456148 [details] Patch for landing
EWS
Comment 5 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].
Truitt Savell
Comment 6 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
WebKit Commit Bot
Comment 7 2022-03-31 15:06:07 PDT
Re-opened since this is blocked by bug 238638
Sihui Liu
Comment 8 2022-04-01 14:22:18 PDT
Robert Jenner
Comment 9 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
Sihui Liu
Comment 10 2022-04-01 19:04:08 PDT Comment hidden (obsolete)
Sihui Liu
Comment 11 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!
Sihui Liu
Comment 12 2022-04-01 19:11:25 PDT
Created attachment 456427 [details] Patch for landing
EWS
Comment 13 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].
Note You need to log in before you can comment on or make changes to this bug.