mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(port-forwarding): on WebKit Win (#6745)
This commit is contained in:
parent
59d591bce6
commit
1778e117f7
@ -178,6 +178,14 @@ export function canAccessFile(file: string) {
|
||||
}
|
||||
}
|
||||
|
||||
const localIpAddresses = [
|
||||
'localhost',
|
||||
'127.0.0.1',
|
||||
'::ffff:127.0.0.1',
|
||||
'::1',
|
||||
'0000:0000:0000:0000:0000:0000:0000:0001', // WebKit (Windows)
|
||||
];
|
||||
|
||||
export function isLocalIpAddress(ipAdress: string): boolean {
|
||||
return ['localhost', '127.0.0.1', '::ffff:127.0.0.1', '::1'].includes(ipAdress);
|
||||
return localIpAddresses.includes(ipAdress);
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ import { contextTest as it, expect } from './config/browserTest';
|
||||
import type { LaunchOptions, ConnectOptions } from '../index';
|
||||
|
||||
it.skip(({ mode }) => mode !== 'default');
|
||||
it.fixme(({platform, browserName}) => platform === 'darwin' && browserName === 'webkit');
|
||||
|
||||
let targetTestServer: http.Server;
|
||||
let port!: number;
|
||||
|
Loading…
x
Reference in New Issue
Block a user