Closed Bug 1863300 Opened 3 years ago Closed 2 years ago

Logging on Sony websites such as the PlayStation store causes firefox to freeze and consume RAM indefinitely

Categories

(Toolkit :: Password Manager: Site Compatibility, defect)

Firefox 119
Desktop
All
defect

Tracking

()

RESOLVED FIXED
122 Branch
Webcompat Priority ?
Tracking Status
firefox-esr115 --- fixed
firefox119 --- wontfix
firefox120 --- wontfix
firefox121 --- fixed
firefox122 --- fixed

People

(Reporter: yannis, Assigned: issammani)

References

()

Details

(Whiteboard: [fxcm-bugs-2023])

Multiple users are reporting issues with login in Sony websites such as the PlayStation store here (Windows 10/11, Linux) and here (OSX). [:claas] is able to reproduce on macOS and was able to share this forced crash and this profile. The profile suggests that the parent process could be going through sendLoginDataToChild from LoginManagerParent.sys.mjs over and over, which is why I'm filing this bug in this component.

[:class], could you share password manager debug logs?

Flags: needinfo?(caugner)

Same here. It started with FF 119.0. I am on Win 10 64, RAM usage keeps increasing indefinitely when I try to login to my Sony account (for example https://www.playstation.com/en-us/support/account) and FF almost completely freezes and I have to end it through task manager.

[:yannis], here are the password manager debug logs:

LoginManager: Searching for matching logins for origin: https://my.account.sony.com
Login storage: Searching for matching logins for origin https://my.account.sony.com.
Login storage: Returning 1 logins for specified origin with options [object Object]
LoginManagerParent: Deduped 1 logins.
LoginManager: Searching for matching logins for origin: https://my.account.sony.com
Login storage: Searching for matching logins for origin https://my.account.sony.com.
Login storage: Returning 1 logins for specified origin with options [object Object]
LoginManagerParent: Deduped 1 logins.
(these four log messages get repeated indefinitely)

I was able to reproduce the issue with previous FF versions (118, 117) and even with FF 97, which indicates that this bug was caused by a change on the Sony website, coinciding with the release of FF 119.

[:issammani] noticed that two events DOMFormHasPassword and DOMFormHasPossibleUsername are constantly dispatched, and [:serg] guesses that the website is adding something in loop and the FF password manager is reacting to it.

Flags: needinfo?(caugner)
Duplicate of this bug: 1863506

So I did a bit more digging and appendChild is called extensively with the same elements. The website is using React and my suspicion is a state update triggers a component to re-render, and during that re-render, the same state is updated again without any condition to stop the update ( this quite common in React land ).

Nothing we can really do about the constant updates, but I am looking into a possible solution that will at least limit the events dispatched to the login manager.

Whiteboard: [fxcm-bugs-2023]

FWIW,
When the primary password prompt appears, it does not seem to freeze at that time.

See Also: → 1840235

Also affects 115.4.0esr.

(In reply to ahmad from comment #1)

Same here. It started with FF 119.0. I am on Win 10 64, RAM usage keeps increasing indefinitely when I try to login to my Sony account (for example https://www.playstation.com/en-us/support/account) and FF almost completely freezes and I have to end it through task manager.

It didn't start with 119.0, I know this because I hadn't updated yet and was still on 118.0 with the same issue. It started whenever Sony updated their login system, it looks completely different than it used to. So something on the site changed.

I also reported this issue here : https://webcompat.com/issues/129603

I was able to reproduce it although it seems like the duplicaute issue linked there is closed as 'Works For Me'. I have only encountered this Sony log-in issue on Firefox itself and not on other browsers like Opera.

(In reply to incompletestoic from comment #8)

I also reported this issue here : https://webcompat.com/issues/129603

I was able to reproduce it although it seems like the duplicate issue linked there is closed as 'Works For Me'. I have only encountered this Sony log-in issue on Firefox itself and not on other browsers like Opera.

Woops sorry about the duplicate comment : I meant to say that I was able to log in without it hanging if I disabled the Firefox password manager and entered my log-in details manually.

The severity field is not set for this bug.
:serg, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sgalich)

ever since this i been able unable to login to https://www.playstation.com/en-us/support/account

works find in Edge and Chrome, which are browsers i refuse too use, any chance this get fixed by mozilla or does Sony have to fixed there site?

Webcompat Priority: --- → ?
Depends on: 1864379

(In reply to sj.vegetto from comment #12)

ever since this i been able unable to login to https://www.playstation.com/en-us/support/account

works find in Edge and Chrome, which are browsers i refuse too use, any chance this get fixed by mozilla or does Sony have to fixed there site?

We hope that the patch in bug 1864379 will fix this issue (no guarantee yet though), in which case this may be fixed with Firefox 121 (December 19), or sooner if there is a Firefox 120.0.2 (no guarantee either). Meanwhile we are also investigating if this could be fixed by a webcompat intervention, which would allow us to ship a temporary fix quicker while we work on the proper Firefox patch. (This may also be fixed by Sony on their side at some point.)

Severity: -- → S2
Flags: needinfo?(sgalich)

I found a better workaround on Reddit:

you can use this page with a different type login menu that works. https://www.rewards.sony.com/UID-Start
After i log in there i go to the sony page that locks up and just refresh the page and i am logged in.

So log in to that rewards page (you can skip accepting the terms for the program), return to the page you originally wanted to log in for and click the sign in button on the top right. It will reuse the session you just created and log you in without going through the new login interface.

Bug 1864379 has just been resolved and this issue is now fixed. The freezing behavior is no longer reproducible. I am closing this bug as fixed as well.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Assignee: nobody → imani
Target Milestone: --- → 122 Branch

The fix is in current Nightly builds and should be in 121.0b8 as well (building tomorrow) for those who want to test this on their own.

You need to log in before you can comment on or make changes to this bug.