Firefox: page.setRequestInterception throws protocol error.
See original GitHub issueSteps to reproduce
Using
await page.setRequestInterception(true)
throws the following error
Protocol error (Fetch.enable): Fetch.enable RemoteAgentError@chrome://remote/content/Error.jsm:25:5
UnknownMethodError@chrome://remote/content/Error.jsm:108:7
execute@chrome://remote/content/domains/DomainCache.jsm:96:13
Use Case
Right now, cookies don’t work correctly in puppeteer due to missing headers https://github.com/puppeteer/puppeteer/issues/4918, so it’s impossible to test an application that uses authentication. In order to make it work, I tried using this hack https://github.com/puppeteer/puppeteer/issues/4918#issuecomment-663478790 and it worked in Chrome but doesn’t work in firefox.
Tell us about your environment:
- Puppeteer version: 5.2.1
- Platform / OS version: Linux
- URLs (if applicable):
- Node.js version: 12.16.2
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:8 (2 by maintainers)
Top Results From Across the Web
setRequestInterception support for Firefox in Puppeteer
This is how I launch the browser (I can see Firefox window, and all other tests pass): browser = await puppeteer.launch({ product: "firefox", ......
Read more >mozilla-central: changeset 534188 ...
detachFrame(page, 'frame1'); - let error = null; -``` - -[Puppeteer ... "Firefox Browser Page ElementHandle.click should throw for detached ...
Read more >1552326 - Implement Network.setRequestInterception
The core implementation for CDP support. Please file domain specific issues and requests under the appropriate CDP-prefixed Remote Protocol component. See Open ...
Read more >mozilla-central: changeset 583207 ...
setRequestInterception should throw if interception is not enabled (requestinterception.spec.ts)": [ "PASS" ], "request interception Page.
Read more >try - Mercurial - Mozilla
Events.error should throw when page crashes (page.spec.ts)": [ "TIMEOUT" ], "Page Page ... of relying on the non-standard DevTools Protocol used by Chrome)....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@stale please leave it as confirmed. It’s being tracked here: https://bugzilla.mozilla.org/show_bug.cgi?id=1587857
EDIT: should I make a bot that adds a comment here every 29 days ?
Same Issue
ProtocolError: Protocol error (Fetch.enable): Fetch.enable RemoteAgentError@chrome://remote/content/cdp/Error.sys.mjs:20:5