Last modified: 2013-01-15 19:37:31 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 T43655, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41655 - User script preview do not work if "tog-uselivepreview" is enabled
User script preview do not work if "tog-uselivepreview" is enabled
Status: RESOLVED DUPLICATE of bug 43981
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks: 39272
  Show dependency treegraph
 
Reported: 2012-11-01 19:42 UTC by Helder
Modified: 2013-01-15 19:37 UTC (History)
1 user (show)

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


Attachments

Description Helder 2012-11-01 19:42:51 UTC

    
Comment 1 Helder 2012-11-01 19:58:20 UTC
ops.. sorry for the empty description.

1) Go to
https://en.wikipedia.org/wiki/Special:Preferences?uselang=en#mw-prefsection-editing
and make sure "Use live preview (requires JavaScript) (experimental)" is DISABLED.
2) Go to
https://en.wikipedia.org/wiki/Special:MyPage/common.js?action=edit
and type "alert( 'works' );"
3) Click on "Show preview"
4) The message appears as expected
5) Now go back to your preferences and DISABLE "Use live preview (requires JavaScript) (experimental)".
6) Type "alert( 'works' );" on your common.js again
7) Hit "Show preview"
8) Nothing happens
(well, there will be an API request and the following will be added to the page, but the code is not executed:
<pre class="mw-code mw-js" dir="ltr">console.log( 'works' );</pre>
)
Comment 2 Helder 2012-11-01 19:59:16 UTC
(In reply to comment #1)
> 5) Now go back to your preferences and DISABLE ...
I mean, ENABLE.
Comment 3 Helder 2013-01-15 19:24:18 UTC

*** This bug has been marked as a duplicate of bug 43981 ***

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


Navigation
Links