MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Feature]: [Extensions] Tab ID Mapping

Open
#3,854 1 comment 0 reactions 2 assignees View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Describe the feature/enhancement you need

Currently there is no easy way we have found to map the tab ids returned by chrome.tabs.query and similar chrome extension APIs to WebView2 instances in our native app tabs. That is, we have no way to know what tab is being referenced in our app when chrome.tabs.query returns "tabId = 1". A way to either find the current tab id of a WebVIew2 instance, or a way to provide the tab ID as the webview2 is created (or some other mechanism to map chromium internal tab ids with our app tab ids) would be extremely useful.

The scenario/use case where you would use this feature

For any situation where native and extension code interops and the context is tabs (e.g. reimplementing the behaviour of chrome.tabs.query), the extension and native code needs to agree which tab is which - hence there is a need for some way to map from native tabs/webview2 instances to the tab ids as seen by extensions.

How important is this request to you?

Critical. My app's basic functions wouldn't work without it.

Suggested implementation

No response

What does your app do? Is there a pending deadline for this request?

No response

AB#46892713

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.