Jdlrobson created this task. Jdlrobson added projects: Wikidata, MediaWiki-extensions-WikibaseClient. Restricted Application added subscribers: Masumrezarock100, Aklapper.
TASK DESCRIPTION `wikibase.client.init` currently does not define a targets (T235712 <https://phabricator.wikimedia.org/T235712>). As a result it is silently removed from pages where it does not apply causing warnings. It must define these. If the code is not intended for mobile this should be handled in the logic that adds the module to the page <https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase/+/e17ad6720ebea8a457b02336d52a907b438f083a/client/includes/Hooks/BeforePageDisplayHandler.php#72>. Despite this, it doesn't load on desktop Minerva, so it seems like this logic is working: - If I visit https://www.wikidata.org/wiki/Q83200962?useskin=minerva - And open the consule and run: `mw.loader.getState('wikibase.client.init') == 'registered'` I can see this is true. ( Note that when run in mobile, non-mobile targeted modules will have a state of undefined) I think all that Wikibase therefore needs to do is define targets (and verify the code loads or doesn't load in Minerva and mobile as before) TASK DETAIL https://phabricator.wikimedia.org/T259048 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jdlrobson Cc: Aklapper, Masumrezarock100, Jdlrobson, Akuckartz, darthmon_wmde, Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
