mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(webkit): do not fire FrameNavigated when receive resource tree (#432)
This commit is contained in:
parent
ff18872fda
commit
b6f1b17906
@ -119,9 +119,9 @@ export class FrameManager {
|
|||||||
if (!initial) {
|
if (!initial) {
|
||||||
for (const watcher of this._lifecycleWatchers)
|
for (const watcher of this._lifecycleWatchers)
|
||||||
watcher._onCommittedNewDocumentNavigation(frame);
|
watcher._onCommittedNewDocumentNavigation(frame);
|
||||||
}
|
|
||||||
this._page.emit(Events.Page.FrameNavigated, frame);
|
this._page.emit(Events.Page.FrameNavigated, frame);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
frameCommittedSameDocumentNavigation(frameId: string, url: string) {
|
frameCommittedSameDocumentNavigation(frameId: string, url: string) {
|
||||||
const frame = this._frames.get(frameId);
|
const frame = this._frames.get(frameId);
|
||||||
|
|||||||
@ -97,7 +97,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
|
|||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
expect(await frameEvaluation).toBe(42);
|
expect(await frameEvaluation).toBe(42);
|
||||||
});
|
});
|
||||||
it.skip(WEBKIT)('should work right after a cross-origin navigation', async({page, server}) => {
|
it('should work right after a cross-origin navigation', async({page, server}) => {
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
let frameEvaluation = null;
|
let frameEvaluation = null;
|
||||||
page.on('framenavigated', async frame => {
|
page.on('framenavigated', async frame => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user