Open Bug 1917251 Opened 6 months ago Updated 6 months ago

Open new tab\window links in responsive design mode

Categories

(DevTools :: Responsive Design Mode, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

Details

Originaly reported here:
https://connect.mozilla.org/t5/ideas/open-new-tab-window-links-in-responsive-design-mode/idc-p/66976/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufE0wUEtKQjNUNFNZSzUxfDY2OTc2fFNVQlNDUklQVElPTlN8aEs#M38141

When in in responsive design mode clicking a link that opens in new tab (or mouse wheel clicking a link),
opens new tab\window in normal mode instead of responsive design mode.
It would be convenient if opening link in new tab\window, will save previous tab viewing status like responsive design mode, web developer tools etc.


Currently, when using Responsive Design Mode (RDM) in Firefox Developer Tools, if a user opens a link in a new tab or window, the new tab defaults to normal browsing mode, losing any active development settings such as RDM or open Developer Tools. It would be beneficial if new tabs or windows opened from a tab in RDM inherited the same settings including auto opening the DevTools Toolbox.

Thanks for filing, settings are already saved, so we would mostly need to open RDM automatically when clicking on a link from RDM. Might be similar approach to prototype to move devtools to new popups from :ochameau.

Type: defect → enhancement
Priority: -- → P3

Maybe what was used for Bug 1569859 could help us here

The popup trick can't be applied here as it relies on the following snippet:
https://searchfox.org/mozilla-central/rev/3b59c739df66574d94022a684596845cd05e7c65/devtools/client/framework/toolbox.js#849-859
It would require to have a toolbox and/or at least a TargetCommand which would create targets for both tabs, which isn't something we want to do here.

It sounds like we would have to interact with gBrowser to listen to tab opening or hack into browser/ codebase to trigger devtools on tab opening.

You need to log in before you can comment on or make changes to this bug.