MicrosoftEdge-Extensions icon indicating copy to clipboard operation
MicrosoftEdge-Extensions copied to clipboard

Tabs API Incomplete Behavior on Right Side of Split Screen

Open kurrx opened this issue 9 months ago • 3 comments

  1. Tabs API events (e.g., onCreated, onUpdated) are not fired for tabs opened on the right side of a split screen.

  2. Tabs on the right side of the split are not returned when using:

  • chrome.tabs.getAllInWindow(_WINDOW_ID_HERE_, (tabs) => console.log(tabs))
  • chrome.tabs.query({}, (tabs) => console.log(tabs)) This appears to be a duplicate of issue #104, but for some reason this issue still reproducible.

This behavior causes issues with extensions that rely on the Tabs API events. For example:

  • AdGuard relies on events like onCreated: https://github.com/AdguardTeam/AdguardBrowserExtension/issues/2832
  • A similar problem occurs in uBlock Origin: https://github.com/uBlockOrigin/uBlock-issues/issues/2945

Tested on:

  • Browser: Microsoft Edge 135.0.3179.54 (Official build) (arm64)
  • Chromium version: 135.0.7049.42
  • OS: macOS 15.4 (24E248)
  • JavaScript engine: V8 13.5.21.5
  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0

kurrx avatar Apr 10 '25 08:04 kurrx

Thanks for reporting this. Issues with Split Screen have been known by our team, and we are working on the right approach to address these. The technical challenge is to identify the "primary/focus" tab in Split Screen mode, which is unique to Edge.

mukul-p avatar Apr 10 '25 16:04 mukul-p

Hey there! Also wanted to supplement this issue with our use case: We store info about tabs whenever they've created / updated / deleted via Tabs API events to be able to show list of tabs in our Filtering Log. We still can do it via webRequest / webNavigation APIs (onBeforeRequest, onBeforeNavigation, etc.) to track if tab is created / updated, however, the problem is that we can’t determine whether tabs were removed later on.

kurrx avatar Apr 14 '25 12:04 kurrx

Hi @kurrx

I am Rahul from the Microsoft Edge Extensions Developer Support team.

The internal teams have confirmed it’s a bug affecting all tabs APIs due to the split screen feature. Since the fix will require broader changes across multiple APIs, we are currently evaluating the best approach. I’ll keep you posted as soon as I have further updates. Let me know if you have any additional context that might help.

Rahul-Bauri avatar Jul 28 '25 07:07 Rahul-Bauri