Open Bug 1692124 Opened 4 years ago Updated 1 year ago

Links opened from external applications (like an email client) should open in a best-guess container

Categories

(Core :: Security, enhancement)

enhancement

Tracking

()

People

(Reporter: bgrins, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

If I have a "work" container that has a bunch of docs and bug tabs, and I click a URL from an email or slack client to a new doc or bug, I would like it to open in the "work" container so I don't get sent to a login page.

I can't think of a way for this to always be right, but we could make a best guess on behalf of the user. Maybe whichever container has the most tabs from the same host, or whichever container the current selected tab belongs to, or something.

The external opening is handled in https://searchfox.org/mozilla-central/source/browser/components/BrowserContentHandler.jsm and ultimately makes it's way to getContentWindowOrOpenURI at https://searchfox.org/mozilla-central/source/browser/base/content/browser.js#6013.

Attached image Ta-da! (deleted) —

Drum roll …

This isn't intended to land, but it shows a demo of opening the right URL based on
the userContextId of currently opened tabs with the same host.

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

Attachment

General

Creator:
Created:
Updated:
Size: