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

[BUG] RPC/Firefox goBack does not return a response (guid) #3693

Closed
mxschmitt opened this issue Aug 30, 2020 · 4 comments · Fixed by microsoft/playwright-python#282
Closed
Assignees

Comments

@mxschmitt
Copy link
Member

mxschmitt commented Aug 30, 2020

Context:

  • Playwright Version: 3cc9109
  • Operating System: macOS/Linux
  • Node.js version: 12
  • Browser: Firefox
  • Scope: Playwright Python / Playwright Go / RPC clients

RPC response for all the browsers after executing Page.goBack:

// CR: RECV>{"id":7,"guid":"","method":"","params":null,"result":{"response":{"guid":"Response@231e838041ee4d319287bae674996b65"}},"error":null}
// FF: RECV>{"id":7,"guid":"","method":"","params":null,"result":{},"error":null}
// WK: RECV>{"id":7,"guid":"","method":"","params":null,"result":{"response":{"guid":"Response@70df6e01fce0e946812fc2ad67a46fc8"}},"error":null}

Expected: Firefox does return a response value in the result map like CR and WK are doing.

I tried to reproduce it with the upstream implementation in Playwright but was not able to. Thats the failing Playwright Python test: microsoft/playwright-python#181

@mxschmitt
Copy link
Member Author

mxschmitt commented Aug 30, 2020

It seems like it has to do with FrameManager.frameRequestedNavigation which gets called in FF but not in WK and CR. This results in that the request property gets reset to undefined and causes that no response reference is available anymore.

@aslushnikov
Copy link
Collaborator

This seems to be working on current tip-of-tree; I tried with page.goBack should work test.

So closing!

@mxschmitt
Copy link
Member Author

mxschmitt commented Nov 4, 2020

@aslushnikov sorry to reopen, issue is still reproducible, at least in version 1604019206789. Was it fixed recently you think?

Also I experienced, that it was not reproducible in upstream Playwright, only in Python or Go e.g.

https://github.com/microsoft/playwright-python/pull/279/checks?check_run_id=1352140044

(feel free to mark it as irrelevant and close it, if you think its a non-customer critical issue)

@mxschmitt mxschmitt reopened this Nov 4, 2020
aslushnikov added a commit to aslushnikov/playwright-python that referenced this issue Nov 4, 2020
If pages are cached, then Firefox uses back-forward cache aggressively
to serve the history navigations.

Fixes microsoft/playwright#3693
@aslushnikov
Copy link
Collaborator

for the record: we spent an hour with Max debugging this over zoom and turned out its an issue with python test server!

aslushnikov added a commit to microsoft/playwright-python that referenced this issue Nov 4, 2020
If pages are cached, then Firefox uses back-forward cache aggressively
to serve the history navigations.

Fixes microsoft/playwright#3693
smilephoenix103 added a commit to smilephoenix103/test-playwright-python that referenced this issue May 28, 2022
If pages are cached, then Firefox uses back-forward cache aggressively
to serve the history navigations.

Fixes microsoft/playwright#3693
sbakerdev added a commit to sbakerdev/playwright-python that referenced this issue Nov 29, 2022
If pages are cached, then Firefox uses back-forward cache aggressively
to serve the history navigations.

Fixes microsoft/playwright#3693
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 a pull request may close this issue.

3 participants