Skip to content
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

Cannot zap, access or block elements in Microsoft Teams #2646

Closed
8 tasks done
mprz1024 opened this issue May 9, 2023 · 6 comments
Closed
8 tasks done

Cannot zap, access or block elements in Microsoft Teams #2646

mprz1024 opened this issue May 9, 2023 · 6 comments
Labels
invalid not a uBlock issue

Comments

@mprz1024
Copy link

mprz1024 commented May 9, 2023

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

When using https://teams.microsoft.com/ in Chrome, whether in a tab or as a Chrome Progressive Web App (PWA), uBlock Origin can't access elements when trying to pick/zap/create rules. It seems to get stuck in some sort of IFRAME that has the content and it cannot see anything inside besides that, so only buttons on the left and this whole panel can be addressed, and I cannot block annoyances from this app.

I can see the elements if I use F12, and even if I type in the rule manually (such as block class whatever) into the picker, it doesn't delete the element on preview or create, so I guess it really can't access what's in there. Screenshot:

Screenshot 20230509_170807

A specific URL where the issue occurs.

https://teams.microsoft.com/

Steps to Reproduce

  1. Go to https://teams.microsoft.com/. You may need a Teams account.
  2. Try to create a rule (I use Alt+X), and move the mouse around. Select anything in the centre of the screen e.g. during a meeting or chat, and it'll come up as in the screenshot, without actually selecting the element.
  3. Optional: Even if you override it with the element class manually, it won't be able to kill the element.

Expected behavior

uBlock Origin should work in https://teams.microsoft.com/ as in any other website

Actual behavior

It cannot access most elements in https://teams.microsoft.com/

uBO version

1.49.2

Browser name and version

Google Chrome 112

Operating System and version

Debian GNU/Linux 11

@gorhill
Copy link
Member

gorhill commented May 9, 2023

I won't be able to investigate since this requires an account. Probably a shadow root issue, duplicate of #2346. I will let you confirm it's the case, and if no feedback I will close as duplicate.

@gorhill gorhill added the feedback needed need more feedback from the issue submitter label May 9, 2023
@gorhill
Copy link
Member

gorhill commented May 9, 2023

By the way, did you try right-clicking over the element you want to filter, and select "Block in frame..."?

@krystian3w
Copy link

krystian3w commented May 10, 2023

Reporter can't right click on iframed chat box, MS has blocked the action of clicking above the field for adding a new message - so those willing to do so have to click very close to the field for writing a new message to the use context menu and the "block item in frame" option to work; so I opened picker in iframe:

image

In chat box I don't see usage shadow root/shadow DOM yet.

There are two outputs:

  • close as invalid not a uBlock issue + filterlist a filter list issue

  • move between repositories and let the will of heaven happen whether someone wants to test how set-constant or aeld will work to unlock right click action without break Teams - when the unprotected space through which to enter the iframe is too small for people with mobility disabilities:

    image

@gorhill
Copy link
Member

gorhill commented May 10, 2023

Thanks for investigating @krystian3w.

So I will close as invalid, since it was a matter of Block in frame.... The fact that the site prevent right-click on some element is not something to be solved here, and this should be a browser issue, for example Firefox allows to bypass sites eating right-clicks.

@gorhill gorhill closed this as completed May 10, 2023
@gorhill gorhill added invalid not a uBlock issue and removed feedback needed need more feedback from the issue submitter labels May 10, 2023
@krystian3w
Copy link

A link to this Firefox novelty would be rather useful (search results are overflowing with methods like deactivating all JS which will whisk away Teams loading), if this is a separate WebExtension rather uninteresting to me, it could be ported for Chrome (as those already published are failing).
I somehow missed the news about this and would further recommend just using a specific WebExtension, *.user.js file or analyzing if a properly written set-constant, aeld or remove-attr (in correct world) works for this.

And not to be outdone, there is an option in Chrome devtools to remove listeners - as someone has determined which MS has blocked clicking on 3/4 of the frame area without save as aeld or improved aeld if listener is invisible/unaddressable now.

@gorhill
Copy link
Member

gorhill commented May 10, 2023

A link to this Firefox novelty would be rather useful

Shift right-click

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid not a uBlock issue
Projects
None yet
Development

No branches or pull requests

3 participants