Thread:Talk:ResourceLoader/V2 testing/Unable to hide a gadget

The "hidden" option is not working for this gadget. It appears on Special:Preferences#mw-prefsection-gadgets even after I hide it. Indeed, the loop which adds a preference for each gadget doesn't check for its hidden property before adding it to Special:Preferences (BTW: it also doesn't check if the user has the appropriate rights).