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(chromium): support main resource request interception for popups #1449

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

yury-s
Copy link
Member

@yury-s yury-s commented Mar 20, 2020

No description provided.

@yury-s yury-s force-pushed the main-request-interception branch from ec30e95 to 8ac3c1d Compare March 20, 2020 22:55
// Main resource request for the page is being intercepted so the Frame is not created
// yet. Precreate it here for the purposes of request interception. It will be updated
// later as soon as the request contnues and we receive frame tree from the page.
frame = this._page._frameManager.frameAttached(event.frameId, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

I am a bit worried about this (user can call request.frame().url() and be surprised, or even try to evaluate in it), but oh well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's see, if it becomes a problem we can put additional protection to ensure the page will throw meaningful errors.

@yury-s yury-s merged commit bae56ea into microsoft:master Mar 20, 2020
@yury-s yury-s deleted the main-request-interception branch March 20, 2020 23:13
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.

3 participants