mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: Remove workaround for Firefox addIntercept contexts argument (#12159)
This commit is contained in:
parent
29637f2b8f
commit
b144935789
@ -185,11 +185,6 @@ export class BidiBrowserContext extends BrowserContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (const page of await this.pages()) {
|
|
||||||
// Workaround for Firefox
|
|
||||||
// TODO: Remove once https://bugzilla.mozilla.org/show_bug.cgi?id=1882260 is fixed
|
|
||||||
await page.setRequestInterception(false);
|
|
||||||
}
|
|
||||||
await this.userContext.remove();
|
await this.userContext.remove();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
debugError(error);
|
debugError(error);
|
||||||
|
@ -202,11 +202,6 @@ export class BidiPage extends Page {
|
|||||||
|
|
||||||
override async close(options?: {runBeforeUnload?: boolean}): Promise<void> {
|
override async close(options?: {runBeforeUnload?: boolean}): Promise<void> {
|
||||||
try {
|
try {
|
||||||
if (this.#interception) {
|
|
||||||
// Workaround for Firefox
|
|
||||||
// TODO: Remove once https://bugzilla.mozilla.org/show_bug.cgi?id=1882260 is fixed
|
|
||||||
await this.setRequestInterception(false);
|
|
||||||
}
|
|
||||||
await this.#frame.browsingContext.close(options?.runBeforeUnload);
|
await this.#frame.browsingContext.close(options?.runBeforeUnload);
|
||||||
} catch {
|
} catch {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user