https://bugzilla.wikimedia.org/show_bug.cgi?id=56778

       Web browser: ---
            Bug ID: 56778
           Summary: Remove gadget modules from local storage when the user
                    disables them
           Product: MediaWiki
           Version: 1.22rc
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JavaScript
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: mybugs.m...@gmail.com
                CC: krinklem...@gmail.com, matma....@gmail.com,
                    o...@wikimedia.org, tpars...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to