Closed Bug 1717047 Opened 4 years ago Closed 4 years ago

[network markers] Support all redirections in the parent process

Categories

(Core :: Networking: HTTP, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: julienw, Assigned: julienw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file, 5 obsolete files)

Currently we're missing out a lot of redirections:

  • STS
  • proxy
  • from addons

In this bug I want to experiment moving adding LOAD_REDIRECT markers directly in SetupReplacementChannel which is used in all redirections.

I'll probably also reuse asuth's code from https://phabricator.services.mozilla.com/D112675, because after having a redirect marker when redirecting to InterceptedChannel we also need a new id and a new "start" marker.

This may not be the best solution for the end users, but we may want to hide or merge internal redirections in the UI later on.

Assignee: nobody → felash
Severity: -- → N/A
Priority: -- → P3
Whiteboard: [necko-triaged]

This moves the adding of the end marker for redirects in nsHttpChannel
to SetupReplacementChannel, so that all redirects are properly caught.
Without that, some requests will show as unfinished in the profiler
frontend.

Some of the redirects are internal and we may be able to flag and ignore
them in the frontend, but that's work for the future.

This ensures that the new intercepted channel gets a new id, so that we
can properly match start and end markers in the frontend.

Depends on D118823

Following the change in the previous commit where we generate a new id
for intercepted channels, we now need a "start" marker for this channel.

Depends on D118824

Now we need to update all existing tests related to service workers,
because they all have an extra redirect marker.

Depends on D118825

This adds a new profiler test for handling the http->https case that we
wouldn't catch before this patchset.

Depends on D118826

Attachment #9228960 - Attachment is obsolete: true
Attachment #9228961 - Attachment is obsolete: true
Attachment #9228963 - Attachment is obsolete: true
Attachment #9228965 - Attachment is obsolete: true
Attachment #9228966 - Attachment is obsolete: true

This moves the adding of the end marker for redirects in nsHttpChannel
to SetupReplacementChannel, so that all redirects are properly caught.
Without that, some requests will show as unfinished in the profiler
frontend.

Some of the redirects are internal and we may be able to flag and ignore
them in the frontend, but that's work for the future.

Because all redirections get a "REDIRECT" end marker, including the
internal redirection to the service worker's intercepted channel, we now
need an additional "START" marker there as well.

All existing profiler tests related to service workers needed to be
updated because there's an extra redirect marker in all these requests,
as well as several pairs of markers that all have the same id.

This also adds a new profiler test for handling the http->https case
that we wouldn't catch before this patch.

Pushed by jwajsberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/932f7478dc2a [profiler, netwerk] Support all redirections in the parent process r=canaltinova,necko-reviewers,dragana
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Regressions: 1719684
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 91 Branch → ---

Thanks for the backout!

Flags: needinfo?(felash)

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:julienw, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(felash)
Flags: needinfo?(dd.mozilla)
Flags: needinfo?(dd.mozilla)
Flags: needinfo?(felash)
Pushed by jwajsberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/00803501007e [profiler, netwerk] Support all redirections in the parent process r=canaltinova,necko-reviewers,dragana
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: