Page MenuHomePhabricator

AbuseLog drop-down settings does not open
Closed, InvalidPublicBUG REPORT

Description

On fr.wikipedia.org, when in the abusefilter log ( https://fr.wikipedia.org/wiki/Sp%C3%A9cial:Journal_du_filtre_antiabus ), when clicking on the drop-down settings menu, named (in French) "Rechercher dans le journal des filtrages", this drop-down menu doesn't open on the first try. When the bugs occurs, a reload/F5 often (but not always) solve the problem.

Bug encountered several times, on Firefox 86.0.1. No ad blocker enabled.

Event Timeline

Sometimes the menu does open, but can't be closed.

Daimona renamed this task from Abusefilter journal drop-down settings does not open to AbuseLog drop-down settings does not open.Mar 23 2021, 7:28 PM

When the menu does open, the parameters drop-down ("Toutes les actions", "Tous", etc.) don't open; they seem to be affected by the same bug.

This very much feels like a userland problem. One option might be a conflict with a user script or personal CSS. @Jules78120 Could you please check whether the problem still appears when using safemode?

@Daimona Thanks for the reply. I tried with &safemode=1: indeed, the bug does not appear anymore. I will try to find what .js or .css can cause that.

When visiting the AbuseLog on frwiki I randomly get the following error in the console

 Uncaught TypeError: Cannot read property 'ownerDocument' of undefined
at Object.OO.ui.Element.static.getDocument
at Object.OO.ui.Element.static.getClosestScrollableContainer
at OoUiPopupWidget.OO.ui.mixin.FloatableElement.togglePositioning
at OoUiPopupWidget.OO.ui.PopupWidget.toggle
at showTipsy https://fr.wikipedia.org/w/load.php?lang=it&modules=ext.centralNotice.geoIP%7Cext.centralauth.ForeignApi%7Cext.centralauth.centralautologin.clearcookie%7Cext.cx.eventlogging.campaigns%7Cext.echo.api%2Cinit%7Cext.eventLogging%2CnavigationTiming%2CwikimediaEvents%7Cext.uls.common%2Ccompactlinks%2Cinterface%2Cpreferences%2Cwebfonts%7Cjquery%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Csite%7Cjquery.client%2Ccookie%2ClengthLimit%2CmakeCollapsible%2CtextSelection%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2CString%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2Cexperiments%2Chtmlform%2CjqueryMsg%2Clanguage%2Cstorage%2Cuser%2Cutil%2Cwidgets%7Cmediawiki.ForeignApi.core%7Cmediawiki.editfont.styles%7Cmediawiki.htmlform.ooui%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.widgets.UserInputWidget%2Cdatetime%7Coojs-ui-widgets.icons%7Coojs-ui.styles.icons-content%2Cicons-moderation%2Cicons-movement%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=cl315:97

This might indicate an issue in ULS, or maybe in OOUI itself, or in the site JS if it really stops happening with safemode. It's almost certainly not caused by AbuseFilter though.

Hmmm however, even when the error appears, the dropdown still works, so it might be an unrelated error. If safemode fixes it, I'd suggest locating what script is breaking it as per https://www.mediawiki.org/wiki/Help:Locating_broken_scripts

@Daimona Thank you very much for you help. I found the script causing the bug: [[Utilisateur:0x010C/script/EnhancedContribToolList.js ]]. It's an Uncaught TypeError: mw.Api is not a constructor. I removed this script from my .js. Only one other user has this script enabled, I will warn him.

Okay, I take it back: it was not the source of the bug. After removing the script, the bug is still there.

But I got no other error in my console. Just 2 warnings (see screenshot).

I will try to solve this by removing one by one my scripts.

Glad you found the reason. I'm closing this task per last comment, as this is about fixing on-wiki content (which isn't tracked in Phabricator).
{"cc_re__cc_re__cc_by_sa_3_0": ["olicy, and Code of Conduct.</span> \u00b7 <a href=\"https://wikimediafoundation.org/\">Wikimedia Foundation</a> \u00b7 <a href=\"https://foundation.wikimedia.org/wiki/Special:MyLanguage/Privacy_policy\">Privacy Policy</a> \u00b7 <a href=\"https://www.mediawiki.org/wiki/Special:MyLanguage/Code_of_Conduct\">Code of Conduct</a> \u00b7 <a href=\"https://foundation.wikimedia.org/wiki/Terms_of_Use/Phabricator\">Terms of Use</a> \u00b7 <a href=\"https://foundation.wikimedia.org/wiki/Wikimedia:General_disclaimer\">Disclaimer</a> \u00b7 <a href=\"https://creativecommons.org/licenses/by-sa/3.0/\">CC-BY-SA</a> \u00b7 <a href=\"https://www.gnu.org/licenses/old-licenses/gpl-2.0.html\">GPL</a></div></div></div></div><script type=\"text/javascript\" src=\"https://phab.wmfusercontent.org/res/defaultX/phabricator/ab3502fe/core.pkg.js\"></script><data data-javelin-init-kind=\"merge\" data-javelin-init-data=\"{&quot;block&quot;:0,&quot;data&quot;:[{&quot;hovercardSpec&quot;:{&quot;objectPHID&quot;:&quot;PHID-TASK-yyksrjsyk7vt25kkewf3&quot;}},{&quot;tabMap&quot;:{&quot;mentions&quot;:&quot;UQ0_2&quot;}},{&quot"]}