Skip to content

fix: exception when page got closed via browser in persistent context #685

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

Merged

Conversation

mxschmitt
Copy link
Member

Fixes #681

not sure about a test for it.

A Set in JavaScript simply does not throw when there is no element which gets removed.

it throws here:

self._browser_context._pages.remove(self)

@mxschmitt mxschmitt requested a review from pavelfeldman May 12, 2021 15:15
@mxschmitt mxschmitt force-pushed the bugfix/persistent-context-error branch from 5a0836f to f6472a8 Compare May 12, 2021 15:42
@mxschmitt mxschmitt merged commit 6854c40 into microsoft:master May 12, 2021
YusukeIwaki added a commit to YusukeIwaki/playwright-ruby-client that referenced this pull request May 16, 2021
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.

Error accessing page and error closing browser if extension is loaded: "AttributeError: 'NoneType' object has no attribute '_pages'"
2 participants