Open Bug 1913366 Opened 6 months ago Updated 6 months ago

Add tests for network interception and multiple sessions

Categories

(Remote Protocol :: WebDriver BiDi, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: jdescottes, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [webdriver:backlog])

With the initial implementation of network.provideResponse, the usual events / observer notifications for the response are not emitted and it's not observable from the rest of the codebase (eg DevTools, webextensions, other bidi sessions).

We would need to completely mock the transaction on necko side in order to fix this.

We are currently using setResponseOverride https://searchfox.org/mozilla-central/rev/4496b3ed9bb535832e4826f09fbcb645b559a32d/netwerk/protocol/http/nsIHttpChannelInternal.idl#530-531

As discussed in the meeting, sending a ni? for following up / planning this work.

Flags: needinfo?(kershaw)
Depends on: 1913892

I created bug 1913892 to track necko work for this.

No longer depends on: 1913892
Flags: needinfo?(kershaw)

Thanks, let's keep this for adding a potential test when we have some multi session support.
ni? to myself to update title + summary

Blocks: 1862018
Flags: needinfo?(jdescottes)
Priority: -- → P3
Whiteboard: [webdriver:backlog]
Severity: -- → N/A
Type: defect → task
Flags: needinfo?(jdescottes)
Summary: Responses overridden via network.provideResponse are not visible in DevTools/other sessions → Add tests for network interception and multiple sessions
You need to log in before you can comment on or make changes to this bug.