-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: move offline/cache/interception switches to BrowserContext #748
Conversation
@@ -91,17 +97,19 @@ export class CRNetworkManager { | |||
} | |||
|
|||
async setCacheEnabled(enabled: boolean) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have a parameter which is now ignored?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it is declared in the delegate interface. 2 other browsers use that param. We can update that in a separate change.
@@ -90,6 +90,8 @@ export class FFPage implements PageDelegate { | |||
promises.push(this._session.send('Page.setJavascriptEnabled', { enabled: false })); | |||
if (options.userAgent) | |||
promises.push(this._session.send('Page.setUserAgent', { userAgent: options.userAgent })); | |||
if (options.cacheEnabled === false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this is missing request interception changes in firefox.
return !!this._page.browserContext()._options.interceptNetwork; | ||
} | ||
|
||
private async _updateProtocolRequestInterception() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This stuff is too complicated 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is, let me change that in a follow-up.
…xt (microsoft#748)" This reverts commit 6faf74b.
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
No description provided.