How to view log of network requests across tabs in Firefox?

5,641

Solution 1

Open the Browser Console:

  1. from the menu: select "Browser Console" from the Web Developer submenu in the Firefox Menu (or Tools menu if you display the menu bar or are on macOS).
  2. from the keyboard: press Ctrl+Shift+J (or Cmd+Shift+J on a Mac).

In the top right select Requests:

Waterfox Browser Console

(I use Waterfox so the app icon is different, and I'm using the Dark theme, but otherwise it looks the same in Firefox.)

Solution 2

Disable new tabs

Navigate to about:config

browser.link.open_newwindow                      1
browser.link.open_newwindow.restriction          0
browser.link.open_newwindow.override.external    3

This way, whatever link you click that would ordinarily open a new tab will not, so you can see what it does in the network inspector. Then change these settings back to their defaults after.

Reference: https://support.mozilla.org/en-US/questions/1190923

Share:
5,641

Related videos on Youtube

RockPaperLz- Mask it or Casket
Author by

RockPaperLz- Mask it or Casket

Updated on September 18, 2022

Comments

  • RockPaperLz- Mask it or Casket
    RockPaperLz- Mask it or Casket over 1 year

    Within Firefox, I would like to see all network requests being made by Firefox.

    Using Firefox developer tools works great for this. Just open the developer tools, click on Network, and there you go.

    The problem happens when a site opens a link in a new tab. Because Firefox's developer tools seem to be attached to an individual tab, it only shows network requests for the original tab.

    How do you view a log of network requests across tabs in Firefox?


    EDIT: I thought that by opening devtools in their own window would allow this to work, but the network requests log still seems to be tied to the tab that originally opened devtools.

    • RockPaperLz- Mask it or Casket
      RockPaperLz- Mask it or Casket about 5 years
      @dsstorefile1 Thanks. Do you know if it's the same logger as in uBO? The uBO logger is okay, but it doesn't show network requests made by other extensions or by the browser itself. I'm not sure if it even shows ones made by websockets.
  • Justin Bailey
    Justin Bailey over 4 years
    There is a 4-year old bug to fix this issue as well bugzilla.mozilla.org/show_bug.cgi?id=1219917
  • Thayne
    Thayne about 4 years
    This bug is perhaps more relevant: bugzilla.mozilla.org/show_bug.cgi?id=1569859
  • mvreijn
    mvreijn over 3 years
    This also prevents the window from being closed by a script in the popup, since the script is no longer the window creator.
  • RockPaperLz- Mask it or Casket
    RockPaperLz- Mask it or Casket almost 3 years
    This is a great answer. Thank you so very much. This works because the Browser Console is independent of the browser's tabs. The UX is a little confusing because this is not quite the same as the "Console" tab that is present in the multi-function Firefox devtools UI.
  • baptx
    baptx over 2 years
    Unfortunately with this solution, we cannot right click on the request to copy as cURL to replay / edit the request. The other answer using about:config can do it.