Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Safari Facebook Login

Hello,


I have a "problem" with Safari when trying to log-in to Facebook. After I insert my credentials and hitting enter, a small window (attached) pops up. When I choose "Leave Page", it brings me to my News Feed. But when I click "Stay on Page", it just stays on the facebook main page however I am unable to log-in after a short period (~20sec). This happened recently and was wondering how to stop it. Usually, it never gave me the option; I just had to put in my credentials then login. Also, in the midst of typing down my credentials, the window shows again if I try to exit the tab. Just to note, it appears to only happen with Safari and Facebook as I tried it on Firefox and Chrome along with other websites and no window ever shows, just smooth login.


User uploaded file



Machine: Macbook Pro (13-inch, 2017, Two Thunderbolt 3 Ports)

macOS: High Sierra Version 10.13.4

Safari: Version 11.1


Thank you.

MacBook Pro with Retina display, macOS High Sierra (10.13.4), null

Posted on Apr 16, 2018 4:17 AM

Reply

Similar questions

48 replies

Apr 25, 2018 5:39 PM in response to dominic23

First thing I tried when the issue surfaced. However no fix, no matter how much times I cleared them. I tried to put Safari to "stock" mode by clearing all history, cookies, Keychains, bookmarks, favourites, extensions etc. but still no change. I tried connecting to my Uni's internet to see if it might change anything, but the issue's still there regardless of which Wi-Fi I connect to. My guess is that it has something to do with Safari and Facebook itself, but not sure what.

Apr 26, 2018 8:18 PM in response to dominic23

I found the History and LastSession files from using the Services menu and promptly deleted all six files. I tried using the Services menu to find the Saved Application State files but even Services couldn't find it either. The Services approach only gave me a blank response with Finder; no open folder. Anyway, I deleted the files under the Safari folder, tried logging in again, but the pop-up still exists.


I just want to say thank you for persisting in finding a solution for this issue. It's really bizarre that it's happening out of nowhere and the source is really difficult to find.

Apr 29, 2018 8:40 PM in response to kevin5526

This is the product of an unfortunate combination of Facebook javascript and Safari behavior. The script below which is loaded by facebook.com will trigger the function "_warnBeforeLeaving" (line 903) when we try to log in. I assume the function was intended to only trigger if the user were actively editing a text input box. Something goes wrong with the script and will automatically trigger the warning without the user actually clicking an input box.


https://static.xx.fbcdn.net/rsrc.php/v3iWMM4/yB/l/en_US/oyoERvu8PHO.js


Bottomline, there is nothing wrong with your Mac or Safari, just Facebook is the usual mess. I would not try any of the recommendations that are having you change system settings or delete certain files unless you are certain your have good time machine backups available.

May 1, 2018 4:59 AM in response to kevin5526

I vaguely recall that in the past I used to have to explicitly click inside the user ID box before I could manually type my login credentials. Also, Safari would auto populate the boxes with my credentials (but without selecting either box). A few weeks ago that behavior has changed. Now the blinky prompt is automatically placed in the user ID box and Safari shows a drop-down menu allowing me to select my user ID. The boxes are no longer auto populated. If I‘m not mistaken it started around the time Apple pushed the latest MacOS security update. Now, I am not sure if this is a new security feature from Apple to protect saved passwords and user names, or rather a new Javascript function pushed by Facebook to automatically select the user ID box when the page is done loading And save the user a mouse click. It could be either. Bottom line, this auto selection is probably what triggers the warn-before-leaving function that has caused us all the headache.

Safari Facebook Login

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.