Skip to content
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

fix(bidi): set initial frame url from creation event #34198

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented Jan 2, 2025

No description provided.

@@ -164,6 +167,7 @@ export class BidiBrowser extends Browser {
const session = this._connection.createMainFrameBrowsingContextSession(event.context);
const opener = event.originalOpener && this._bidiPages.get(event.originalOpener);
const page = new BidiPage(context, session, opener || null);
page._page.mainFrame()._url = event.url;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably call

page._page._frameManager.frameCommittedNewDocumentNavigation(event.context, event.url, '', '', true);
page._page._frameManager.frameLifecycleEvent(event.context, 'domcontentloaded');
page._page._frameManager.frameLifecycleEvent(event.context, 'load');

Copy link
Contributor

github-actions bot commented Jan 2, 2025

Test results for "tests 1"

3 flaky ⚠️ [firefox-page] › page/page-evaluate.spec.ts:403:3 › should throw for too deep reference chain @firefox-ubuntu-22.04-node18
⚠️ [webkit-library] › library/browsercontext-clearcookies.spec.ts:146:3 › should remove cookies by name and domain @webkit-ubuntu-22.04-node18
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @windows-latest-node18-1

37502 passed, 650 skipped
✔️✔️✔️

Merge workflow run.

@yury-s yury-s merged commit dca95ba into microsoft:main Jan 3, 2025
29 of 31 checks passed
@yury-s yury-s deleted the bidi-frame-initial-url branch January 3, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants