Open shapiro125 opened 5 years ago
Thank you for the report!
It looks like we have to reset the pointer-events
property on our replacement iframe, and then figure out how to ensure our widget takes priority over anything else on the page. Simply setting z-index
on our iframe to the maximum value does not seem to be enough.
Or, figure out when the video is a background autoplay video and treat it completely differently?
More background video examples:
Here is another case, although probably a separate issue: https://midcurrent.com/videos/how-to-tie-the-walts-worm/ (powered by https://www.mediaelementjs.com/)
And another: https://gyazo.com/
We could avoid replacing background videos by updating the selector for Vimeo:
--- a/src/data/socialwidgets.json
+++ b/src/data/socialwidgets.json
@@ -197,8 +197,8 @@
"Vimeo": {
"domain": "player.vimeo.com",
"buttonSelectors": [
- "iframe[src^='https://player.vimeo.com/video/']",
- "iframe[src^='//player.vimeo.com/video/']"
+ "iframe[src^='https://player.vimeo.com/video/']:not([src*='background=1'])",
+ "iframe[src^='//player.vimeo.com/video/']:not([src*='background=1'])"
],
"replacementButton": {
"details": "",
The above tweak might be worth releasing just by itself as many background videos either have a fallback image that our replacement unhelpfully covers, or are part of the page layout in a way that our replacement widget makes worse.
This could then be improved upon by detecting when we have one or more backgrounded Vimeo videos on the page and providing some sort of floating "activate Vimeo" in-page control.
This should (mostly) be fixed in Privacy Badger version 2019.2.19. The Vimeo replacement now tries to ignore background videos, and since Vimeo is still on the yellowlist, background videos work unimpeded.
However, we plan on removing Vimeo from the yellowlist in order to fix #188. Once we remove Vimeo, background Vimeo videos will get fully blocked and won't be shown anywhere. So this issue will become more relevant then again, and we will want to come up with a solution at some point, perhaps a special floating widget that works well with background videos.
Found another instance of this happening in the latest version: https://brave.com/about/#
Vimeo removed from the yellowlist in 4c32192dd47cf5de128a9fd963b45729ed15db77 Update: Restored in 3e5833485529591bc20838393bead0f74b5e72df
@ghostwords I think none of the mentioned background videos are failing the mentioned sites even with "player.vimeo.com" in the yellowlist. Perhaps somebody else can confirm the same.
@ghostwords I think none of the mentioned background videos are failing the mentioned sites even with "player.vimeo.com" in the yellowlist. Perhaps somebody else can confirm the same.
The yellowlist and widget replacement are exclusive (see #2267 for explanation).
You can move the slider for vimeo.com
to "red" and reload a page with an embedded Vimeo video on it to see our Vimeo placeholder in action. However, our widget replacement system doesn't yet handle background videos well.
My comment above in https://github.com/EFForg/privacybadger/issues/2281#issuecomment-465355408 summarizes where we still are with Vimeo and blocking and Vimeo background videos.
What is your browser and browser version?
Firefox 65 / Chrome 72
What is broken and where?
When a site uses Vimeo as a background autoplay video, the new widget introduced in 2019.1.30 replaces the video and prevents the ability to play it all.
Some examples can be seen at:
What is the "culprit" domain?
player.vimeo.com is yellow and "replace social widgets" is enabled
What is your debug output for this domain?