Page MenuHomePhabricator

Echo notifications icons (in p-personal) displayed with missing or incorrect style after a CentralAuth autologin
Closed, ResolvedPublic

Assigned To
Authored By
Ltrlg
Aug 20 2013, 11:19 PM
Referenced Files
F35784189: image.png
Nov 16 2022, 3:24 AM
F35784192: image.png
Nov 16 2022, 3:24 AM
F35784182: image.png
Nov 16 2022, 3:24 AM
F35784175: image.png
Nov 16 2022, 3:24 AM
F11729: SUL-Echo.png
Nov 16 2022, 3:16 AM
Tokens
"Party Time" token, awarded by Etonkovidova.

Description

Steps to reproduce

  • Create an account
  • Log in to en.wikipedia.org. Might need to select "keep me logged in" type settings to set the central auth cookies on loginwiki.
  • Visit a wiki on a different second-level domain, such as en.wikiquote.org.

What happens?:

  • Ping and notice icons are replaced with text like Alert (0). Sometimes the icon styling is missing:

SUL-Echo.png (735×1 px, 198 KB)

sometimes it is repeated:
image.png (225×1 px, 31 KB)

A page refresh fixes the issue.

What should have happened instead?:

  • Ping and notice icons are normal on first page load. No refresh needed.

image.png (304×1 px, 49 KB)

Other information

  • HTML looks identical.

image.png (93×1 px, 11 KB)

  • Possible CSS issue. The following appears to be present in the working example and missing in the non working example.

image.png (599×1 px, 50 KB)

  • Caused by CentralAuth autologin (sometimes) replacing the user toolbar without reloading the page, see modules/inline/autologin.js
  • That script calls the centralauth-p-personal-reset JS hook, which is probably the right place to fix this

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:05 AM
bzimport set Reference to bz53134.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 55545 has been marked as a duplicate of this bug. ***

I think Echo just needs to add a listener to the centralauth-p-personal-reset hook?

-TestMe, I see this pretty often.

Tgr renamed this task from Echo / SUL: Notifications number displayed without style (in p-personal) on first time to Echo notifications icons (in p-personal) displayed with missing or incorrect style after a CentralAuth autologin.Nov 16 2022, 3:15 AM
Tgr added a subscriber: Novem_Linguae.

I think Echo just needs to add a listener to the centralauth-p-personal-reset hook?

Yeah I think we'd have to redo some of ext.echo.init.js when that hook is called.

Change 858697 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/Echo@master] Initialize Echo when CentralAuth autologin replaces the user toolbar

https://gerrit.wikimedia.org/r/858697

Change 858697 merged by jenkins-bot:

[mediawiki/extensions/Echo@master] Initialize Echo when CentralAuth autologin replaces the user toolbar

https://gerrit.wikimedia.org/r/858697

Etonkovidova claimed this task.
Etonkovidova subscribed.

Checked on wmf.17 - works as expected.