Open Bug 1798557 Opened 2 years ago Updated 2 years ago

Multi-browser toolbox doesn't allow to switch back to browser chrome context after content context was selected with the iframe picker

Categories

(DevTools :: General, defect, P3)

Firefox 108
defect

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

(Depends on 1 open bug)

Details

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0 ID:20221031214452

In the following case I'm not able to re-select the browser context (chrome) for inspection. Even when selecting the entry in the dropdown, the content context is kept selected.

  1. Start Firefox with a new profile
  2. Open the Multi-browser toolbox
  3. Select the current tab via the picker
  4. Select the browser window (chrome) again
  5. Close the toolbox
  6. Reopen the toolbox and repeat step 3 and 4

As you will notice it's not possible to re-select the browser window (chrome) in step 6. Workaround is to select parent process only, and back to multiprocess. But after closing the toolbox and reopening it the problem will be back.

I assume there is some kind of cached data which prevents that?

Thanks for filing Henrik!

I can't reproduce the issue so far, maybe I am not following the steps correctly. Some questions to help narrow this down:

  • for step "4. Select the browser window (chrome) again", can you share how you are selecting the window exactly? Are you selecting "Top" in the console's context selector? Or are you selecting another element from the inspector in the BrowserToolbox? I tried both and it seems to work for me.
  • Does this happen with any content page, or only with a specific one?
  • Can you open a Browser Toolbox to debug the Browser Toolbox itself (using the regular Browser Toolbox keyboard shortcut), and see if there is any interesting error logged there?
Flags: needinfo?(hskupin)

(In reply to Julian Descottes [:jdescottes] from comment #1)

  • for step "4. Select the browser window (chrome) again", can you share how you are selecting the window exactly? Are you selecting "Top" in the console's context selector? Or are you selecting another element from the inspector in the BrowserToolbox? I tried both and it seems to work for me.

It's the 3-pane button on the very right side of the toolbar (right next to the error count and before the triple dots).

  • Does this happen with any content page, or only with a specific one?

It happens with any entry from that popup. Also for web extension processes etc.

  • Can you open a Browser Toolbox to debug the Browser Toolbox itself (using the regular Browser Toolbox keyboard shortcut), and see if there is any interesting error logged there?

No there is no entry in the console visible. Happy to add a breakpoint and check myself if you could tell me which code is run when I'm clicking an entry of the list.

Flags: needinfo?(hskupin)

Alright, so using the iframe picker. Indeed I can see similar issues when using it.
For completeness, is this also what you used to select the tab in step 3?

Summary: Multi-browser toolbox doesn't allow to switch back to browser chrome context after content context was selected → Multi-browser toolbox doesn't allow to switch back to browser chrome context after content context was selected with the iframe picker

(In reply to Julian Descottes [:jdescottes] from comment #3)

Alright, so using the iframe picker. Indeed I can see similar issues when using it.

Ok, if that's the name then it is indeed that one. I'll remember.

For completeness, is this also what you used to select the tab in step 3?

Yes, it's always this picker / popup.

Blocked on EFT enabled everywhere.

Severity: -- → S3
Depends on: 1741927
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.