-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
fix: correctly resolve OOPIF response bodies #13311
Conversation
what do you mean by different sessions for a document request? The only thing that can happen is that the network manager gets a new client on pre-rendering activation but that is not associated with a network request so it should not have an effect on ongoing network activity (except that the client before the activation will get disconnected and its network data would not be available anymore). I think the solution in this PR for updating the client to the client that received the loading finished/failed events makes sense. |
Apologies I should have given a clearer example. With the OOPIF scenario, this new check works because the My question was is there a possible scenario where we’d receive a navigation request for the main target where its initial CDP events are fired on the main target client (and so it’s I can see there’s some failing tests in CI, i’ll try and take a look at those this evening. |
Got it, thanks for the explanation, so I do not think the scenario you describe can currently happen. The failing tests seem to be for the WebDriver BiDi implementation that do not support getting the response bodies yet. Let's mark the test as FAIL in test/TestExpectations.json for "webDriverBiDi" on all platforms. |
you can run |
Ahh ok thanks, have applied those changes now. |
9685437
to
b2cc873
Compare
b2cc873
to
3f014e2
Compare
What kind of change does this PR introduce?
Bugfix
Did you add tests for your changes?
Yes
If relevant, did you update the documentation?
Summary
Fix for #13307. I've raised it as a draft initially as there's a potential edge case that this may need to account for in
#maybeReassignOOPIFRequestClient
- namely, if we end up with different sessions for a document request on the main frame (top-level page). Is this something you're aware can happen? If so, what do you think would be the best way of making this info available for this check inNetworkManager
, i.e. does theCDPSession
that just received aNetwork.loadingFinished
orNetwork.loadingFailed
event belong to the 'main' target or not?Does this PR introduce a breaking change?
No
Other information