-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension Doesn't Display Correct Status in Edge (split screen) #2945
Comments
|
Yeah, looks like Microsoft didn't think it through when releasing the feature: microsoft/MicrosoftEdge-Extensions#102 |
I think I figured out a work around. Using the active tab and window, you should check the results of If true, then you're using the main window (or left split tab), but if false, you'll want to check each "inactive" tabs in the current window where Then, you should be able to find the split tab, right? |
I did test part of my theory with |
And if this works, the proposed implementation shouldn't cause any issues once Edge does fix detection of the split tab (since querying the active tab and checking |
With a breakpoint at https://github.com/gorhill/uBlock/blob/1.55.0/platform/common/vapi-background.js#L650, the focused pane is always the one on the left even after I click on the right pane. |
I see what you mean, but is something more like this possible, where you check all inactive ( vAPI.tabs.query({ active: false, windowId }).then(tabs => {
if ( tabs.length === 0 ) { return; }
const tab = tabs[0];
chrome.tabs.executeScript(tab.id, {
code: 'document.hasFocus()'
}, function(hasFocus) {
if (hasFocus) {
this.onActivated({ tabId: tab.id, windowId: tab.windowId });
}
});
}); |
Any news on this? I'd like to split the browser programmatically from an extension, the same as the little split window icon in the menu area. Thanks, Hans |
Prerequisites
I tried to reproduce the issue when...
Description
When using the split screen functionality built into Edge, the staus of uBlock Origin only shows for the main page (left side), when switching to the second page in the split (right side), the status of uBlock Origin remains unchanged.
However, I can confirm that still appears to block ads, even when the status is appearing incorrectly.
Note: I'm NOT referring to the apps/custom sites toolbar on the right side of the browser.
A specific URL where the issue occurs.
https://youtu.be/dQw4w9WgXcQ
Steps to Reproduce
Expected behavior
The status of uBlock Origin should reflect the currently active page when using split screen mode.
Actual behavior
Status of uBlock Origin only shows the status for the main page, ignoring the split screen.
Configuration
The text was updated successfully, but these errors were encountered: