fix(webkit): make click work with cross-process _blank target (#2083)
This commit is contained in:
Родитель
f2fcb2b017
Коммит
03ca297890
|
@ -257,8 +257,8 @@ export class WKPage implements PageDelegate {
|
|||
});
|
||||
assert(targetInfo.type === 'page', 'Only page targets are expected in WebKit, received: ' + targetInfo.type);
|
||||
|
||||
if (!this._initializedPage) {
|
||||
assert(!targetInfo.isProvisional);
|
||||
if (!targetInfo.isProvisional) {
|
||||
assert(!this._initializedPage);
|
||||
let pageOrError: Page | Error;
|
||||
try {
|
||||
this._setSession(session);
|
||||
|
|
|
@ -994,7 +994,7 @@ describe('Click navigation', function() {
|
|||
await page.goto(server.EMPTY_PAGE);
|
||||
await page.click('"Click me"');
|
||||
});
|
||||
it.fail(WEBKIT)('should work with cross-process _blank target', async({page, server}) => {
|
||||
it('should work with cross-process _blank target', async({page, server}) => {
|
||||
server.setRoute('/empty.html', (req, res) => {
|
||||
res.end(`<a href="${server.CROSS_PROCESS_PREFIX}/empty.html" target="_blank">Click me</a>`);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче