-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Feature] extension message passing in non-persistent context #4441
Comments
@leonardodino by default, extensions don't run in incognito windows in Chromium (so they don't run for you in the Playwright default context). I tried with your extension, and it doesn't run in incognito as well. Could it be that you explicitly enable it in extension settings? |
Hey there @aslushnikov thanks for the quick turn around! sorry! I indeed wrote it a bit weird 😅 The extension fails when running on playwright (and puppeteer) in a way that I'm not able to reproduce on regular browsers:
I'm also enabling the "run in incognito" on the plawright run. 😄 (the first
|
This is by design. At this point, support for extensions in Playwright is in the best effort mode. We focus on the cross-browser web testing instead. In order to test extensions, you should run Playwright in a mode that is as close to the regular execution as possible, in this case it means running it as |
Hey, thanks again for the support (:
Fully understand and support this decision! 🙌 extensions are indeed an edge-case.
yep, using it currently, together with just wanted to report because it took me a good while to understand why it was failing 😅 |
Thank you for reporting this issue and providing comments to those that might be facing a similar problem. I am now closing this as a part of the triage, please feel free to file a new issue with additional details. Given the limited resource and a lot of requests, we need to fulfill most popular requests and at the same time keep our issue database manageable. |
Context:
Code Snippet
chrome.tabs.sendMessage
fails on fails onchromium.launch
, but not onchromium.launchPersistentContext
Describe the bug
I've created a repo to further describe and isolate this bug.
the only dependencies are
node
andplaywright
itself.the log on GitHub Actions help with visualising the mismatch between the persistent context and the default ones.
I wasn't able to reproduce it on a Chromium Incognito window locally. 🤔
The text was updated successfully, but these errors were encountered: