JoakimCh / grok-archiver

Just an archiver for X's Grok image generator.
MIT License
0 stars 1 forks source link

Fetch.enable doesn't catch everything before opening the DevTools panel #1

Open JoakimCh opened 2 months ago

JoakimCh commented 2 months ago

It's an extremely weird issue which seems to be a bug in Chromium itself.

It happens especially for: {urlPattern: '*add_response.json', requestStage: 'Response'}.

But it's never a problem after I open the DevTools panel.

ChatGPT has some interesting suspicion about it:

Why This Happens: Optimization by Chrome: Chrome is optimized to reduce overhead when DevTools are not opened. When DevTools is closed, some network information may not be available or collected in detail since Chrome does not run full network instrumentation unless needed (i.e., when DevTools is active).

DevTools Impact: When you open DevTools, the browser begins collecting and exposing detailed network data that otherwise wouldn’t be captured. This is likely why you're seeing all requests once DevTools is open—because enabling DevTools activates more detailed logging and monitoring capabilities.

I'm trying to find a workaround. Using "Network.enable" didn't help.

JoakimCh commented 2 months ago

I should write a reproducible test for this and report it here: https://issues.chromium.org/issues But it should not require any login or Grok access.