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

alwaysIsolated Mode Breaks storage_state When Creating Context #81

Open
lolyafedor opened this issue Jan 7, 2025 · 0 comments
Open

Comments

@lolyafedor
Copy link

lolyafedor commented Jan 7, 2025

When setting os.environ["REBROWSER_PATCHES_RUNTIME_FIX_MODE"] = "alwaysIsolated" in combination with storage_state while creating a browser context, the browser opens the first link from origins list from loaded storage_state and freezes. (Without this modification everything works fine) (If i remove the load of the storage_state and keep the 'alwaysIsolated' everythings works fine too)

Steps to Reproduce:

Set os.environ["REBROWSER_PATCHES_RUNTIME_FIX_MODE"] = "alwaysIsolated".
Create a context with storage_state.
Open a page and observe the errors or broken behavior.

os.environ["REBROWSER_PATCHES_RUNTIME_FIX_MODE"] = "alwaysIsolated"


context = browser.new_context(
        ........
        storage_state=storage_state_for_user
    )

Idk if it should behave like this cause it's not in the main context, but decided to write anyway

Environment:
Playwright Version: 1.49.1
ReBrowser Version: 1.49.1
OS: Windows 11
Python Version: 3.12.4

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

No branches or pull requests

1 participant