Closed Bug 1692124 Opened 4 years ago Closed 9 months ago

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

Categories

(Core :: Security, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 1 obsolete file)

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!

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.

Attachment #9290137 - Attachment description: WIP: Bug 1692124 - Proof of concept - guess userContextId for externally opened urls → WIP: Bug 1692124 - Guess the userContextId for externally opened URLs
Attachment #9290137 - Attachment description: WIP: Bug 1692124 - Guess the userContextId for externally opened URLs → Bug 1692124 - Guess the userContextId for externally opened URLs
Assignee: nobody → bgrinstead
Attachment #9290137 - Attachment description: Bug 1692124 - Guess the userContextId for externally opened URLs → Bug 1692124 - Guess the userContextId for externally opened URLs;r=mossop
Status: NEW → ASSIGNED
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9dff77935011
Guess the userContextId for externally opened URLs;r=mossop
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Regressions: 1858309
Attachment #9359451 - Flags: approval-mozilla-beta?
Attachment #9359451 - Attachment is obsolete: true
Attachment #9359451 - Flags: approval-mozilla-beta?
See Also: → 1874599
Regressions: 1874599
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: