Bug 190055

Summary: Resource Load Statistics: Non-redirected top frame navigation should not get captured in statistics
Product: WebKit Reporter: John Wilander <wilander>
Component: WebKit Misc.Assignee: John Wilander <wilander>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, dbates, ews-watchlist, japhet, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=190097
Attachments:
Description Flags
Patch
none
Patch none

John Wilander
Reported 2018-09-27 14:17:17 PDT
We should skip statistics collection of regular top frame navigational redirects.
Attachments
Patch (8.50 KB, patch)
2018-09-27 14:27 PDT, John Wilander
no flags
Patch (8.60 KB, patch)
2018-09-27 14:41 PDT, John Wilander
no flags
John Wilander
Comment 1 2018-09-27 14:18:08 PDT
Sorry, we should skip statistics collection of regular top frame navigational loads. Redirects should still be captured.
Radar WebKit Bug Importer
Comment 2 2018-09-27 14:18:19 PDT
John Wilander
Comment 3 2018-09-27 14:27:21 PDT
Chris Dumez
Comment 4 2018-09-27 14:34:01 PDT
Comment on attachment 351002 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=351002&action=review > LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations-expected.txt:4 > +PASS testRunner.isStatisticsRegisteredAsSubFrameUnder("http://localhost", "http://127.0.0.1") is false Having PASS lines *after* the "TEST COMPLETE" line indicates the test is written wrong and that it will likely be flaky. > LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html:5 > + <title>Test that a non-redirected top frame navigation doesn't get captured in statistics</title> Would be nice to use description("Test that a non-redirected top frame navigation doesn't get captured in statistics"); instead of that it shows in the output. > LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html:15 > + testRunner.notifyDone(); Should be: finishJSTest(); > LayoutTests/http/tests/resourceLoadStatistics/do-not-capture-statistics-for-simple-top-navigations.html:23 > + testRunner.waitUntilDone(); Please use: jsTestIsAsync = true; right after the description();
John Wilander
Comment 5 2018-09-27 14:41:48 PDT
Chris Dumez
Comment 6 2018-09-27 14:51:05 PDT
Comment on attachment 351005 [details] Patch r=me if the bots are happy.
John Wilander
Comment 7 2018-09-27 15:06:59 PDT
Thank you, Chris!
WebKit Commit Bot
Comment 8 2018-09-27 17:23:44 PDT
Comment on attachment 351005 [details] Patch Clearing flags on attachment: 351005 Committed r236578: <https://trac.webkit.org/changeset/236578>
WebKit Commit Bot
Comment 9 2018-09-27 17:23:46 PDT
All reviewed patches have been landed. Closing bug.
John Wilander
Comment 10 2018-09-28 15:41:51 PDT
Note You need to log in before you can comment on or make changes to this bug.