Last modified: 2011-05-21 22:53:40 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 T31067, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29067 - Expose user.tokens like we do user.options in ResourceLoader
Expose user.tokens like we do user.options in ResourceLoader
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks: 27655
  Show dependency treegraph
 
Reported: 2011-05-21 10:28 UTC by Krinkle
Modified: 2011-05-21 22:53 UTC (History)
3 users (show)

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


Attachments

Description Krinkle 2011-05-21 10:28:44 UTC
The two most common user specific things that gadgets and extensions use in the front-end are preferences as tokens from what I can see.

in 1.17 we started embedding these in the user.options module, I think we should do the same for tokens. This would no longer require extensions like WikiLove to add a script tag to the HTML root of the document storing the edittoken.


Proposing to add a user.tokens module and either loading by default as part of another http request in the 'user' group or embedding on the page.
Comment 1 Krinkle 2011-05-21 22:53:30 UTC
Fixed in r88553.

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


Navigation
Links