-
Notifications
You must be signed in to change notification settings - Fork 81
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
Block Element doesn't appear in the context menu of a tab under specific circumstances #151
Comments
Also happens when you open a tab by middle click. STR
|
Related issue: - uBlockOrigin/uBlock-issues#151 I have been unsuccessful fixing the above issue, but I will keep the changes made in the process of trying to fix it.
Related issue: - uBlockOrigin/uBlock-issues#151 Related feedback: - uBlockOrigin/uBlock-issues#680 (comment)
After opening a link in a new tab, be it via the context menu or via middle-clicking, uBO's context-menu item will never appear if the connection is interrupted. Even by uBO itself. STR:
ubo-context-menu-bug-2022-07-17_13.45.47.mp4This is a new browser profile with uBO just installed and updated. The missing context menu also occurs on lagging websites. I'm guessing before the initial response from the website reaches the browser. So immediately after opening a new tab on any website - normally not an issue since that'll usually last only under/about 1s, but if a website/server is lagging, it can take up to a minute. Or more, if the connection fails. But whether the connection is lagging or blocked by uBO, the issue is probably the same. ~~ The only difference between them I've noticed is that if I use picker via the popup and close it, the context menu item will come back on Chrome, while it won't on FF. The main problem with the disappearing item when the connection in the new tab is interrupted remains in both. |
@u-RraaLL cannot reproduce on Firefox 127, can you now ? |
Seems to be fixed now. On FF and Chrome both. |
Context menu entry do not appear when iframe src = STR --
Sometimes contextmenu entry may appear if an empty iframe has not loaded... |
That's already another separate issue, a duplicate of: |
I don't see such thing. |
My bad. Hide placeholders of blocked elements setting was disabled on my end. |
Still works fine in Chromium, but not in Firefox. I stepped through the code and uBO does tell Firefox to add a "Block element..." item to the menu, but the browser is not doing it, so this appears to be a Firefox-specific quirk. |
Yes, that is true, do you intend to address that with a fix ? |
Not really, it's Firefox not enforcing uBO's context menu entries, I currently don't have the time to track down the issue in Firefox's code base for such a small issue. |
Are you sure that it's Firefox specifc, because the issue can be reproduced on Chromium too: in browser inspector pane, by changing manually the iframe's src attribute to: |
The For the |
src becomes |
The screenshot I posted is the result of following your steps, using Firefox 129.0. I don't see |
Very well. The proposed change to |
Context menu appears in Besides some things I noticed in uBO 1.46.0: A) Even despite a double context menu appears after click inside the iframe B) After clicking in iframe's border/corner, where only a single context menu appear C) Now, what is also interesting: VIDEO - the sequence of actions in video is the following:
D) Now: |
@gorhill |
Moreover, unlike in the previous case from my last comment, this time, on
|
Please provide browser name for when you state it works/doesn't works. |
(As for me) The same result for both Firefox/Chromium. (that's why I didn't mention browser name, but I understand you just want to make sure). |
When I change this line to:
It solves the issue in Chromium. It does not solve the issue in Firefox. To solve the issue in Firefox, I need to completely remove the line, but then this brings back this issue -- which I argue is a Firefox issue, but nevertheless I do not want to bring it back. The workaround is trivial : use the Enter element picker mode from the popup panel or use assigned keyboard shortcut if any to enter element picker mode. Since I can't fix the issue in Firefox, I consider it's not worth to make any change and advise to use the workaround. |
Will using |
|
I don't suppose |
Doesn't work either. Besides, AdGuard's and AdBlocker Ultimate's context menus work on |
Prerequisites
Description
Sometimes if you right click and accidently click open a new Window instead of a new tab for a link and if you happen to quickly close that new Window and thereafter right click to open the context menu on the already opened tab, Block Element will not appear, so this is more of a visual issue under the above mentioned circumstances.
A specific URL where the issue occurs
https://www.google.com/
Steps to Reproduce
google.com
, right click to open the context menu and notice Block Element is missing.Expected behavior:
Block Element would appear when context menu of the tab is opened.
Actual behavior:
Block Element is missing from the context menu.
Supporting Evidence
Chrome 70
https://i.gyazo.com/27e5e60c750d0794ab1ff232ec94d57a.mp4
Firefox 63
https://i.gyazo.com/b3cc16d203426f59e2e718a8e0837b2b.mp4
Your environment
PS
It was difficult to reproduce on Firefox, so it may take you some tries. I have attached videos as supporting evidence so as to provide some visual aide in reproduction.
The text was updated successfully, but these errors were encountered: