webcompat / web-bugs

A place to report bugs on websites.
https://webcompat.com
Mozilla Public License 2.0
736 stars 63 forks source link

www.facebook.com - cannot enable firefox push notifications #117877

Open newsjunkie247 opened 1 year ago

newsjunkie247 commented 1 year ago

URL: https://www.facebook.com/settings?tab=notifications

Browser / Version: Firefox 108.0 Operating System: Windows 10 Tested Another Browser: Yes Chrome

Problem type: Something else Description: Diffficulty enabling notifications Steps to Reproduce: Have difficulty enabling web notifications. Worked in Chrome and after I changed my useragent to Chrome the the setting remained enabled when I changed it back.

View the screenshot Screenshot
Browser Configuration
  • gfx.webrender.all: false
  • gfx.webrender.blob-images: true
  • gfx.webrender.enabled: false
  • image.mem.shared: true
  • buildID: 20230116191212
  • channel: release
  • hasTouchScreen: false
  • mixed active content blocked: false
  • mixed passive content blocked: false
  • tracking content blocked: false

View console log messages

From webcompat.com with ❤️

sv-calin commented 1 year ago

Have you made any configurations in about:config and the notifications for facebook no longer show up? If so please try on a new profile and give us update.

Suggestions: • Update the browser to the latest version • Clear cache/data/cookies, disable Ad-blocker (if available), or use a clean profile and check again • If there are any changes made to the default settings of the browser (e.g. in about:config), please revert to the default settings

How to create a new profile:

  1. Open a new tab
  2. Type in the address bar "about:profiles"
  3. Press "Enter"
  4. Click on "Create a New Profile"
  5. Click "Next"
  6. Name your profile
  7. Click "Finish"
  8. Head to your newly created profile
  9. Click "Launch profile in new browser"

[qa_06/2023]

sv-calin commented 1 year ago

I've made some investigations and seems like the pop-up to allow notifications doesn't show up when trying to enable the notifications from the facebook settings, even with pop-ups enabled from the browser settings.

https://user-images.githubusercontent.com/107036654/216990084-0332e753-e93b-4614-be0b-d354a67714d5.mp4

Tested on: • Browser / Version: Firefox Nightly 111.0a1 (2023-02-05) / Firefox Release 109.0.1 / Chrome 109.0.5414.75 • Operating System: Windows 10

Notes:

  1. Reproducible on both Firefox Release and Nightly regardless of the ETP status
  2. Not reproducible on Chrome

Moving to Needsdiagnosis.

[inv_06/2023]

RobDean69 commented 1 year ago

I have the same issue, using latest firefox via flatpak.

sefernet commented 1 year ago

I opened de console... When switch "push notification" , I get nothing


Buuut when switch "audio notification" , I get this: POST

XHRPOST https://www.facebook.com/api/graphql/ [HTTP/2 200 OK 623ms]

POST https://www.facebook.com/api/graphql/ Status 200 OK VersionHTTP/2 Transferred10.34 kB (113.56 kB size) Referrer Policystrict-origin-when-cross-origin Request PriorityHighest access-control-allow-credentials true access-control-allow-methods OPTIONS access-control-allow-origin https://www.facebook.com access-control-expose-headers X-FB-Debug, X-Loader-Length alt-svc h3=":443"; ma=86400 cache-control private, no-cache, no-store, must-revalidate content-encoding br content-security-policy default-src data: blob: 'self' https://*.fbsbx.com 'unsafe-inline' .facebook.com .fbcdn.net 'unsafe-eval';script-src .facebook.com .fbcdn.net .facebook.net .google-analytics.com .google.com 127.0.0.1: 'unsafe-inline' blob: data: 'self' connect.facebook.net 'unsafe-eval';style-src fonts.googleapis.com .fbcdn.net data: .facebook.com 'unsafe-inline';connect-src .facebook.com facebook.com .fbcdn.net .facebook.net wss://.facebook.com: wss://.whatsapp.com: wss://.fbcdn.net attachment.fbsbx.com w…-video-poster: googleads.g.doubleclick.net www.googleadservices.com .whatsapp.net .fb.com .oculuscdn.com;media-src .cdninstagram.com blob: .fbcdn.net .fbsbx.com www.facebook.com .facebook.com https://.giphy.com data:;frame-src .doubleclick.net .google.com .facebook.com www.googleadservices.com .fbsbx.com fbsbx.com data: www.instagram.com .fbcdn.net https://paywithmybank.com https://sandbox.paywithmybank.com;worker-src blob: .facebook.com data:;block-all-mixed-content;upgrade-insecure-requests; content-type text/html; charset="utf-8" cross-origin-embedder-policy-report-only require-corp;report-to="coep_report" cross-origin-opener-policy same-origin-allow-popups date Thu, 27 Apr 2023 22:23:45 GMT document-policy force-load-at-top expires Sat, 01 Jan 2000 00:00:00 GMT nel {"report_to":"network-errors","max_age":3600,"failure_fraction":0.01} pragma no-cache report-to {"max_age":86400,"endpoints":[{"url":"https:\/\/www.facebook.com\/browser_reporting\/?minimize=0"}],"group":"coep_report"}, {"max_age":259200,"endpoints":[{"url":"https:\/\/www.facebook.com\/ajax\/comet_error_reports\/?device_level=unknown"}]}, {"max_age":3600,"endpoints":[{"url":"https:\/\/www.facebook.com\/ajax\/comet_error_reports\/?device_level=unknown"}],"group":"network-errors"} reporting-endpoints coep_report="https://www.facebook.com/browser_reporting/?minimize=0", default="https://www.facebook.com/ajax/comet_error_reports/?device_level=unknown" strict-transport-security max-age=15552000; preload vary Origin vary Accept-Encoding x-content-type-options nosniff x-fb-debug Z4bCQxwH+yLEBaaH+fYEONuEnveJxpPGxDK2Vdmxp14ZqRDe1J82VxLMVm001CNrn0hkvidtt8Zk+SY7lJLXCQ== x-fb-rlafr 0 X-Firefox-Spdy h2 x-frame-options DENY x-xss-protection 0
Accept / Accept-Encoding gzip, deflate, br Accept-Language en-US,en;q=0.5 Connection keep-alive Content-Length 2736 Content-Type application/x-www-form-urlencoded Cookie datr=6i2rYsV8KwD0RLSKtEuVU7my; sb=Li6rYj2IgT79ro_0TT9mvG7c; c_user=100061313435811; xs=28%3AWDPuSv5-Ma9IUw%3A2%3A1655385647%3A-1%3A-1%3A%3AAcVdwGTFWBIVw7lp5kpr0DMeKXaBVrYbWI-XDgjVL-5k; fr=0VoRf2laSIOrre79F.AWVn5fYnq1_8erR4n1fUoCFR8xo.BkSuoC.QP.AAA.0.0.BkSuoC.AWXWpa8hUx8; wd=1642x306; m_pixel_ratio=1; presence=C%7B%22t3%22%3A%5B%5D%2C%22utc3%22%3A1682634206444%2C%22v%22%3A1%7D DNT 1 Host www.facebook.com Origin https://www.facebook.com Sec-Fetch-Dest empty Sec-Fetch-Mode cors Sec-Fetch-Site same-origin TE trailers User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0 X-ASBD-ID 198387 X-FB-Friendly-Name CometNotificationSettingsOptionActionMutation X-FB-LSD HvtPw62yLvq37jCbhuOWec

I dont know if its @sv-calin said "No popup" , because in site information (facebook.com) also dont show up "notification blocked"

I hope this help

Regards

HubCapper76 commented 1 year ago

Hello devs! Same issue here, cleared all caches, tried different user agent, reset Firefox, even using a brand new profile without any addons now... Facebook Push notifications aren't working, whenever I try to enable this in FB settings, it won't work, the slider moves but stays grayed out. Getting FB notifications is essential for me and would be a reason to switch browsers if not fixed.. (started using the web in 1997, FF is still my favourite, since stable Netscape Navigator days)

