WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
223405
[ITP] User initiated cross-domain link navigations getting counted as Top Frame Redirects
https://bugs.webkit.org/show_bug.cgi?id=223405
Summary
[ITP] User initiated cross-domain link navigations getting counted as Top Fra...
Mathieu Perreault
Reported
2021-03-17 17:33:33 PDT
The report is about user-initiated cross-domain link navigations that are sometimes counted as top frame redirects in the eyes of ITP. Details ======= The demo is two domains A and B linking to each other through <a> tags. The interaction is starting at A, clicking on a link to navigate to B, waiting X seconds and clicking to go back to A. - If the operation is done fast (X < 5 seconds), one can see that TopFrameUniqueRedirectsTo table being updated for the navigation from B -> A. - If X > 5s before clicking to navigate back to A, there is no TopFrameUniqueRedirectsTo table entry. The `ITPDebug` log doesn’t show this interaction, so that’s why we need to look in the sqlite database. As far as one can tell, [this](
https://github.com/WebKit/WebKit/blob/main/Source/WebKit/NetworkProcess/Classifier/ResourceLoadStatisticsDatabaseStore.cpp#L1567
) is the logic in the WebKit code. Given that there are no `ITPDebug` statement, one can infer that `wasNavigatedAfterShortDelayWithoutUserInteraction` is probably `true`, but in this case there _was_ a user interaction so that seems incorrect. Since it’s derived from a value passed from the UI Process, it’s impossible to confirm that by code inspection though. Videos ======
https://screenshot.click/github_and_back_fast.mov
https://screenshot.click/github_and_back_slow.mov
Attachments
Add attachment
proposed patch, testcase, etc.
Mathieu Perreault
Comment 1
2021-03-17 17:34:57 PDT
Forgot to mention that the very simple demo that this is based on is at
https://app.tornadored.com/oauth
. Thank you!
Radar WebKit Bug Importer
Comment 2
2021-03-17 17:41:39 PDT
<
rdar://problem/75552559
>
John Wilander
Comment 3
2021-03-17 17:42:01 PDT
Thanks for filing, Mathieu!
Robin Drexler
Comment 4
2022-11-09 08:28:04 PST
The initial bug report description makes it seem like user initiated navigations are only counted as redirects if a user navigates back and forth between two domains.
> The interaction is starting at A, clicking on a link to navigate to B, waiting X seconds and clicking to go back to A.
However, this behavior also occurs if you click on any outgoing cross-domain link too quickly. Which likely flags a lot of pages unnecessarily as prevalent. E.g. if you go to
https://robin-test-1.account.myshopify.com/login?return_to=%2F
and click on the `Continue` button in under 5 seconds, an entry to the `TopFrameUniqueRedirectsTo` table will be added for `account.myshopify.com`.
Charlie Wolfe
Comment 5
2022-12-30 12:46:36 PST
Pull request:
https://github.com/WebKit/WebKit/pull/8108
EWS
Comment 6
2023-01-02 11:33:46 PST
Committed
258382@main
(aee01bb955fb): <
https://commits.webkit.org/258382@main
> Reviewed commits have been landed. Closing PR #8108 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug