Last modified: 2013-11-11 08:05:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58778, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56778 - Remove gadget modules from local storage when the user disables them
Remove gadget modules from local storage when the user disables them
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-08 14:08 UTC by Helder
Modified: 2013-11-11 08:05 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2013-11-08 14:08:38 UTC
1. Go to
https://test.wikipedia.org/wiki/Special:Preferences#mw-prefsection-gadgets
and disable all gadgets except one which is loaded by ResourceLoader (e.g. "ShortDiff"), then save your changes
2. Clear you browser cache and local storage
3. Go to
https://test.wikipedia.org/wiki/Special:BlankPage
and take note of the list of gadget modules in the store:

$.grep( Object.keys( mw.loader.store.items ), function( m ){
    return m.indexOf( 'ext.gadget' ) !== -1; }
).join( '\n' )

In my case, this returned:
ext.gadget.ShortDiff@1347062400

3) Go back to
https://test.wikipedia.org/wiki/Special:Preferences#mw-prefsection-gadgets
and disable that gadget, and save your changes

4) Check the list of modules in the storage again.

Expected result:
* The module of the gadget should be removed from local storage
Actual result:
* The module is still there, taking space

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


Navigation
Links