Privacybadger: Gallery images on Facebook are tiny with PrivacyBadger enabled on both Chrome and Firefox

Created on 10 Nov 2018  路  27Comments  路  Source: EFForg/privacybadger

Greetings! For some reason, when you click a picture in the gallery under "Messenger" on Facebook, the pictures are always really small. This happens on both the latest Firefox and the latest Chrome, with the latest PrivacyBadger on both.

How to reproduce:

  1. Go on here https://www.facebook.com/messages/t
  2. Click a chat with an image you want to view
  3. Click the image in the bottom right corner, where all Facebook images in that chat are stored
  4. The image should be this "big":
    image
    Note how it's opened in a separate tab instead of inside the Messenger tab
  5. Deactivate PrivacyBadger on Facebook
  6. Click the same image again
  7. It's now this big:
    image
    Note how it's opened in the same tab as Messenger. Just on top of the chat.
broken site bug first-party

Most helpful comment

We should have a fix released next week: #2307.

All 27 comments

Hello and thank you for the bug report! I wonder if this is the same kind of issue as https://github.com/EFForg/privacybadger/issues/2181#issuecomment-427103320, where we remove too much from the link element while removing tracking, although maybe not, need to take a look.

@bcyphers Could you take a look please?

@ghostwords @bcyphers Any news on this? It's been 3 months now. Facebook is a major website and this affects everyone using both PrivacyBadger and Facebook, and I'm getting pretty sick of it :(

We should have a fix released next week: #2307.

This should be fixed as of today's Privacy Badger update (version 2019.2.19).

@ghostwords Unless I'm missing something, this is still happening on Chrome.

Version info:
image

What the pictures look like when I click them:
image

What the pictures should look like when I click them:
image

@bcyphers Could you take a look please?

Does this happen on Firefox for Android only, or is it also an issue on the desktop?

@ghostwords I'm using Chrome on Windows 10

I see, I got confused because those screenshots are from Android.

@ghostwords Sorry, I should have been more clear :( I found the pictures on Reddit and sent them to someone

Sorry for the delay on this, I'll take a look this week.

No problem! The fact that you guys are even responding to this speaks wonders for how great this project is.

I'm having some trouble duplicating this. Can you share your chrome version number?

Version 73.0.3683.103

Do you want me to try it on a fresh PortableApp of Firefox or Chrome or something? I disabled all other Chrome extensions and it's still happening.

Edit: Here's how to do it
Go here: https://www.facebook.com/messages/t/
A chat should open, otherwise, click one.
Press a picture in the bottom right corner
The picture should be small

Okay, I'm still having trouble replicating it on Ubuntu (work computer), but found something. If I left-click on a picture, the picture displays like normal (in the gallery view, full size). However, if I middle-click on the photo, or right-click -> "open in new tab," the photo opens in a new tab in tiny mode.

I can test this on Windows when I get home tonight.

Also, it seems to more consistently happen if you scroll up in a conversation, rather than sending new pictures and clicking them.

Is this a non-deterministic thing? If so, how often does it happen? are there circumstances where it never or always happens?

I deleted that comment because I couldn't reproduce that issue anymore.

However, the issue with the Shared Photos are still very reproducable on both MacOS and Windows 10.

Just click any sent message:
Ska虉rmavbild 2019-04-12 kl  02 24 16

Okay, now I'm using Chrome 73.0.3683.103 on Windows 10. Still not seeing the issue when I left-click a picture in the bottom right corner, with Privacy Badger enabled. Also no issue when I click on an in-line image in the message history after scrolling up for a while. Everything works okay in Firefox as well.

Edit: Ah okay, just saw your comment above. I'll check on that too.

Ugh, still not seeing anything. I've tried clicking on photos uploaded by both me and others in the chat, both recent and old, and everything opens up in gallery view properly. Would you mind trying in an instance of Chrome with a fresh user profile?

And just to check, you're using the latest version of PB (2019.2.19)?

I'm using 2019.2.19, yes.

I'm trying to reproduce it now. It was reproducable 100% of the time literally 20 minutes ago and now it's working as intended.

What the fuck :(

Will try to figure out what's causing it later. Maybe it's something that starts happening if you're on Facebook Messenger a really long time? I tend to have it open practically all day.

I'll try to figure it out tomorrow. I live in Europe so it's bedtime now :(

okay! let me know here if you figure out how to repro. Definitely know the pain of the Heisenbug.

@bcyphers
I've managed to figure it out!

You have to set the Facebook language to Swedish (Svenska) and it will start happening immediately afterwards. I changed my language to English for the picture which is why I didn't realize this sooner.

Edit: German is also affected.

@bcyphers Any news on this? Just wondering, because I managed to figure out how to do it. Just switch to (seemingly) any non-English language on Facebook and it starts happening automagically.

@bcyphers @ghostwords this is still happening with your language set to Swedish :(

Any chance for some love?

I'll take a look next week.

OK, I see what's going on. @bcyphers We thought we fixed this issue with #2307, and we did, for Facebook locales where the ARIA label for photos is set to "photo". Apparently, this label is localized. What! Yes. For example, aria-label is set to "Foto" auf Deutsch.

That makes sense, aria attributes are used for accessibility tools like screen readers, so they would need to be localized.

You may be able to whitelist a._3m31 instead, or a._3m31[aria-label] to be a little more explicit if you wanted. It's possible that class could change frequently though, but it's also possible it won't, and I don't see any other options that would be any more reliable.

Was this page helpful?
0 / 5 - 0 ratings