Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core(trace-of-tab): only use navstart of chrome/http documents #5917

Merged
merged 8 commits into from
Aug 29, 2018

Conversation

patrickhulce
Copy link
Collaborator

Summary
The underlying issue in #3838 is that we use the navstart of a navigation that is immediately cancelled and never takes place. Thus, we end up looking for all of our events of importance in the wrong timeframe.

The redirect comment (#3838 (comment)) got me thinking about the correct navstart to be using though, and it seems like we should be capturing that performance hit and warning folks that they have multiple navigations. I wrote out a nice long argument for why we should do this, but I couldn't even convince myself it was the right thing to do since we'll break many existing customers that are ignorant of client-side redirects today.

Instead I've installed a quick fix that ignores navigations to targets that we're not interested in. i.e. only HTTP navigationStart events count. This fixes the taobao case and should fix the other custom protocol cases where this has popped up.

Related Issues/PRs
fixes #3838

@patrickhulce patrickhulce changed the title core(trace-of-tab): use closest navstart to first network request core(trace-of-tab): only use navstart of chrome/http documents Aug 28, 2018
Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No domContentLoaded event in trace
3 participants