Skip to content

Commit d5ef3b2

Browse files
authored
Remove comments about user data directory handling
Removed comments explaining the writable profile data requirement. Signed-off-by: Pavel Feldman <pavel.feldman@gmail.com>
1 parent bafc503 commit d5ef3b2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/playwright-core/src/tools/mcp/browserFactory.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ async function createPersistentBrowser(config: FullConfig, clientInfo: ClientInf
182182
}
183183

184184
async function createUserDataDir(config: FullConfig, clientInfo: ClientInfo) {
185-
// Profile data must be writable, so we never derive it from PLAYWRIGHT_BROWSERS_PATH
186-
// (which often points at a read-only browser binary cache on NixOS, immutable Docker
187-
// mounts, or shared filesystems). Use the platform's user cache directory instead.
188185
const dir = process.env.PWMCP_PROFILES_DIR_FOR_TEST ?? path.join(defaultCacheDirectory, 'ms-playwright-mcp');
189186
const browserToken = config.browser.launchOptions?.channel ?? config.browser?.browserName;
190187
// Hesitant putting hundreds of files into the user's workspace, so using it for hashing instead.

0 commit comments

Comments
 (0)