Support for tab reuse or grouping based on the initiating app

RESOLVED INCOMPLETE

Status

defect
RESOLVED INCOMPLETE
6 years ago
2 years ago

People

(Reporter: jimm, Unassigned)

Tracking

Trunk
x86_64
Windows 8.1
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [feature] p=0)

Reporter

Description

6 years ago
For ux consideration, in 8.1 we can query the id of the app that fed us a url to open, and if we want, group or reuse a tab based on that id. 

// Implemented by Windows. When a Windows Store app launches 
// a browser via association launch, an object implementing the
// ILaunchSourceAppUserModelId interface is set on the site chain of
// the CoreApplication object of the browser. The browser may call
// QueryService(SID_LaunchSourceAppUserModelId, ...) on the site pointer
// to retrieve the interface from which the AppUserModelId of the app that
// launches the browser is available.
interface ILaunchSourceAppUserModelId : IUnknown
{
    HRESULT GetAppUserModelId([out, string] LPWSTR *launchingApp);
}

void GetSourceAppId(_In_ IUnknown *site)
{
    ComPtr<ILaunchSourceAppUserModelId> launchSourceAppId;
    HRESULT hr = IUnknown_QueryService(site, SID_LaunchSourceAppUserModelId, IID_PPV_ARGS(&launchSourceAppId));
    if (SUCCEEDED(hr))
    {
        PWSTR launchingApp;
        hr = launchSourceAppId->GetAppUserModelId(&launchingApp);
    }

    // ....This resource is later freed using CoTaskMemFree()
}
Reporter

Updated

6 years ago
Blocks: 956790
Blocks: metrobacklog
Whiteboard: [feature] p=0
Reporter

Comment 1

6 years ago
Note, we can also do this for the "Search experience", and we have access to referrer info for this as well.
Mass close of bugs in obsolete product https://bugzilla.mozilla.org/show_bug.cgi?id=1350354
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.