RESOLVED FIXED 229847
Safari’s Privacy Report window is completely blank
https://bugs.webkit.org/show_bug.cgi?id=229847
Summary Safari’s Privacy Report window is completely blank
Kate Cheney
Reported 2021-09-02 20:02:54 PDT
Safari’s Privacy Report window is completely blank
Attachments
Patch (1.82 KB, patch)
2021-09-02 20:05 PDT, Kate Cheney
no flags
Patch (13.95 KB, patch)
2021-09-03 12:19 PDT, Kate Cheney
ews-feeder: commit-queue-
Patch (14.00 KB, patch)
2021-09-03 12:36 PDT, Kate Cheney
no flags
Patch (15.97 KB, patch)
2021-09-03 14:06 PDT, Kate Cheney
no flags
Patch (13.45 KB, patch)
2021-09-03 14:45 PDT, Kate Cheney
no flags
Patch (13.28 KB, patch)
2021-09-03 14:56 PDT, Kate Cheney
no flags
Kate Cheney
Comment 1 2021-09-02 20:03:18 PDT
Kate Cheney
Comment 2 2021-09-02 20:05:07 PDT
Chris Dumez
Comment 3 2021-09-03 07:21:35 PDT
Comment on attachment 437237 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437237&action=review r=me > Source/WebKit/ChangeLog:9 > + No new tests, suspension kicks in 30 seconds after a web process You could imagine an SPI to tweak that delay but OK.
Kate Cheney
Comment 4 2021-09-03 12:19:16 PDT
Kate Cheney
Comment 5 2021-09-03 12:19:42 PDT
Added a test, would like another review in case I did something silly!
Chris Dumez
Comment 6 2021-09-03 12:25:17 PDT
Comment on attachment 437294 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437294&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:86 > +- (void)_suspendAllCachedWebProcesses WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); I'd much rather we have a single SPI to tweak cachedProcessSuspensionDelay, as I suggested.
Kate Cheney
Comment 7 2021-09-03 12:36:40 PDT
Chris Dumez
Comment 8 2021-09-03 12:46:03 PDT
Comment on attachment 437296 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437296&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:86 > +- (void)_suspendAllCachedWebProcesses WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); This new iteration still has the same issue.
Kate Cheney
Comment 9 2021-09-03 13:04:53 PDT
(In reply to Chris Dumez from comment #8) > Comment on attachment 437296 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=437296&action=review > > > Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:86 > > +- (void)_suspendAllCachedWebProcesses WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); > > This new iteration still has the same issue. Sorry, I missed your comment and was just posting to adjust the build failures.
Kate Cheney
Comment 10 2021-09-03 14:06:39 PDT
Chris Dumez
Comment 11 2021-09-03 14:14:04 PDT
Comment on attachment 437310 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437310&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:85 > +- (void)_keepCachedProcessesAliveForTesting:(BOOL)shouldKeepCachedProcessesAliveForTesting WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); Why do we still have this? I think we should avoid adding this. > Source/WebKit/UIProcess/API/Cocoa/WKWebsiteDataStorePrivate.h:86 > +- (void)_setCachedProcessSuspensionDelayForTesting:(double)delayInSeconds WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); This could be: + (void)_setCachedProcessSuspensionDelayForTesting:(double)delayInSeconds WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); since this is static internally. > Tools/TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadStatistics.mm:1355 > + [dataStore _setCachedProcessSuspensionDelayForTesting:0]; Could be [WKWebsiteDataStore _setCachedProcessSuspensionDelayForTesting:0] with the change I suggested above.
Kate Cheney
Comment 12 2021-09-03 14:45:40 PDT
Chris Dumez
Comment 13 2021-09-03 14:50:26 PDT
Comment on attachment 437315 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437315&action=review > Source/WebKit/UIProcess/WebProcessCache.cpp:44 > +static Seconds& cachedProcessSuspensionDelay() Why do we need a function, I don't see any reason why we cannot keep my global and drop "constexpr", is there? > Source/WebKit/UIProcess/WebProcessCache.cpp:327 > +#if PLATFORM(MAC) Either outside the function or inside but not both :)
Kate Cheney
Comment 14 2021-09-03 14:54:56 PDT
Comment on attachment 437315 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=437315&action=review >> Source/WebKit/UIProcess/WebProcessCache.cpp:44 >> +static Seconds& cachedProcessSuspensionDelay() > > Why do we need a function, I don't see any reason why we cannot keep my global and drop "constexpr", is there? No good reason except me being silly >> Source/WebKit/UIProcess/WebProcessCache.cpp:327 >> +#if PLATFORM(MAC) > > Either outside the function or inside but not both :) Oops, Friday brain. Will fix.
Kate Cheney
Comment 15 2021-09-03 14:56:38 PDT
Chris Dumez
Comment 16 2021-09-03 14:59:40 PDT
Comment on attachment 437317 [details] Patch r=me
EWS
Comment 17 2021-09-03 15:48:14 PDT
Committed r282034 (241336@main): <https://commits.webkit.org/241336@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 437317 [details].
Note You need to log in before you can comment on or make changes to this bug.