This started only recently for me, maybe a week ago? My system info: Windows 10 Pro 21H2 (19044.2846) Firefox 112.0.2 (20230424110519) New profile, no addons.

(Testing Nightly now, maybe the last update broke something? Seems to be from last week as well!) Edit: Nightly won't work either.. Firefox Nightly 114.0a1 (20230501093846)

Latest Chromium won't work either.. getting the feeling it's a Facebook issue(?)

Edit2: Since about a week ago FB got its act together, notifications work for the most part again (I have sound notification active, but thankfully no sound is played. The general browser push slider still doesn't work..)

archerallstars commented 1 year ago

I am having this issue using the latest Firefox via Flatpak.

vDeggial commented 1 year ago

i found that if you go to mobile version of FB page on Desktop turning on notifications works but they come from mobile site version not www one https://m.facebook.com/settings/notifications/push/

sefernet commented 1 year ago

I confirm, about the mobil version that its a develope BUT for me not provide the funcionality ...

Yes, the botton call push notification in the browser, but despite using "https://m.facebook.com/messages", I never get notifications. Getting back to https://m.facebook.com/settings/notifications/push/ says "Activate" like it never was activated, AND in the browser says "Notifications = Allowed" ...

endyyoo commented 1 year ago

Same issue with me, the Firefox push notifications button on facebook is grayed out once I press it to turn it on. And I don't get any push notifications even if I have push notifications permissions on. Cleared cache of FB, didn't work.

denschub commented 1 year ago

I tried debugging this, but that seems to be very difficult. I see a piece of JS on their end that's supposed to be calling window.Notification.requestPermission(), but we never hit that. Unfortunately, due to the high level of abstraction in their code, it's hard for me to debug exactly what's happening there...

I'll update this bug as soon as we hear from them.

saschanaz commented 1 year ago

Is this still a problem? Looks like it works now. (Came from https://bugzilla.mozilla.org/show_bug.cgi?id=1824614)

Edit: It stalled once in 115.0.2 but was fixed after a page refresh. On 117 Nightly I got no such issue.

sefernet commented 1 year ago

For me is this still a problem: Fedora 38 Firefox 115.0.2 x64

Now Firefox ask permission showing up the domain to allow, but no functionality, like @endyyoo said "button is grayed out once I press it to turn it on", and when revisite the notification page is off again.

archerallstars commented 1 year ago

It's still an issue for me. openSUSE Tumbleweed. Firefox 115.0.2 (64-bit) Flatpak.

Moreover, it's not just the notification that doesn't work, but the calling feature is broken too, see: issue #109006. Facebook Messenger is completely broken in Firefox.

HubCapper76 commented 1 year ago

Just wanted to report the FB slider works again. I'm currently on Nightly 117.0a1 (2023-07-20) (64-Bit) on Win 10 Pro.

Slider moved, Firefox asked me to permit the site of sending push notifications, which was OKayed. After FB notification settings page refresh, slider stays acttive = works again.

saschanaz commented 1 year ago

Thanks all! I wonder this now became a Linux specific issue, possibly with Flatpak?

sefernet commented 8 months ago

Its dont work - dec 2023 - Still an issue for me :

On Firefox 121 - In an entirely new profile: Login on FB -> notifications -> The slide allow action, its mean that switch to ON, but in the same action ther page also refresh and rolls back to OFF ...

MikuAuahDark commented 7 months ago

Hello everyone.

I just want to chime in that I don't even have option to enable push notification in Firefox. gambar

Furthermore https://web.facebook.com/help/949954541709550 says that push notification is only supported in Google Chrome for Android. I don't see any reason why Facebook decided not to support Firefox though.

bpsib commented 3 months ago

I changed my user agent to Chrome and then I was prompted to enable notifications so it seems Facebook not supporting Firefox.

sefernet commented 3 months ago

It has been working on my Linux desktop for a couple of days now: Firefox 121 Fedora 40 OS

The change happened on the site side... because I dont change nothong in between.